SAP Knowledge Base Article - Public

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

Symptom

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

Environment

SAP S/4HANA Cloud Public Edition

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".

Cause

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.

Resolution

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.

Keywords

Sales Item Modifiction, SD_SLS_MODIFY_ITEM, OR, QT, BAdI, salesdocumenttype , KBA , SD-SLS-SO , Sales Orders , SD-SLS-SO-2CL , Sales Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions