SAP BAPI_BUSPROCESSND_DELETEMULTI Function Module for Delete One Order transactions
BAPI_BUSPROCESSND_DELETEMULTI is a standard bapi busprocessnd deletemulti SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delete One Order transactions processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi busprocessnd deletemulti FM, simply by entering the name BAPI_BUSPROCESSND_DELETEMULTI into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_BUSPROCESSND_BAPI
Program Name: SAPLCRM_BUSPROCESSND_BAPI
Main Program: SAPLCRM_BUSPROCESSND_BAPI
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BAPI_BUSPROCESSND_DELETEMULTI pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_BUSPROCESSND_DELETEMULTI'"Delete One Order transactions.
EXPORTING
* UPDATE_TASK_LOCAL = FALSE "Set Update Task to Local
TABLES
OBJECTS_TO_DELETE = "List of Sales Orders to be Deleted
* DELETED_OBJECTS = "List of Deleted Sales Orders
* RETURN = "Return Parameters
IMPORTING Parameters details for BAPI_BUSPROCESSND_DELETEMULTI
UPDATE_TASK_LOCAL - Set Update Task to Local
Data type: BAPIBUS20001_CONTROL-UPDATE_TASK_LOCALDefault: FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_BUSPROCESSND_DELETEMULTI
OBJECTS_TO_DELETE - List of Sales Orders to be Deleted
Data type: BAPIBUS20001_GUID_DISOptional: No
Call by Reference: Yes
DELETED_OBJECTS - List of Deleted Sales Orders
Data type: BAPIBUS20001_OBJECT_IDOptional: Yes
Call by Reference: Yes
RETURN - Return Parameters
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_BUSPROCESSND_DELETEMULTI Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_objects_to_delete | TYPE STANDARD TABLE OF BAPIBUS20001_GUID_DIS, " | |||
| lv_update_task_local | TYPE BAPIBUS20001_CONTROL-UPDATE_TASK_LOCAL, " FALSE | |||
| lt_deleted_objects | TYPE STANDARD TABLE OF BAPIBUS20001_OBJECT_ID, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION 'BAPI_BUSPROCESSND_DELETEMULTI' "Delete One Order transactions |
| EXPORTING | ||
| UPDATE_TASK_LOCAL | = lv_update_task_local | |
| TABLES | ||
| OBJECTS_TO_DELETE | = lt_objects_to_delete | |
| DELETED_OBJECTS | = lt_deleted_objects | |
| RETURN | = lt_return | |
| . " BAPI_BUSPROCESSND_DELETEMULTI | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_BUSPROCESSND_DELETEMULTI
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single UPDATE_TASK_LOCAL FROM BAPIBUS20001_CONTROL INTO @DATA(ld_update_task_local). | ||||
| DATA(ld_update_task_local) | = FALSE. | |||
Search for further information about these or an SAP related objects