SAP Knowledge Base Article - Public

3152093 - BADI - SD_SLS_CHECK_DELETE_ITEM - Initiated in Manage Sales Orders when removing delivery block

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

  1. Logon with Business Role SAP_BR_INTERNAL_SALES_REP assigned.
  2. Open app Manage Sales Orders.
  3. Enter selection criteria and press [Go].
  4. Select a Sales Order and choose action [Set Delivery Block].
  5. Assign a delivery block reason and press [OK].
  6. 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

Product

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