SAP /SEHS/DGP50_GETSYMB_TUNRESCODE Function Module for DG: Reads tunnel restriction code
/SEHS/DGP50_GETSYMB_TUNRESCODE is a standard /sehs/dgp50 getsymb tunrescode SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DG: Reads tunnel restriction code 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 /sehs/dgp50 getsymb tunrescode FM, simply by entering the name /SEHS/DGP50_GETSYMB_TUNRESCODE into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SEHS/DGP50
Program Name: /SEHS/SAPLDGP50
Main Program: /SEHS/SAPLDGP50
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SEHS/DGP50_GETSYMB_TUNRESCODE 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 '/SEHS/DGP50_GETSYMB_TUNRESCODE'"DG: Reads tunnel restriction code.
EXPORTING
I_LANGU = "Sprachenschlüssel
I_FIELDNAME = "Feldname
I_REQ_HEAD_WA = "EHS: Belegkopf für Gefahrgutprüfungen und Druckaufbereitung
I_REQ_ITEM_WA = "EHS: Postionsdaten Gefahrgutprüfungen und Druckaufbereitung
I_REQ_ITEM_TAB = "EHS: Postionsdaten Gefahrgutprüfungen und Druckaufbereitung
I_REQ_DATA_TAB = "EHS: Dynamisch ermittelte Daten zum Druck von Gefahrgutdaten
IMPORTING
E_FLG_CHANGED = "Wahrheitswert
E_DGPRTTX_TAB = "EHS: Drucktexte zu Gefahrgutpositionen
CHANGING
X_DGPRINT_WA = "EHS: API Struktur - Gefahrgutstamm
X_DGTPTXT_WA = "GG: Textpattern, SAP Script Texte und Textfelder
* X_RETURN_TAB = "Returntabelle
IMPORTING Parameters details for /SEHS/DGP50_GETSYMB_TUNRESCODE
I_LANGU - Sprachenschlüssel
Data type: LANGUOptional: No
Call by Reference: Yes
I_FIELDNAME - Feldname
Data type: FIELDNAMEOptional: No
Call by Reference: Yes
I_REQ_HEAD_WA - EHS: Belegkopf für Gefahrgutprüfungen und Druckaufbereitung
Data type: /SEHS/DGS_REQHEADOptional: No
Call by Reference: Yes
I_REQ_ITEM_WA - EHS: Postionsdaten Gefahrgutprüfungen und Druckaufbereitung
Data type: /SEHS/DGS_REQITEMOptional: No
Call by Reference: Yes
I_REQ_ITEM_TAB - EHS: Postionsdaten Gefahrgutprüfungen und Druckaufbereitung
Data type: /SEHS/DGY_REQITEMOptional: No
Call by Reference: Yes
I_REQ_DATA_TAB - EHS: Dynamisch ermittelte Daten zum Druck von Gefahrgutdaten
Data type: /SEHS/DGY_REQDATAOptional: No
Call by Reference: Yes
EXPORTING Parameters details for /SEHS/DGP50_GETSYMB_TUNRESCODE
E_FLG_CHANGED - Wahrheitswert
Data type: /SEHS/BAE_BOOLEANOptional: No
Call by Reference: Yes
E_DGPRTTX_TAB - EHS: Drucktexte zu Gefahrgutpositionen
Data type: /SEHS/DGY_PRTTXAPIOptional: No
Call by Reference: Yes
CHANGING Parameters details for /SEHS/DGP50_GETSYMB_TUNRESCODE
X_DGPRINT_WA - EHS: API Struktur - Gefahrgutstamm
Data type: /SEHS/DGS_PRTMDOptional: No
Call by Reference: Yes
X_DGTPTXT_WA - GG: Textpattern, SAP Script Texte und Textfelder
Data type: /SEHS/DGS_PRTTPTXTOptional: No
Call by Reference: Yes
X_RETURN_TAB - Returntabelle
Data type: BAPIRET2_TOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for /SEHS/DGP50_GETSYMB_TUNRESCODE 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_langu | TYPE LANGU, " | |||
| lv_x_dgprint_wa | TYPE /SEHS/DGS_PRTMD, " | |||
| lv_e_flg_changed | TYPE /SEHS/BAE_BOOLEAN, " | |||
| lv_i_fieldname | TYPE FIELDNAME, " | |||
| lv_x_dgtptxt_wa | TYPE /SEHS/DGS_PRTTPTXT, " | |||
| lv_e_dgprttx_tab | TYPE /SEHS/DGY_PRTTXAPI, " | |||
| lv_x_return_tab | TYPE BAPIRET2_T, " | |||
| lv_i_req_head_wa | TYPE /SEHS/DGS_REQHEAD, " | |||
| lv_i_req_item_wa | TYPE /SEHS/DGS_REQITEM, " | |||
| lv_i_req_item_tab | TYPE /SEHS/DGY_REQITEM, " | |||
| lv_i_req_data_tab | TYPE /SEHS/DGY_REQDATA. " |
|   CALL FUNCTION '/SEHS/DGP50_GETSYMB_TUNRESCODE' "DG: Reads tunnel restriction code |
| EXPORTING | ||
| I_LANGU | = lv_i_langu | |
| I_FIELDNAME | = lv_i_fieldname | |
| I_REQ_HEAD_WA | = lv_i_req_head_wa | |
| I_REQ_ITEM_WA | = lv_i_req_item_wa | |
| I_REQ_ITEM_TAB | = lv_i_req_item_tab | |
| I_REQ_DATA_TAB | = lv_i_req_data_tab | |
| IMPORTING | ||
| E_FLG_CHANGED | = lv_e_flg_changed | |
| E_DGPRTTX_TAB | = lv_e_dgprttx_tab | |
| CHANGING | ||
| X_DGPRINT_WA | = lv_x_dgprint_wa | |
| X_DGTPTXT_WA | = lv_x_dgtptxt_wa | |
| X_RETURN_TAB | = lv_x_return_tab | |
| . " /SEHS/DGP50_GETSYMB_TUNRESCODE | ||
ABAP code using 7.40 inline data declarations to call FM /SEHS/DGP50_GETSYMB_TUNRESCODE
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.Search for further information about these or an SAP related objects