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

Close

How To Fix WG338 - Unknown material group used for selection. Please re-enter material group


SAP Error Message - Details

  • Message type: E = Error

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

  • Message number: 338

  • Message text: Unknown material group used for selection. Please re-enter material group

  • 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 WG338 - Unknown material group used for selection. Please re-enter material group ?

    SAP Error Message:
    WG338 - Unknown material group used for selection. Please re-enter material group.


    Cause:

    This error occurs when a user tries to select or enter a material group in a selection screen or transaction, but the material group entered does not exist or is not recognized in the system. The system validates the material group against the master data, and if it cannot find a matching material group, it throws this error.

    Common reasons include:

    • Typing errors or incorrect material group code.
    • The material group has not been created or maintained in the system.
    • The material group is inactive or deleted.
    • The user is trying to use a material group that belongs to a different plant or company code context where it is not valid.

    Solution:

    1. Check the Material Group Code:

      • Verify the material group code entered is correct.
      • Use the search help (F4) on the material group field to select a valid material group.
    2. Verify Material Group Master Data:

      • Go to transaction OMS2 (Maintain Material Groups) to check if the material group exists.
      • If it does not exist, create the material group if you have authorization or request the responsible team to create it.
    3. Check Authorizations:

      • Ensure the user has the necessary authorizations to view or use the material group.
    4. Check for Inactive or Deleted Material Groups:

      • Sometimes material groups are marked inactive or deleted. Confirm the status in OMS2.
    5. Use Correct Selection Criteria:

      • If the selection screen is restricted by plant or company code, ensure the material group is valid in that context.

    Related Information:

    • Transaction OMS2: Used to maintain material groups.
    • Material Group (MATKL): A key field in material master used for grouping materials.
    • Selection Screens: Often validate input fields against master data tables like T023 (Material Groups).
    • Table T023: Contains material group master data.

    Summary:

    The error WG338 indicates that the material group entered is not recognized by the system. Verify the material group code, ensure it exists and is active in the system, and use the correct selection criteria. Use transaction OMS2 to maintain or check material groups.


    If you need further assistance, please provide the transaction code or context where the error occurs.

    • 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