SAP DG10_CHANGE_DOC_USER_EXIT Function Module for NOTRANSL: GG: Schreiben von Änderungsbelegen (Stamm)
DG10_CHANGE_DOC_USER_EXIT is a standard dg10 change doc user exit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: GG: Schreiben von Änderungsbelegen (Stamm) 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 dg10 change doc user exit FM, simply by entering the name DG10_CHANGE_DOC_USER_EXIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: DG10
Program Name: SAPLDG10
Main Program: SAPLDG10
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update: 3

Function DG10_CHANGE_DOC_USER_EXIT 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 'DG10_CHANGE_DOC_USER_EXIT'"NOTRANSL: GG: Schreiben von Änderungsbelegen (Stamm).
EXPORTING
I_STR_OBJ_INFO = "Object value
I_CALL_STATUS = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
I_BUFTAB = "DG: Buffer Table
I_BUFTAB_OLD = "DG: Buffer Table
I_BUFTAB_PK = "DG-Pack: Buffer table
I_BUFTAB_PK_OLD = "DG-Pack: Buffer table
IMPORTING Parameters details for DG10_CHANGE_DOC_USER_EXIT
I_STR_OBJ_INFO - Object value
Data type: CDHDR-OBJECTIDOptional: No
Call by Reference: No ( called with pass by value option)
I_CALL_STATUS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: DGPD1_CALL_STATUSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DG10_CHANGE_DOC_USER_EXIT
I_BUFTAB - DG: Buffer Table
Data type: RDGMDBUFOptional: No
Call by Reference: No ( called with pass by value option)
I_BUFTAB_OLD - DG: Buffer Table
Data type: RDGMDBUFOptional: No
Call by Reference: No ( called with pass by value option)
I_BUFTAB_PK - DG-Pack: Buffer table
Data type: RDGPKBUFOptional: No
Call by Reference: No ( called with pass by value option)
I_BUFTAB_PK_OLD - DG-Pack: Buffer table
Data type: RDGPKBUFOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DG10_CHANGE_DOC_USER_EXIT 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_i_buftab | TYPE STANDARD TABLE OF RDGMDBUF, " | |||
| lv_i_str_obj_info | TYPE CDHDR-OBJECTID, " | |||
| lt_i_buftab_old | TYPE STANDARD TABLE OF RDGMDBUF, " | |||
| lv_i_call_status | TYPE DGPD1_CALL_STATUS, " | |||
| lt_i_buftab_pk | TYPE STANDARD TABLE OF RDGPKBUF, " | |||
| lt_i_buftab_pk_old | TYPE STANDARD TABLE OF RDGPKBUF. " |
|   CALL FUNCTION 'DG10_CHANGE_DOC_USER_EXIT' "NOTRANSL: GG: Schreiben von Änderungsbelegen (Stamm) |
| EXPORTING | ||
| I_STR_OBJ_INFO | = lv_i_str_obj_info | |
| I_CALL_STATUS | = lv_i_call_status | |
| TABLES | ||
| I_BUFTAB | = lt_i_buftab | |
| I_BUFTAB_OLD | = lt_i_buftab_old | |
| I_BUFTAB_PK | = lt_i_buftab_pk | |
| I_BUFTAB_PK_OLD | = lt_i_buftab_pk_old | |
| . " DG10_CHANGE_DOC_USER_EXIT | ||
ABAP code using 7.40 inline data declarations to call FM DG10_CHANGE_DOC_USER_EXIT
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 OBJECTID FROM CDHDR INTO @DATA(ld_i_str_obj_info). | ||||
Search for further information about these or an SAP related objects