SAP DOCUMENT_DATA_SET Function Module for NOTRANSL: Nachreichen von Daten für Dokumente vor commit
DOCUMENT_DATA_SET is a standard document data set 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: Nachreichen von Daten für Dokumente vor commit 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 document data set FM, simply by entering the name DOCUMENT_DATA_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: CV00
Program Name: SAPLCV00
Main Program: SAPLCV00
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DOCUMENT_DATA_SET 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 'DOCUMENT_DATA_SET'"NOTRANSL: Nachreichen von Daten für Dokumente vor commit.
EXPORTING
* IN_DRAW = "
* REPLACE_DRAP = '' "
* PS_AUDIT = "
* OK_CODE = "
TABLES
* EX_DELDRAD = "
* EX_INTDRAD = "
* EX_UPDDRAD = "
* EX_UPDDRAP = "Status Log
* EX_UPDDRAT = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCV00_001 Exit for check_in before files transport
EXIT_SAPLCV00_002 Exit for check in after file transport
IMPORTING Parameters details for DOCUMENT_DATA_SET
IN_DRAW -
Data type: DRAWOptional: Yes
Call by Reference: No ( called with pass by value option)
REPLACE_DRAP -
Data type:Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
PS_AUDIT -
Data type: DMS_AUDITSOptional: Yes
Call by Reference: No ( called with pass by value option)
OK_CODE -
Data type: SY-UCOMMOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DOCUMENT_DATA_SET
EX_DELDRAD -
Data type: DRADOptional: Yes
Call by Reference: No ( called with pass by value option)
EX_INTDRAD -
Data type: DRADOptional: Yes
Call by Reference: No ( called with pass by value option)
EX_UPDDRAD -
Data type: DRADOptional: Yes
Call by Reference: No ( called with pass by value option)
EX_UPDDRAP - Status Log
Data type: DRAPOptional: Yes
Call by Reference: No ( called with pass by value option)
EX_UPDDRAT -
Data type: TKTTXTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DOCUMENT_DATA_SET 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_in_draw | TYPE DRAW, " | |||
| lt_ex_deldrad | TYPE STANDARD TABLE OF DRAD, " | |||
| lt_ex_intdrad | TYPE STANDARD TABLE OF DRAD, " | |||
| lv_replace_drap | TYPE DRAD, " '' | |||
| lv_ps_audit | TYPE DMS_AUDITS, " | |||
| lt_ex_upddrad | TYPE STANDARD TABLE OF DRAD, " | |||
| lv_ok_code | TYPE SY-UCOMM, " | |||
| lt_ex_upddrap | TYPE STANDARD TABLE OF DRAP, " | |||
| lt_ex_upddrat | TYPE STANDARD TABLE OF TKTTXT. " |
|   CALL FUNCTION 'DOCUMENT_DATA_SET' "NOTRANSL: Nachreichen von Daten für Dokumente vor commit |
| EXPORTING | ||
| IN_DRAW | = lv_in_draw | |
| REPLACE_DRAP | = lv_replace_drap | |
| PS_AUDIT | = lv_ps_audit | |
| OK_CODE | = lv_ok_code | |
| TABLES | ||
| EX_DELDRAD | = lt_ex_deldrad | |
| EX_INTDRAD | = lt_ex_intdrad | |
| EX_UPDDRAD | = lt_ex_upddrad | |
| EX_UPDDRAP | = lt_ex_upddrap | |
| EX_UPDDRAT | = lt_ex_upddrat | |
| . " DOCUMENT_DATA_SET | ||
ABAP code using 7.40 inline data declarations to call FM DOCUMENT_DATA_SET
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_replace_drap) | = ''. | |||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_ok_code). | ||||
Search for further information about these or an SAP related objects