SAP Knowledge Base Article - Public

2797897 - Order type OR not recognized in BAdI SD_SLS_MODIFY_ITEM

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

  1. 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.
  2. Open the "Create Sales Orders" app to create a sales order.
  3. Save the sales order.
  4. 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

Help Portal - Sales Document Types

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

Product

SAP S/4HANA Cloud Public Edition all versions