SAP Knowledge Base Article - Public

3765761 - The BAdI SD_SLS_MODIFY_ITEM_REQDATE is not triggered when making changes in the custom fields of the sales document header.

Symptom

The BAdI SD_SLS_MODIFY_ITEM_REQDATE is not getting called when making changes in the custom fields of the header level of the sales document even if it is maintained under importing parameter of the respective custom logic.

Environment

SAP S/4HANA Cloud Public Edition

Cause

By standard design, the BAdi SD_SLS_MODIFY_ITEM_REQDATE is not called by changes in custom fields at the sales document header level. Because, item reprocessing does not occur in this scenario. The SD_SLS_MODIFY_ITEM_REQDAT is only called if a field on item level is changed.

Resolution

Can follow either of the below workarounds:

Trigger the BAdI SD_SLS_MODIFY_ITEM_REQDAT using the custom field on the Item level. Make sure you maintain those custom fields under the importing parameter of your custom logic.

OR,

If needed the BAdI SD_SLS_MODIFY_ITEM_REQDAT to get triggered for the header level custom field, you can implement the BAdI SD_SLS_REPROCESS_ITEMS_HEAD to reprocess all the items after a specific header-level custom field change. This calls BAdI SD_SLS_MODIFY_ITEM and then BAdI SD_SLS_MODIFY_ITEM_REQDAT for each item. The prerequisite is you, need to create the custom field on the item level also.

The sequence would look like this:

    1. Header Custom Field is changed:
      • The BAdI SD_SLS_REPROCESS_ITEMS_HEAD is called: In the custom implementation, you see the change of the custom field and set the flag to retrigger item processing
    2. Items are reprocessed:
      • The BAdI SD_SLS_MODIFY_ITEM is called first: Through this BAdI, the new custom field on item level needs to be set to the same value as the header custom field.
    3. SD_SLS_MODIFY_ITEM_REQDAT is called: 
      • The 2nd step will trigger the BAdI SD_SLS_MODIFY_ITEM_REQDAT, because it detects the change on the item level(VBAP: new custom field on item level is changed)

    See Also

    Keywords

    SD_SLS_MODIFY_ITEM_REQDATE, SD_SLS_REPROCESS_ITEMS_HEAD, schedule line date, delivery date update, item reprocessing, header custom fields, item custom fields, BAdI not called, quotation copy behavior, extensibility, sales order processing, requested delivery date, SD_SLS_MODIFY_ITEM. , KBA , SD-SLS-EXT-2CL , Extensibility (Public Cloud) , Problem

    Product

    SAP S/4HANA Cloud Public Edition all versions