SAP HR_GET_VALUES_FROM_TABLES Function Module for









HR_GET_VALUES_FROM_TABLES is a standard hr get values from tables SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 hr get values from tables FM, simply by entering the name HR_GET_VALUES_FROM_TABLES into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRDA
Program Name: SAPLHRDA
Main Program: SAPLHRDA
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_GET_VALUES_FROM_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 'HR_GET_VALUES_FROM_TABLES'"
EXPORTING
I_TABNAME = "
* I_KEY09 = "
* STICHTAG = "
I_FELD1 = "
* I_FELD2 = "
* I_FELD3 = "
* I_FELD4 = "
* I_FELD5 = "
* I_FELD6 = "
* I_FELD7 = "
* I_FELD8 = "
I_KEY01 = "
* I_FELD9 = "
* I_KEY02 = "
* I_KEY03 = "
* I_KEY04 = "
* I_KEY05 = "
* I_KEY06 = "
* I_KEY07 = "
* I_KEY08 = "

IMPORTING
E_VALUE1 = "
E_VALUE2 = "
E_VALUE3 = "
E_VALUE4 = "
E_VALUE5 = "
E_VALUE6 = "
E_VALUE7 = "
E_VALUE8 = "
E_VALUE9 = "

EXCEPTIONS
NO_ENTRY = 1
.



IMPORTING Parameters details for HR_GET_VALUES_FROM_TABLES

I_TABNAME -

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

I_KEY09 -

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

STICHTAG -

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

I_FELD1 -

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

I_FELD2 -

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

I_FELD3 -

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

I_FELD4 -

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

I_FELD5 -

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

I_FELD6 -

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

I_FELD7 -

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

I_FELD8 -

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

I_KEY01 -

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

I_FELD9 -

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

I_KEY02 -

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

I_KEY03 -

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

I_KEY04 -

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

I_KEY05 -

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

I_KEY06 -

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

I_KEY07 -

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

I_KEY08 -

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

EXPORTING Parameters details for HR_GET_VALUES_FROM_TABLES

E_VALUE1 -

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

E_VALUE2 -

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

E_VALUE3 -

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

E_VALUE4 -

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

E_VALUE5 -

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

E_VALUE6 -

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

E_VALUE7 -

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

E_VALUE8 -

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

E_VALUE9 -

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

EXCEPTIONS details

NO_ENTRY -

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

Copy and paste ABAP code example for HR_GET_VALUES_FROM_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_e_value1  TYPE STRING, "   
lv_no_entry  TYPE STRING, "   
lv_i_tabname  TYPE DATABROWSE-TABLENAME, "   
lv_i_key09  TYPE DATABROWSE, "   
lv_stichtag  TYPE SY-DATUM, "   
lv_i_feld1  TYPE SY, "   
lv_i_feld2  TYPE SY, "   
lv_i_feld3  TYPE SY, "   
lv_i_feld4  TYPE SY, "   
lv_i_feld5  TYPE SY, "   
lv_i_feld6  TYPE SY, "   
lv_i_feld7  TYPE SY, "   
lv_i_feld8  TYPE SY, "   
lv_i_key01  TYPE SY, "   
lv_e_value2  TYPE SY, "   
lv_i_feld9  TYPE SY, "   
lv_i_key02  TYPE SY, "   
lv_e_value3  TYPE SY, "   
lv_i_key03  TYPE SY, "   
lv_e_value4  TYPE SY, "   
lv_i_key04  TYPE SY, "   
lv_e_value5  TYPE SY, "   
lv_i_key05  TYPE SY, "   
lv_e_value6  TYPE SY, "   
lv_i_key06  TYPE SY, "   
lv_e_value7  TYPE SY, "   
lv_i_key07  TYPE SY, "   
lv_e_value8  TYPE SY, "   
lv_i_key08  TYPE SY, "   
lv_e_value9  TYPE SY. "   

  CALL FUNCTION 'HR_GET_VALUES_FROM_TABLES'  "
    EXPORTING
         I_TABNAME = lv_i_tabname
         I_KEY09 = lv_i_key09
         STICHTAG = lv_stichtag
         I_FELD1 = lv_i_feld1
         I_FELD2 = lv_i_feld2
         I_FELD3 = lv_i_feld3
         I_FELD4 = lv_i_feld4
         I_FELD5 = lv_i_feld5
         I_FELD6 = lv_i_feld6
         I_FELD7 = lv_i_feld7
         I_FELD8 = lv_i_feld8
         I_KEY01 = lv_i_key01
         I_FELD9 = lv_i_feld9
         I_KEY02 = lv_i_key02
         I_KEY03 = lv_i_key03
         I_KEY04 = lv_i_key04
         I_KEY05 = lv_i_key05
         I_KEY06 = lv_i_key06
         I_KEY07 = lv_i_key07
         I_KEY08 = lv_i_key08
    IMPORTING
         E_VALUE1 = lv_e_value1
         E_VALUE2 = lv_e_value2
         E_VALUE3 = lv_e_value3
         E_VALUE4 = lv_e_value4
         E_VALUE5 = lv_e_value5
         E_VALUE6 = lv_e_value6
         E_VALUE7 = lv_e_value7
         E_VALUE8 = lv_e_value8
         E_VALUE9 = lv_e_value9
    EXCEPTIONS
        NO_ENTRY = 1
. " HR_GET_VALUES_FROM_TABLES




ABAP code using 7.40 inline data declarations to call FM HR_GET_VALUES_FROM_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.

 
 
"SELECT single TABLENAME FROM DATABROWSE INTO @DATA(ld_i_tabname).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_stichtag).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!