SAP HAZMAT_EXPAND_VALAREA Function Module for NOTRANSL: GGA: Expandiert einen Gültigkeitsraum und ermittelt Singles
HAZMAT_EXPAND_VALAREA is a standard hazmat expand valarea 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: GGA: Expandiert einen Gültigkeitsraum und ermittelt Singles 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 expand valarea FM, simply by entering the name HAZMAT_EXPAND_VALAREA into the relevant SAP transaction such as SE37 or SE38.
Function Group: DG70
Program Name: SAPLDG70
Main Program: SAPLDG70
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HAZMAT_EXPAND_VALAREA 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_EXPAND_VALAREA'"NOTRANSL: GGA: Expandiert einen Gültigkeitsraum und ermittelt Singles.
EXPORTING
I_RVLID = "Validity Area
IMPORTING
E_FLG_REGIONAL = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_FLG_SINGLE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
TABLES
I_RVLIDTAB = "EHS: Validity Area - Country - Region - VA - Assignment
* E_VALREGTAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
VALAREA_NOT_FOUND = 1
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_SAPLDG70_001 DG: Individual Determ. Countries/Mode of Transport Categories in Shipment
EXIT_SAPLDG70_002 DG: User Exit to Modify Internal Table (Countries/MTCs)
EXIT_SAPLDG70_003 DG: User Exit for Material Exchange and Component Explosion
EXIT_SAPLDG70_004 DG: Determine Countries/Mode of Trans. Cats in Shipping/Sales Individually
IMPORTING Parameters details for HAZMAT_EXPAND_VALAREA
I_RVLID - Validity Area
Data type: TCG93-RVLIDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HAZMAT_EXPAND_VALAREA
E_FLG_REGIONAL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_SINGLE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HAZMAT_EXPAND_VALAREA
I_RVLIDTAB - EHS: Validity Area - Country - Region - VA - Assignment
Data type: TCG93Optional: No
Call by Reference: No ( called with pass by value option)
E_VALREGTAB - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: DGPCS_TMP_VALREGTABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
VALAREA_NOT_FOUND - 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_EXPAND_VALAREA 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_rvlid | TYPE TCG93-RVLID, " | |||
| lt_i_rvlidtab | TYPE STANDARD TABLE OF TCG93, " | |||
| lv_e_flg_regional | TYPE ESP1_BOOLEAN, " | |||
| lv_valarea_not_found | TYPE ESP1_BOOLEAN, " | |||
| lt_e_valregtab | TYPE STANDARD TABLE OF DGPCS_TMP_VALREGTAB, " | |||
| lv_e_flg_single | TYPE ESP1_BOOLEAN. " |
|   CALL FUNCTION 'HAZMAT_EXPAND_VALAREA' "NOTRANSL: GGA: Expandiert einen Gültigkeitsraum und ermittelt Singles |
| EXPORTING | ||
| I_RVLID | = lv_i_rvlid | |
| IMPORTING | ||
| E_FLG_REGIONAL | = lv_e_flg_regional | |
| E_FLG_SINGLE | = lv_e_flg_single | |
| TABLES | ||
| I_RVLIDTAB | = lt_i_rvlidtab | |
| E_VALREGTAB | = lt_e_valregtab | |
| EXCEPTIONS | ||
| VALAREA_NOT_FOUND = 1 | ||
| . " HAZMAT_EXPAND_VALAREA | ||
ABAP code using 7.40 inline data declarations to call FM HAZMAT_EXPAND_VALAREA
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 RVLID FROM TCG93 INTO @DATA(ld_i_rvlid). | ||||
Search for further information about these or an SAP related objects