SAP SDU_DOCU_DELETE Function Module for EDM delete documentation
SDU_DOCU_DELETE is a standard sdu docu delete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EDM delete documentation 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 sdu docu delete FM, simply by entering the name SDU_DOCU_DELETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDU3
Program Name: SAPLSDU3
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SDU_DOCU_DELETE 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 'SDU_DOCU_DELETE'"EDM delete documentation.
EXPORTING
* KEY1 = ' ' "Key 1 doc. object
* LANGU = SY-LANGU "Language
* OBJ_ID = ' ' "EDM object ID
* KEY2 = ' ' "Key 2
* KEY3 = ' ' "Key 3
* KEY4 = ' ' "
* KEY5 = ' ' "
* KEY6 = ' ' "
* KEY7 = ' ' "
* KEY8 = ' ' "
* KEY9 = ' ' "
EXCEPTIONS
RET_CODE = 1
IMPORTING Parameters details for SDU_DOCU_DELETE
KEY1 - Key 1 doc. object
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGU - Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJ_ID - EDM object ID
Data type: DMINF-FLG_ENTRYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY2 - Key 2
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY3 - Key 3
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY4 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY5 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY6 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY7 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY8 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
KEY9 -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
RET_CODE - Documentation not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SDU_DOCU_DELETE 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: | ||||
| lv_key1 | TYPE STRING, " SPACE | |||
| lv_ret_code | TYPE STRING, " | |||
| lv_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_obj_id | TYPE DMINF-FLG_ENTRY, " SPACE | |||
| lv_key2 | TYPE DMINF, " SPACE | |||
| lv_key3 | TYPE DMINF, " SPACE | |||
| lv_key4 | TYPE DMINF, " SPACE | |||
| lv_key5 | TYPE DMINF, " SPACE | |||
| lv_key6 | TYPE DMINF, " SPACE | |||
| lv_key7 | TYPE DMINF, " SPACE | |||
| lv_key8 | TYPE DMINF, " SPACE | |||
| lv_key9 | TYPE DMINF. " SPACE |
|   CALL FUNCTION 'SDU_DOCU_DELETE' "EDM delete documentation |
| EXPORTING | ||
| KEY1 | = lv_key1 | |
| LANGU | = lv_langu | |
| OBJ_ID | = lv_obj_id | |
| KEY2 | = lv_key2 | |
| KEY3 | = lv_key3 | |
| KEY4 | = lv_key4 | |
| KEY5 | = lv_key5 | |
| KEY6 | = lv_key6 | |
| KEY7 | = lv_key7 | |
| KEY8 | = lv_key8 | |
| KEY9 | = lv_key9 | |
| EXCEPTIONS | ||
| RET_CODE = 1 | ||
| . " SDU_DOCU_DELETE | ||
ABAP code using 7.40 inline data declarations to call FM SDU_DOCU_DELETE
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.| DATA(ld_key1) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
| DATA(ld_langu) | = SY-LANGU. | |||
| "SELECT single FLG_ENTRY FROM DMINF INTO @DATA(ld_obj_id). | ||||
| DATA(ld_obj_id) | = ' '. | |||
| DATA(ld_key2) | = ' '. | |||
| DATA(ld_key3) | = ' '. | |||
| DATA(ld_key4) | = ' '. | |||
| DATA(ld_key5) | = ' '. | |||
| DATA(ld_key6) | = ' '. | |||
| DATA(ld_key7) | = ' '. | |||
| DATA(ld_key8) | = ' '. | |||
| DATA(ld_key9) | = ' '. | |||
Search for further information about these or an SAP related objects