Do you have any question about this error?
Message type: E = Error
Message class: MM - Messages for material master maintenance and Customizing
Message number: 158
Message text: You cannot maintain costing details here
You wanted to maintain costing details. This requires you to first
specify a plant or company code (depending on the valuation level).
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Check and extend your data as required.
Error message extract from SAP system. Copyright SAP SE.
MM158
- You cannot maintain costing details here ?The SAP error message MM158, "You cannot maintain costing details here," typically occurs in the Materials Management (MM) module when a user attempts to access or modify costing information for a material in a context where it is not allowed. This can happen for several reasons, and understanding the cause is essential for finding a solution.
Causes of MM158 Error
Material Status: The material may have a status that prevents changes to costing details. For example, if the material is marked as "blocked" or "inactive," you won't be able to maintain costing information.
Transaction Context: The transaction you are using may not allow for the maintenance of costing details. For instance, if you are in a transaction meant for other purposes (like creating a purchase order), you may not have access to costing information.
User Authorizations: The user may lack the necessary authorizations to maintain costing details. This can be due to role restrictions or missing permissions in the user profile.
Material Type Settings: Certain material types may have restrictions on maintaining costing details. For example, some materials may be set up as non-stock items or services, which do not require costing.
Configuration Settings: The configuration settings in the system may restrict access to costing details based on specific criteria or business rules.
Solutions to MM158 Error
Check Material Status: Verify the status of the material in question. If it is blocked or inactive, you may need to change its status to active or unblocked.
Use the Correct Transaction: Ensure that you are using the appropriate transaction for maintaining costing details. For example, use transaction codes like CK11N (Create Cost Estimate) or CK40N (Change Cost Estimate) for costing-related activities.
Review User Authorizations: Check the user roles and authorizations to ensure that the user has the necessary permissions to maintain costing details. If not, contact your SAP security administrator to adjust the roles.
Check Material Type: Review the material type settings to ensure that the material is set up correctly for costing. If it is a non-stock item, consider whether it should be changed to a stock item.
Consult Configuration Settings: If you have access to configuration settings, review them to see if there are any restrictions in place that prevent maintaining costing details. This may require assistance from an SAP consultant or system administrator.
Consult Documentation or Support: If the issue persists, consult SAP documentation or reach out to SAP support for further assistance. They may provide insights specific to your system configuration.
Related Information
By following these steps, you should be able to identify the cause of the MM158 error and implement a suitable solution.
Get instant SAP help. Start your 7-day free trial now.
MM157
You cannot display stock data here
What causes this issue? You wanted to display stock data. However, this is not possible since you have not specified a plant.System Response The sys...
MM156
You cannot maintain valuation data here
What causes this issue? You wanted to maintain valuation data. However, this requires: You to specify a plant or company code (depending on whether v...
MM159
The units of measure cannot be maintained for manufacturer parts
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
MM160
EANs cannot be maintained for manufacturer parts
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.