SAP Knowledge Base Article - Public

2797897 - Order type 'OR' cannot be recognized in BAdI "Sales Item Modification"


Custom logic maintained in BAdI "Sales Item Modification" doesn't work even it's already called.


SAP S/4HANA Cloud Sales

Reproducing the Issue

  1. Use app "Custom fields and logic" to maintain custom logic in BAdI "Sales Item Modification" of business context "Sales Document Item", use code "salesdocument-salesdocumenttype= 'or'" to identify the order type.
  2. Open app "Create Sales Orders" to create an order.
  3. Save the order.
  4. Check the generated order and found order item data isn't modified by code in BAdI "Sales Item Modification".


Sales document type OR is English version of the order type. However, system can only recognize its German version order type TA, but cannot recognize English order tpye OR. This is restricted by SAP standard code.


In sales modification BAdI, pelase use German version of sales document types like TA instead of OR, AG instead of QT and G2 instead of CR.


Sales Item Modifiction, SD_SLS_MODIFY_ITEM, OR, QT, BAdI, salesdocumenttype , KBA , SD-SLS-SO , Sales Orders , Problem


SAP S/4HANA Cloud all versions