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

Close

How To Fix WG342 - Automatic order creation not allowed. See table &1 for &2 &3


SAP Error Message - Details

  • Message type: E = Error

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

  • Message number: 342

  • Message text: Automatic order creation not allowed. See table &1 for &2 &3

  • 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 WG342 - Automatic order creation not allowed. See table &1 for &2 &3 ?

    The SAP error message:

    WG342 Automatic order creation not allowed. See table &1 for &2 &3


    Meaning / Cause

    This error occurs during the automatic creation of purchase orders (POs) or scheduling agreements from purchase requisitions or other procurement documents. The system is trying to create an automatic order, but it is not allowed due to configuration or master data settings.

    The placeholders in the message:

    • &1 = Name of the customizing table that contains the relevant control data.
    • &2 = Key field value (e.g., purchasing group, plant, vendor).
    • &3 = Additional key or reason code.

    Typically, this message appears when the system checks the automatic order creation control table (such as T024E, T024D, or a similar customizing table) and finds that automatic order creation is not permitted for the combination of purchasing group, vendor, plant, or document type involved.


    Common Causes

    1. Automatic order creation not allowed for the vendor or purchasing group
      The vendor master or purchasing group is not flagged for automatic order creation.

    2. Missing or incorrect entries in customizing tables
      The relevant customizing table controlling automatic order creation (e.g., T024E - Purchasing Groups, or T024D - Vendor Purchasing Data) does not have the required entries or the entries are set to disallow automatic order creation.

    3. Plant or purchasing organization settings
      The plant or purchasing organization involved is not configured to allow automatic order creation.

    4. Document type or item category restrictions
      Certain document types or item categories may be excluded from automatic order creation.


    Solution / How to Fix

    1. Check the customizing table mentioned in the error message (&1)

      • Go to transaction SM30 or SE16N and display the table &1.
      • Look for the entry with key &2 and &3.
      • Verify if automatic order creation is allowed (usually a flag or indicator field).
    2. Adjust the customizing settings

      • If automatic order creation is not allowed but should be, update the relevant entry to permit it.
      • For example, in table T024E (Purchasing Groups), ensure the field "Automatic PO creation allowed" is set.
    3. Check vendor master data

      • Use transaction XK02 or MK02 to check vendor purchasing data.
      • Verify if the vendor is flagged for automatic order creation for the relevant purchasing organization and plant.
    4. Check purchasing group and plant settings

      • Use transaction OMX1 or relevant IMG path to check purchasing group settings.
      • Verify plant parameters in SPRO under Materials Management ? Purchasing ? Purchase Order ? Define Plant Parameters.
    5. Review document type and item category

      • Ensure the document type used supports automatic order creation.
      • Check item category settings if applicable.
    6. Consult SAP Notes

      • Sometimes, specific SAP Notes address issues related to automatic order creation.

    Additional Information

    • Relevant Tables:

      • T024E - Purchasing Groups
      • T024D - Vendor Purchasing Data
      • T024 - Purchasing Organizations
      • EKKO / EKPO - Purchase order header/item tables (for reference)
    • IMG Path for Customizing:
      SPRO ? Materials Management ? Purchasing ? Purchase Order ? Automatic Purchase Order Creation

    • Transactions to check:

      • ME59N - Automatic PO creation from purchase requisitions
      • ME21N - Create Purchase Order
      • ME52N - Change Purchase Requisition (to check source document)

    Summary

    Aspect Details
    Error Message WG342 Automatic order creation not allowed. See table &1 for &2 &3
    Cause Automatic order creation is not allowed due to customizing or master data settings
    Solution Check and update customizing table &1 for key &2 and &3 to allow automatic order creation
    Key Tables T024E, T024D, vendor master purchasing data
    Transactions SM30, SE16N, XK02, MK02, ME59N
    IMG Path Materials Management ? Purchasing ? Purchase Order ? Automatic Purchase Order Creation

    If you provide the actual values of &1, &2, and &3 from the error message, I can help you pinpoint the exact table and key fields to check.

    • 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author