SAP Knowledge Base Article - Public

3238758 - ABAP runtime error when deleting sales order whose order type is SD2 - SAP S/4HANA Cloud


When trying to delete a sales order whose order type is SD2 (replacement delivery order), a system runtime error occurs and the sales order cannot be deleted.


  • SAP S/4HANA Cloud


This is a known issue and the fix is now in progress.


Development is now working on the fix. Please follow the workaround below to sidestep this wrong system behavior.

  1. Delete sales order items first. 
  2. Then delete the header of the sales order concerned.


Please DO NOT save the sales order in between of item deletion and header deletion, otherwise the deletion will not work.


Replcmnt Deliv. Ord., SD2, abap runtime error, delete sales order , KBA , LO-ARM-SD , Sales , LO-ARM-SD-2CL , Sales (Public Cloud) , Problem


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