Symptom
Custom logic maintained in BAdI SD_SLS_MODIFY_ITEM doesn't work even it's already called.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Use the "Custom Logic" app to maintain custom logic in BAdI SD_SLS_MODIFY_ITEM, use code "salesdocument-salesdocumenttype= 'or'" to identify the order type.
-
Open the "Create Sales Orders" app to create a sales order.
-
Save the sales order.
-
Check the generated sales order and found order item data isn't modified by code in BAdI SD_SLS_MODIFY_ITEM.
Cause
Sales document type OR is English version of the order type. However, system can only recognize it's German version order type TA, but cannot recognize English order type OR.
This is restricted by SAP standard code.
Resolution
In sales modification BAdI, Use German version of sales document types like TA instead of OR, AG instead of QT and G2 instead of CR.
See Also
Keywords
SAP S/4HANA Cloud Public Edition, Sales item modification, SD_SLS_MODIFY_ITEM, OR, TA, QT, BAdI, Sales document type , KBA , SD-SLS-SO-2CL , Sales Orders (Public Cloud) , SD-SLS-EXT-2CL , Extensibility (Public Cloud) , Problem
SAP Knowledge Base Article - Public