SAP V51P_GET_TABLES Function Module for NOTRANSL: rausgeben der globalen Tabellen









V51P_GET_TABLES is a standard v51p get tables 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: rausgeben der globalen Tabellen 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 v51p get tables FM, simply by entering the name V51P_GET_TABLES into the relevant SAP transaction such as SE37 or SE38.

Function Group: V51P
Program Name: SAPLV51P
Main Program: SAPLV51P
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function V51P_GET_TABLES 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 'V51P_GET_TABLES'"NOTRANSL: rausgeben der globalen Tabellen
EXPORTING
* IF_OBJECT = "
* IF_NO_LOOP = 'X' "
* IS_FLAGS = "
* IS_OBJECT = "
* IT_OBJECTS = "
* IT_HUS = "
* IT_VENUM = "
* IT_HANDLE = "Table with HU Identifiers
* IF_AR_HUS = ' ' "Also Read Archived HUs

IMPORTING
ET_XVEKP = "
ET_YVEKP = "
ET_XVEPO = "
ET_YVEPO = "
ET_VEVW = "
ET_V51VP = "
ET_HIGHEST_LEVEL = "
ET_MESSAGES = "Table Type for Returning Output for Packing
ET_OBJECTS = "Table with HU Objects

EXCEPTIONS
HUS_LOCKED = 1 NO_HU_FOUND = 2 FATAL_ERROR = 3
.




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_SAPLV51P_001 User Exit: Automatic Packing - Packaging Material Determination
EXIT_SAPLV51P_002 User Exit: Automatic Packing
EXIT_SAPLV51P_003 Fill Append Fields for Automatic Packing

IMPORTING Parameters details for V51P_GET_TABLES

IF_OBJECT -

Data type: VPOBJ
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_NO_LOOP -

Data type: XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_FLAGS -

Data type: V51P_SELECT_FLAGS
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_OBJECT -

Data type: HUM_OBJECT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_OBJECTS -

Data type: HUM_OBJECT_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_HUS -

Data type: HUM_EXIDV_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_VENUM -

Data type: HUM_VENUM_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_HANDLE - Table with HU Identifiers

Data type: HUM_HANDLE_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

IF_AR_HUS - Also Read Archived HUs

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for V51P_GET_TABLES

ET_XVEKP -

Data type: VSEP_T_VEKP
Optional: No
Call by Reference: Yes

ET_YVEKP -

Data type: VSEP_T_VEKP
Optional: No
Call by Reference: Yes

ET_XVEPO -

Data type: VSEP_T_VEPO
Optional: No
Call by Reference: Yes

ET_YVEPO -

Data type: VSEP_T_VEPO
Optional: No
Call by Reference: Yes

ET_VEVW -

Data type: VSEP_T_VEVW
Optional: No
Call by Reference: Yes

ET_V51VP -

Data type: VSEP_T_V51VP
Optional: No
Call by Reference: Yes

ET_HIGHEST_LEVEL -

Data type: VSEP_T_VEKPKEY
Optional: No
Call by Reference: Yes

ET_MESSAGES - Table Type for Returning Output for Packing

Data type: HUITEM_MESSAGES_T
Optional: No
Call by Reference: Yes

ET_OBJECTS - Table with HU Objects

Data type: HUM_OBJECT_T
Optional: No
Call by Reference: Yes

EXCEPTIONS details

HUS_LOCKED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_HU_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

FATAL_ERROR - Program Error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for V51P_GET_TABLES 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_et_xvekp  TYPE VSEP_T_VEKP, "   
lv_if_object  TYPE VPOBJ, "   
lv_hus_locked  TYPE VPOBJ, "   
lv_et_yvekp  TYPE VSEP_T_VEKP, "   
lv_if_no_loop  TYPE XFELD, "   'X'
lv_no_hu_found  TYPE XFELD, "   
lv_et_xvepo  TYPE VSEP_T_VEPO, "   
lv_is_flags  TYPE V51P_SELECT_FLAGS, "   
lv_fatal_error  TYPE V51P_SELECT_FLAGS, "   
lv_et_yvepo  TYPE VSEP_T_VEPO, "   
lv_is_object  TYPE HUM_OBJECT, "   
lv_et_vevw  TYPE VSEP_T_VEVW, "   
lv_it_objects  TYPE HUM_OBJECT_T, "   
lv_it_hus  TYPE HUM_EXIDV_T, "   
lv_et_v51vp  TYPE VSEP_T_V51VP, "   
lv_it_venum  TYPE HUM_VENUM_T, "   
lv_et_highest_level  TYPE VSEP_T_VEKPKEY, "   
lv_it_handle  TYPE HUM_HANDLE_T, "   
lv_et_messages  TYPE HUITEM_MESSAGES_T, "   
lv_if_ar_hus  TYPE XFELD, "   SPACE
lv_et_objects  TYPE HUM_OBJECT_T. "   

  CALL FUNCTION 'V51P_GET_TABLES'  "NOTRANSL: rausgeben der globalen Tabellen
    EXPORTING
         IF_OBJECT = lv_if_object
         IF_NO_LOOP = lv_if_no_loop
         IS_FLAGS = lv_is_flags
         IS_OBJECT = lv_is_object
         IT_OBJECTS = lv_it_objects
         IT_HUS = lv_it_hus
         IT_VENUM = lv_it_venum
         IT_HANDLE = lv_it_handle
         IF_AR_HUS = lv_if_ar_hus
    IMPORTING
         ET_XVEKP = lv_et_xvekp
         ET_YVEKP = lv_et_yvekp
         ET_XVEPO = lv_et_xvepo
         ET_YVEPO = lv_et_yvepo
         ET_VEVW = lv_et_vevw
         ET_V51VP = lv_et_v51vp
         ET_HIGHEST_LEVEL = lv_et_highest_level
         ET_MESSAGES = lv_et_messages
         ET_OBJECTS = lv_et_objects
    EXCEPTIONS
        HUS_LOCKED = 1
        NO_HU_FOUND = 2
        FATAL_ERROR = 3
. " V51P_GET_TABLES




ABAP code using 7.40 inline data declarations to call FM V51P_GET_TABLES

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_if_no_loop) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_if_ar_hus) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!