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

Close

How To Fix WG017 - No purchasing group in doc. header of store order &


SAP Error Message - Details

  • Message type: E = Error

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

  • Message number: 017

  • Message text: No purchasing group in doc. header of store order &

  • Show details Hide details
  • What causes this issue?

    No purchasing group was transferred. Default determination of the
    purchasing group failed.

    System Response

    A purchase order cannot be created.

    How to fix this error?

    Copy the purchasing group to the organizational header segment or
    maintin table <DS:SIMG.W_OE_ZG_WL_0310.SIMG_OLME>Assign purchasing
    group to purchasing area</> or the MRP controller table.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WG017 - No purchasing group in doc. header of store order & ?

    Certainly! Here's a detailed explanation for the SAP error message:


    SAP Error Message:

    WG017 No purchasing group in doc. header of store order &


    Meaning / Cause:

    This error occurs when you try to process a store order (such as a stock transfer order or a special procurement order) in SAP, but the document header does not contain a purchasing group. The purchasing group is a mandatory field in the document header for certain procurement documents because it identifies the responsible buyer or purchasing unit.

    • The system expects a purchasing group to be maintained in the document header.
    • If the purchasing group is missing, the system cannot proceed with the purchasing process.
    • This often happens if the purchasing group is not defaulted or manually entered during document creation.

    When does it occur?

    • During creation or processing of a store order (stock transport order, special procurement, or similar).
    • When the purchasing group field in the document header is empty.
    • Possibly during release, saving, or posting of the document.

    Solution / How to fix:

    1. Maintain Purchasing Group in Document Header:

      • When creating the store order, ensure that the purchasing group (EKGRP) is entered in the document header.
      • This can be done manually or by customizing default values.
    2. Check Defaulting Logic:

      • Verify if the purchasing group is defaulted from the material master, vendor master, or purchasing info record.
      • If not, configure the system to default the purchasing group automatically using:
        • Transaction OME9 (Assign purchasing groups to plants)
        • Or maintain the purchasing group in the vendor master or material master as applicable.
    3. User Training:

      • Train users to always enter the purchasing group when creating store orders.
    4. Customizing:

      • In SPRO, under Materials Management ? Purchasing ? Purchase Order ? Define Purchasing Groups, ensure the purchasing groups are properly defined.
      • Also check Assign Purchasing Groups to Plants to ensure defaulting is possible.
    5. Check User Exits or BAdIs:

      • Sometimes custom code might clear or fail to set the purchasing group. Review any user exits or BAdIs related to purchasing document creation.

    Related Information:

    • Purchasing Group (EKGRP): A key organizational unit in SAP MM that represents a buyer or a group of buyers responsible for procurement activities.
    • Store Order: A type of purchase order used for stock transfers or special procurement.
    • Transaction Codes:
      • ME21N: Create Purchase Order
      • ME22N: Change Purchase Order
      • ME23N: Display Purchase Order
    • SPRO Path for Customizing:
      • Materials Management ? Purchasing ? Purchase Order ? Define Purchasing Groups
      • Materials Management ? Purchasing ? Purchase Order ? Assign Purchasing Groups to Plants

    Summary:

    Aspect Details
    Error Code WG017
    Error Text No purchasing group in doc. header of store order &
    Cause Purchasing group missing in document header
    Solution Enter or default purchasing group in document header
    Where to Check Document header, customizing (OME9), user exits

    If you provide the exact transaction or scenario, I can help with more specific steps.

    • 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