Symptom
- When applying a delivery block from Manage Sales Orders app BADI SD_SLS_CHECK_DELETE_ITEM is triggered.
- BAdI SD_SLS_CHECK_DELETE_ITEM should only trigger when an item is deleted but actions within Manage Sales Orders app trigger the BAdI incorrectly.
- The triggering of BAdI SD_SLS_CHECK_DELETE_ITEM is different between Change Sales Order - VA02 and Manage Sales Order apps.
Environment
- Sales and Distribution (SD)
- SAP S/4HANA Cloud All versions
Reproducing the Issue
- Logon with Business Role SAP_BR_INTERNAL_SALES_REP assigned.
- Open app Manage Sales Orders.
- Enter selection criteria and press [Go].
- Select a Sales Order and choose action [Set Delivery Block].
- Assign a delivery block reason and press [OK].
- An error message coded into BAdI SD_SLS_CHECK_DELETE_ITEM is raised.
Cause
A correction to the behavior is planned for an upcoming release where the messages created in CHECK_DELETE_ITEM BAdI are not raised during actions that are not explicitly intended for item deletion.
Resolution
As a workaround please change the message type raised within the BAdI from Error 'E' to Warning 'W'. This will still prevent the deletion of items because this function is solely controlled by the 'no_deletion' parameter. It should then be possible to set the delivery block from Manage Sales Orders App.
We have completed a correction to your software. This correction is planned to be delivered with S/4HANA Cloud Release 2208. The current S/4HANA upgrade schedule is available here. Please note that this date may be altered by SAP without warning.
Keywords
VA03, VA01, SalesOrder, Change Sales Orders, Sales Item Deletion Check, ES_SD_SLS_EXTEND, messagetype, MESSAGES, LOGIC, custom, F1873, SD_F1873_SO_WL_SRV, F1481, Remove Delivery Block, Set Billing Block, Remove Billing Block , KBA , SD-SLS-EXT , Extensibility , SD-SLS-EXT-2CL , Extensibility (Public Cloud) , Known Error