Do you have any question about this error?
Message type: E = Error
Message class: CM_SUB_MLI - Messages for Multilevel Inheritance
Message number: 042
Message text: Overwriting passed-on value assignments is not permitted
The settings in the inheritance template for the inheritance
relationship do not allow changes to passed-on data.
Set the required indicators in the inheritance template:
<LS><DS:DE.ESEFLG_DST_CHNG>Changes to target specifications
permitted</></> indicator to be allowed to overwrite value assignment
data temporarily
<LS><DS:DE.ESEFLG_INH_EXCL>Exclude from inheritance</></> to be allowed
to overwrite value assignment data permanently
Error message extract from SAP system. Copyright SAP SE.
CM_SUB_MLI042
- Overwriting passed-on value assignments is not permitted ?The SAP error message CM_SUB_MLI042 indicates that there is an attempt to overwrite passed-on value assignments in a context where it is not permitted. This typically occurs in the context of SAP's configuration or programming, particularly when dealing with value assignments in a function module, method, or similar constructs.
Cause:
The error usually arises due to one of the following reasons:
- Incorrect Value Assignment: You are trying to assign a new value to a parameter that has been passed by reference, which is not allowed in the current context.
- Function Module or Method Restrictions: The function module or method you are working with has specific rules regarding how parameters can be modified.
- Data Flow Issues: There may be a misunderstanding of how data is flowing through your program, leading to attempts to overwrite values that should remain constant.
Solution:
To resolve this error, consider the following steps:
Review Parameter Types: Check the parameters of the function module or method you are using. Ensure that you are not trying to overwrite parameters that are defined as "IMPORTING" or "CHANGING" when they should be "EXPORTING".
Use Local Variables: If you need to modify a value, consider using a local variable instead of trying to overwrite the passed-on parameter. This way, you can perform your calculations or modifications without violating the rules of the function/module.
Check Documentation: Review the documentation for the specific function module or method to understand its parameter handling and restrictions.
Debugging: If you are unsure where the error is occurring, use the SAP debugger to step through your code and identify the exact point where the error is triggered.
Consult with Colleagues or SAP Support: If the issue persists, consider discussing it with colleagues who have experience with the specific module or reaching out to SAP support for further assistance.
Related Information:
By following these steps, you should be able to identify the cause of the error and implement a suitable solution.
Get instant SAP help. Start your 7-day free trial now.
CM_SUB_MLI041
Relationship is not consistent
What causes this issue? The inheritance relationship between the specifications is not consistent.System Response While the SAP System is updating t...
CM_SUB_MLI040
Value assignment cannot be overwritten
What causes this issue? Errors occurred while the value assignment was being overwritten.System Response You cannot overwrite the value assignments ...
CM_SUB_MLI043
Inheritance relationship &1 was not processed owing to a lock error
What causes this issue? The system could not update the inheritance relationship since the locks required for the specifications could not be set.Sys...
CM_SUB_MLI044
Error during background processing in inheritance relationship &
What causes this issue? Errors occurred during processing.System Response The corresponding inheritance relationship is set to the status <LS>...
Click on this link to search all SAP messages.