How delete order in SAP CRM with ABAP?

Work with SAP CRM with ABAP you use a lot of model data, but sometimes using Model not best way for performance.

In my case when I want to delete Order CRM from SAP CRM, Model Data CRM didn’t worked. I tried to get object CL_CRM_BOL_ENTITY by GUID from table CRMD_ORDERADM_H ( Order SAP CRM Tables ) and use method DELETE ( from class CL_CRM_BOL_ENTITY ), but it didn’t work.

Deleting Order in SAP CRM with ABAP

In SAP CRM we also have function module for work with Order CRM. You can find these function module ABAP CRM_ORDER_DELETE in Function Group CRM_ORDER_API.

I tried to use function module CRM_ORDER_DELETE and I deleted 15 orders CRM very fast. You need only send GUIDs to internal table ABAP with type CRMT_OBJECT_GUID_TAB and fill some other parameters. I show you my example with using CRM_ORDER_DELETE and new syntax ABAP for filling internal table ABAP:

In this ABAP code table lt_ord_list it internal table ABAP with some fields and include also list GUIDs for deleting.

Leave a Reply