Do you have any question about this error?
Message type: E = Error
Message class: M7 - Inventory Management and Physical Inventory
Message number: 158
Message text: Sales price for & & & & could not be found
The sales price valuation is active in the valuation area.
The system could not determine a sales price on the specified posting
date for material &V2& in unit of entry &V3& in plant &V4&.
Sales price conditions may not be defined for the material in plant &V4&
.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
If you have a goods receipt for a purchase order or an order, the sales
price is taken from the purchase order or the order concerned.
Check the sales price in the purchase order or the order.
if you have goods movements without a reference, you can specify the
sales value (sales price including sales tax) manually.
If the screen does not have the field <LS>Sales price</>, then you have
a Customizing error: the sales price valuation was activated in the
valuation area, but the field selection of the movement type was not
changed accordingly. In this case, contact your system administrator.
Check the definition of the sales price.
Note that for distribution centers, the sales price of the consumer
distribution chain maintained in the distribution center's master data
is used.
<DS:TRAN.VKP2>Proceed</>
If you post this movement without the sales value, the movement will be
valuated with value zero. This can change the average sales price.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message M7158, which states "Sales price for & & & & could not be found," typically occurs in the context of sales order processing or pricing determination in SAP. This error indicates that the system is unable to find a valid sales price for the specified material or product in the given conditions.
Causes:
Missing Pricing Conditions: The pricing conditions for the material in question may not be maintained in the system. This can happen if the pricing records are not created or if they have been deleted.
Incorrect Condition Records: The condition records for pricing may not be set up correctly. This includes missing or incorrect validity dates, pricing types, or other relevant parameters.
Sales Area Configuration: The sales area (which includes the sales organization, distribution channel, and division) may not be properly configured or may not match the sales order being processed.
Material Master Data Issues: The material master data may not be correctly maintained, including the sales views or pricing information.
Customer-Specific Pricing: If the pricing is customer-specific, there may be no valid pricing records for the specific customer or customer group.
Condition Exclusion: There may be conditions that exclude certain pricing records from being applied.
Solutions:
Check Condition Records: Use transaction codes like
VK11
(Create Condition) orVK12
(Change Condition) to check if the pricing conditions for the material are maintained correctly. Ensure that the relevant condition types are set up.Review Sales Area Configuration: Verify that the sales area is correctly configured and that the material is assigned to the correct sales organization, distribution channel, and division.
Validate Material Master Data: Check the material master data using transaction code
MM03
to ensure that the sales views are properly maintained and that the material is active.Customer-Specific Pricing: If applicable, check if there are specific pricing agreements for the customer using transaction code
VK13
(Display Condition) to ensure that the customer has valid pricing.Check Validity Dates: Ensure that the validity dates for the pricing conditions are correct and that they cover the date of the sales order.
Consult Pricing Procedure: Review the pricing procedure assigned to the sales document type to ensure that it includes the necessary condition types for pricing determination.
Debugging: If the issue persists, consider debugging the pricing procedure to identify where the pricing determination is failing.
Related Information:
VK11
, VK12
, VK13
, MM03
, and VA01
(Create Sales Order) for troubleshooting.By following these steps, you should be able to identify and resolve the cause of the M7158 error in SAP.
Get instant SAP help. Start your 7-day free trial now.
Feature | Free Access | Free Trial |
---|---|---|
Basic SAP error explanation | ![]() |
![]() |
Step-by-Step Usage Guide | ![]() |
![]() |
Interactive SAP Coach Assistance | ![]() |
![]() |
AI Troubleshooting for T-Code Errors | ![]() |
![]() |
M7157 Stock type & not supported
What causes this issue? Quality Management requires that the material is posted...
M7156 Material & is QM-relevant and is posted in &
What causes this issue? Material &V1& is relevant for Quality Managemen...
M7159 Only enter goods receipts for issuing plant &
What causes this issue? The issuing plant of the first item is &V1&. Al...
M7160 G/L account & flagged for deletion in company code &
INCLUDE NA_SKTO_LOESCHError message extract from SAP system. Copyright SAP SE. ...
SAP messages fall into 3 different categories: Error messages
(message type = E), Warnings (W) or Informational (I) messages.
An error message will prevent you from continuing your work - it is a hard stop and you need to fix the error before you can proceed. A warning message will stop your work, however, you can then bypass the warning by pressing the Enter key on your keyboard. That said, it is still good practice to investigate the cause of the warning message and address it. An information message will not stop your work and is truly just for informational purposes.
Click on this link to search all SAP messages.