Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: WG - Messages for store order and investment buy
Message number: 158
Message text: Condition for document type &1 for supply source key &2 was not met
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.
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.
WG158
- Condition for document type &1 for supply source key &2 was not met ?Certainly! Here's a detailed explanation for the SAP error message:
SAP Error Message:
WG158 - Condition for document type &1 for supply source key &2 was not met
Meaning / Cause:
This error occurs during the creation or processing of a goods movement or procurement document when the system checks the conditions for the supply source (e.g., a plant, vendor, or storage location) and finds that the required condition for the specified document type and supply source key is not fulfilled.
In other words, the system expects certain conditions or settings to be met for the combination of the document type (e.g., purchase order, stock transport order) and the supply source key (which identifies the source of supply, such as a plant or vendor), but these conditions are missing or incorrect.
Common causes include:
Check Supply Source Determination Configuration:
Verify Condition Records:
Check Master Data:
Review Document Type Settings:
Supply Source Key Maintenance:
Debugging / Logs:
Aspect | Details |
---|---|
Error Message | WG158 Condition for document type &1 for supply source key &2 was not met |
Cause | Missing or incorrect supply source condition/configuration for the document type & supply source key |
Solution | Check and maintain supply source determination, condition records, master data, and document type settings |
Transactions to check | SPRO, MEK1/MEK2/MEK3, OMWN, SLG1 |
Related Areas | Stock transport orders, purchase orders, supply source determination |
If you provide the actual values for &1 and &2, I can help you with more specific guidance.
Get instant SAP help. Sign up for our Free Essentials Plan.
WG157
'Not Relevant' indicator set for &1 change pointers
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WG156
&1 condition change pointer was deleted
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WG159
You have called function module &1, which is no longer valid
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WG160
Add item not possible -> New document will be created
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.