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

Close

How To Fix WG101 - Document category was changed from PO to purchase requisition


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WG - Messages for store order and investment buy

  • Message number: 101

  • Message text: Document category was changed from PO to purchase requisition

  • 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 WG101 - Document category was changed from PO to purchase requisition ?

    SAP Error Message:
    WG101 - Document category was changed from PO to purchase requisition


    Cause:

    This error occurs when there is an attempt to change the document category of a purchasing document from a Purchase Order (PO) to a Purchase Requisition (PR) or vice versa. In SAP, the document category is a fundamental attribute that defines the type of document (e.g., PO, PR, Contract, Scheduling Agreement). Changing this category directly is not allowed because these document types have different structures, processing logic, and purposes.

    Typically, this error arises in scenarios such as:

    • Trying to convert or change a PO into a PR within the same document.
    • Data migration or interface issues where document categories are mismatched.
    • Custom developments or user exits that incorrectly attempt to modify the document category.
    • Incorrect manual changes or upload programs that try to overwrite the document category field.

    Solution:

    1. Do Not Change Document Category Directly:
      Understand that document categories are fixed once the document is created. Instead of changing the document category, create a new document of the desired type.

    2. Check the Process Flow:
      If you need to convert a PR to a PO, use the standard SAP process (e.g., create a PO with reference to the PR) rather than changing the document category of an existing PO or PR.

    3. Review Custom Code or Interfaces:
      If this error occurs during data upload or custom processing, check the code or interface logic to ensure it does not attempt to overwrite the document category field (BSTYP in table EKKO).

    4. Data Consistency Check:
      Verify the document type and category in the database tables (e.g., EKKO for PO header). Ensure that the document category matches the document type and that no inconsistencies exist.

    5. Use Standard SAP Transactions:
      Use standard SAP transactions and functions to create or change documents rather than direct table updates or non-standard methods.


    Related Information:

    • Document Category Field:

      • Field name: BSTYP (Document Category) in table EKKO (Purchasing Document Header)
      • Common values:
        • F = Purchase Order
        • F (sometimes) = Scheduling Agreement
        • K = Contract
        • N = Purchase Requisition (though PRs are stored in a different table, EBAN)
    • Standard Process:

      • PRs are created in transaction ME51N.
      • POs are created in ME21N, often with reference to PRs.
      • You cannot convert a PO back into a PR by changing the document category.
    • SAP Notes and Documentation:

      • Check SAP Notes related to purchasing document processing for any known issues.
      • Review SAP Help Portal documentation on Purchasing Document Types and Categories.

    Summary:

    Error WG101 indicates an invalid attempt to change the document category from PO to PR. The solution is to avoid changing the document category directly and instead follow SAP's standard processes for creating and managing purchasing documents. Review any custom code or data migration steps that might be causing this issue.


    If you provide more context (e.g., transaction used, custom developments, or interface details), I can help with a more specific solution.

    • 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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant