SAP Knowledge Base Article - Public

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

Symptom

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.

Environment

  • SAP S/4HANA Cloud

Cause

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

Resolution

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.

Note

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

Keywords

Replcmnt Deliv. Ord., SD2, abap runtime error, delete sales order , KBA , LO-ARM-SD , Sales , Problem

Product

SAP S/4HANA Cloud all versions