Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WS249 - Document category &1 of preceding document is not permitted


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 249

  • Message text: Document category &1 of preceding document is not permitted

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS249 - Document category &1 of preceding document is not permitted ?

    SAP Error Message:
    WS249 - Document category &1 of preceding document is not permitted


    Cause:

    This error occurs when you try to create a document that references a preceding document with a document category that is not allowed in the current business process or transaction. In SAP, certain document categories (e.g., invoice, credit memo, debit memo, etc.) are only permitted to follow or be referenced by specific preceding document categories. If the system detects that the preceding document's category is not valid for the current document type or transaction, it throws this error.

    For example, in Sales and Distribution (SD), when creating a billing document, the system checks the preceding document (like a delivery or sales order). If the document category of the preceding document is not allowed for the billing document type, this error appears.


    Typical Scenarios:

    • Creating a billing document referencing a preceding document with an invalid category.
    • Posting a document in Financial Accounting (FI) that references a preceding document with an incompatible document category.
    • In Logistics, referencing a preceding document (like a purchase order or delivery) that has a document category not allowed for the current document.

    Solution:

    1. Check the Document Category of the Preceding Document:

      • Identify the preceding document number.
      • Use transaction codes like VA03 (Display Sales Order), VL03N (Display Delivery), or FB03 (Display Document) to check the document category.
      • Document category is usually visible in the header or document overview.
    2. Verify Allowed Document Categories:

      • Check the configuration/customizing settings that define which document categories are allowed to be referenced by the current document type.
      • For SD billing documents, this is controlled in the billing document type configuration (SPRO ? Sales and Distribution ? Billing ? Billing Documents ? Define Billing Types).
      • For FI documents, check the document type settings and allowed preceding document categories.
    3. Correct the Preceding Document or Use a Different Document:

      • If the preceding document is incorrect or of the wrong category, use the correct preceding document.
      • If the business process requires referencing this document category, you may need to adjust the configuration (see next step).
    4. Adjust Configuration (if business process requires):

      • In customizing, allow the document category of the preceding document for the current document type.
      • For SD billing, this might involve adding the document category to the allowed preceding document categories in billing document type settings.
      • For FI, check document type and number range settings.
    5. Consult SAP Notes or Support:

      • If the error persists or the scenario is complex, check SAP Notes for known issues related to WS249.
      • Contact SAP support if necessary.

    Related Information:

    • Transaction Codes:

      • VA03 - Display Sales Order
      • VL03N - Display Delivery
      • VF03 - Display Billing Document
      • FB03 - Display FI Document
      • SPRO - Customizing (for configuration)
    • SAP IMG Paths:

      • For SD Billing Document Types:
        SPRO ? Sales and Distribution ? Billing ? Billing Documents ? Define Billing Types
      • For FI Document Types:
        SPRO ? Financial Accounting ? Financial Accounting Global Settings ? Document ? Document Types
    • SAP Notes:

      • Search for "WS249" in the SAP Support Portal for any specific notes or patches.

    Summary:

    • Cause: The preceding document's category is not allowed for the current document type.
    • Solution: Verify and correct the preceding document or adjust configuration to allow the document category.
    • Check: Document categories, allowed preceding document categories in customizing, and business process correctness.

    If you provide the exact transaction or business process where this error occurs, I can help with more specific guidance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker