SAP DG07N_COLLECT_DATA Function Module for NOTRANSL: Gefahrgut: Sammeln relevanter Gefahrgutinformationen
DG07N_COLLECT_DATA is a standard dg07n collect data 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: Gefahrgut: Sammeln relevanter Gefahrgutinformationen 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 dg07n collect data FM, simply by entering the name DG07N_COLLECT_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: DG07N
Program Name: SAPLDG07N
Main Program: SAPLDG07N
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DG07N_COLLECT_DATA 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 'DG07N_COLLECT_DATA'"NOTRANSL: Gefahrgut: Sammeln relevanter Gefahrgutinformationen.
EXPORTING
* I_SIMULATION_ONLY = ESP1_FALSE "Simulation
* I_SEL_DATE = SY-DATUM "Valid-From Date
I_LG_PHRGRP = "Phrase Group
I_LG_CATPIN = "Unique phrase library identification
I_CHANGEPO = "Evaluate change pointers
IMPORTING
E_RECORD_SAVE = "Only Cargo Air Transport Permitted
EV_FLG_SIMU_MANY_MAT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
* LG_I_KLASSTOF = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* LG_I_REALSTOF = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* LG_I_MATERIAL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_LG_MATERIAL_ID_TAB = "
* E_LOGTAB = "Application Log: APPL_LOG_WRITE_MESSAGES interface
EXCEPTIONS
FALSE_PRIO = 1
IMPORTING Parameters details for DG07N_COLLECT_DATA
I_SIMULATION_ONLY - Simulation
Data type: ADGE_SIMUDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEL_DATE - Valid-From Date
Data type: DGTMD-VALFRDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LG_PHRGRP - Phrase Group
Data type: ESTPH-PHRGRPOptional: No
Call by Reference: No ( called with pass by value option)
I_LG_CATPIN - Unique phrase library identification
Data type: ESTPH-CATPINOptional: No
Call by Reference: No ( called with pass by value option)
I_CHANGEPO - Evaluate change pointers
Data type: THME_CHPOOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DG07N_COLLECT_DATA
E_RECORD_SAVE - Only Cargo Air Transport Permitted
Data type: DGTMD-DGCAOOptional: No
Call by Reference: No ( called with pass by value option)
EV_FLG_SIMU_MANY_MAT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
TABLES Parameters details for DG07N_COLLECT_DATA
LG_I_KLASSTOF - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LG_I_REALSTOF - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LG_I_MATERIAL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LG_MATERIAL_ID_TAB -
Data type: ESP8_MATNR_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
E_LOGTAB - Application Log: APPL_LOG_WRITE_MESSAGES interface
Data type: BALMIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FALSE_PRIO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DG07N_COLLECT_DATA 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_false_prio | TYPE STRING, " | |||
| lv_e_record_save | TYPE DGTMD-DGCAO, " | |||
| lt_lg_i_klasstof | TYPE STANDARD TABLE OF DGTMD, " | |||
| lv_i_simulation_only | TYPE ADGE_SIMU, " ESP1_FALSE | |||
| lv_i_sel_date | TYPE DGTMD-VALFR, " SY-DATUM | |||
| lt_lg_i_realstof | TYPE STANDARD TABLE OF DGTMD, " | |||
| lv_ev_flg_simu_many_mat | TYPE ESP1_BOOLEAN, " | |||
| lv_i_lg_phrgrp | TYPE ESTPH-PHRGRP, " | |||
| lt_lg_i_material | TYPE STANDARD TABLE OF ESTPH, " | |||
| lv_i_lg_catpin | TYPE ESTPH-CATPIN, " | |||
| lt_i_lg_material_id_tab | TYPE STANDARD TABLE OF ESP8_MATNR_TAB_TYPE, " | |||
| lt_e_logtab | TYPE STANDARD TABLE OF BALMI, " | |||
| lv_i_changepo | TYPE THME_CHPO. " |
|   CALL FUNCTION 'DG07N_COLLECT_DATA' "NOTRANSL: Gefahrgut: Sammeln relevanter Gefahrgutinformationen |
| EXPORTING | ||
| I_SIMULATION_ONLY | = lv_i_simulation_only | |
| I_SEL_DATE | = lv_i_sel_date | |
| I_LG_PHRGRP | = lv_i_lg_phrgrp | |
| I_LG_CATPIN | = lv_i_lg_catpin | |
| I_CHANGEPO | = lv_i_changepo | |
| IMPORTING | ||
| E_RECORD_SAVE | = lv_e_record_save | |
| EV_FLG_SIMU_MANY_MAT | = lv_ev_flg_simu_many_mat | |
| TABLES | ||
| LG_I_KLASSTOF | = lt_lg_i_klasstof | |
| LG_I_REALSTOF | = lt_lg_i_realstof | |
| LG_I_MATERIAL | = lt_lg_i_material | |
| I_LG_MATERIAL_ID_TAB | = lt_i_lg_material_id_tab | |
| E_LOGTAB | = lt_e_logtab | |
| EXCEPTIONS | ||
| FALSE_PRIO = 1 | ||
| . " DG07N_COLLECT_DATA | ||
ABAP code using 7.40 inline data declarations to call FM DG07N_COLLECT_DATA
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 DGCAO FROM DGTMD INTO @DATA(ld_e_record_save). | ||||
| DATA(ld_i_simulation_only) | = ESP1_FALSE. | |||
| "SELECT single VALFR FROM DGTMD INTO @DATA(ld_i_sel_date). | ||||
| DATA(ld_i_sel_date) | = SY-DATUM. | |||
| "SELECT single PHRGRP FROM ESTPH INTO @DATA(ld_i_lg_phrgrp). | ||||
| "SELECT single CATPIN FROM ESTPH INTO @DATA(ld_i_lg_catpin). | ||||
Search for further information about these or an SAP related objects