SAP HAZMAT_SORT_ID_DATA Function Module for NOTRANSL: Gefahrgut: Befüllen der DGTMD Daten aus der Spezifikationsdatenb
HAZMAT_SORT_ID_DATA is a standard hazmat sort id 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: Befüllen der DGTMD Daten aus der Spezifikationsdatenb 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 hazmat sort id data FM, simply by entering the name HAZMAT_SORT_ID_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: DG07
Program Name: SAPLDG07
Main Program: SAPLDG07
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HAZMAT_SORT_ID_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 'HAZMAT_SORT_ID_DATA'"NOTRANSL: Gefahrgut: Befüllen der DGTMD Daten aus der Spezifikationsdatenb.
EXPORTING
I_VALDAT = "Valid-From Date
TABLES
X_LG_DGTMD_FILL = "DG: Gather Information for Filling (DGTMD)
I_PROP_USAGE1 = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_PROP_ET_VA = "
I_PROP_USAGE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
X_LG_PHRASE_LANGU_TAB = "EHS: Phrase languages
E_LG_DGTPK_FILL = "DG: Gather information for filling (DGTPK)
E_LG_IDENTS_UN_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_LG_IDENTS_HIS_TAB = "
I_ADD_DAT_TAB = "
I_TRANS_TAB = "
I_CONS_AUTH_TAB = "
I_PROP_TAB0F = "
EXCEPTIONS
NOT_FOUND = 1 FALSE_PRIO = 2
IMPORTING Parameters details for HAZMAT_SORT_ID_DATA
I_VALDAT - Valid-From Date
Data type: DGTMD-VALFROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HAZMAT_SORT_ID_DATA
X_LG_DGTMD_FILL - DG: Gather Information for Filling (DGTMD)
Data type: RDG_DGTMD_FILLOptional: No
Call by Reference: No ( called with pass by value option)
I_PROP_USAGE1 - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESPRH_APIDU_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_PROP_ET_VA -
Data type: DGPD1_ET_ESTVA_TAB_TYPOptional: No
Call by Reference: No ( called with pass by value option)
I_PROP_USAGE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESPRH_APIDU_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
X_LG_PHRASE_LANGU_TAB - EHS: Phrase languages
Data type: RCGLGSELOptional: No
Call by Reference: No ( called with pass by value option)
E_LG_DGTPK_FILL - DG: Gather information for filling (DGTPK)
Data type: RDG_DGTPK_FILLOptional: No
Call by Reference: No ( called with pass by value option)
E_LG_IDENTS_UN_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: DGPD1_IDENTS_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
E_LG_IDENTS_HIS_TAB -
Data type: DGPD1_IDENTS_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_ADD_DAT_TAB -
Data type: DGPD1_ADD_DAT_TAB_TYPOptional: No
Call by Reference: No ( called with pass by value option)
I_TRANS_TAB -
Data type: DGPD1_TRANS_TAB_TYPOptional: No
Call by Reference: No ( called with pass by value option)
I_CONS_AUTH_TAB -
Data type: DGPD1_CONS_AUTH_TAB_TYPOptional: No
Call by Reference: No ( called with pass by value option)
I_PROP_TAB0F -
Data type: ESPRH_API0F_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FALSE_PRIO - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HAZMAT_SORT_ID_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_i_valdat | TYPE DGTMD-VALFR, " | |||
| lv_not_found | TYPE DGTMD, " | |||
| lt_x_lg_dgtmd_fill | TYPE STANDARD TABLE OF RDG_DGTMD_FILL, " | |||
| lt_i_prop_usage1 | TYPE STANDARD TABLE OF ESPRH_APIDU_TAB_TYPE, " | |||
| lt_i_prop_et_va | TYPE STANDARD TABLE OF DGPD1_ET_ESTVA_TAB_TYP, " | |||
| lt_i_prop_usage | TYPE STANDARD TABLE OF ESPRH_APIDU_TAB_TYPE, " | |||
| lv_false_prio | TYPE ESPRH_APIDU_TAB_TYPE, " | |||
| lt_x_lg_phrase_langu_tab | TYPE STANDARD TABLE OF RCGLGSEL, " | |||
| lt_e_lg_dgtpk_fill | TYPE STANDARD TABLE OF RDG_DGTPK_FILL, " | |||
| lt_e_lg_idents_un_tab | TYPE STANDARD TABLE OF DGPD1_IDENTS_TAB_TYPE, " | |||
| lt_e_lg_idents_his_tab | TYPE STANDARD TABLE OF DGPD1_IDENTS_TAB_TYPE, " | |||
| lt_i_add_dat_tab | TYPE STANDARD TABLE OF DGPD1_ADD_DAT_TAB_TYP, " | |||
| lt_i_trans_tab | TYPE STANDARD TABLE OF DGPD1_TRANS_TAB_TYP, " | |||
| lt_i_cons_auth_tab | TYPE STANDARD TABLE OF DGPD1_CONS_AUTH_TAB_TYP, " | |||
| lt_i_prop_tab0f | TYPE STANDARD TABLE OF ESPRH_API0F_TAB_TYPE. " |
|   CALL FUNCTION 'HAZMAT_SORT_ID_DATA' "NOTRANSL: Gefahrgut: Befüllen der DGTMD Daten aus der Spezifikationsdatenb |
| EXPORTING | ||
| I_VALDAT | = lv_i_valdat | |
| TABLES | ||
| X_LG_DGTMD_FILL | = lt_x_lg_dgtmd_fill | |
| I_PROP_USAGE1 | = lt_i_prop_usage1 | |
| I_PROP_ET_VA | = lt_i_prop_et_va | |
| I_PROP_USAGE | = lt_i_prop_usage | |
| X_LG_PHRASE_LANGU_TAB | = lt_x_lg_phrase_langu_tab | |
| E_LG_DGTPK_FILL | = lt_e_lg_dgtpk_fill | |
| E_LG_IDENTS_UN_TAB | = lt_e_lg_idents_un_tab | |
| E_LG_IDENTS_HIS_TAB | = lt_e_lg_idents_his_tab | |
| I_ADD_DAT_TAB | = lt_i_add_dat_tab | |
| I_TRANS_TAB | = lt_i_trans_tab | |
| I_CONS_AUTH_TAB | = lt_i_cons_auth_tab | |
| I_PROP_TAB0F | = lt_i_prop_tab0f | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| FALSE_PRIO = 2 | ||
| . " HAZMAT_SORT_ID_DATA | ||
ABAP code using 7.40 inline data declarations to call FM HAZMAT_SORT_ID_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 VALFR FROM DGTMD INTO @DATA(ld_i_valdat). | ||||
Search for further information about these or an SAP related objects