SAP HR_LGART_VALUES Function Module for









HR_LGART_VALUES is a standard hr lgart values 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 lgart values FM, simply by entering the name HR_LGART_VALUES into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_LGART_VALUES 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_LGART_VALUES'"
EXPORTING
* P_BEGDA = '01011800' "
* P_ENDDA = '31129999' "
P_INFTY = "
P_PERSA = "
P_BTRTL = "
P_PERSG = "
P_PERSK = "
* P_VALID = 'P' "

TABLES
P_TBLGART = "

EXCEPTIONS
NO_ENTRY_IN_T503 = 1 NO_ENTRY_IN_T001P = 2
.



IMPORTING Parameters details for HR_LGART_VALUES

P_BEGDA -

Data type: T512Z-BEGDA
Default: '01011800'
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_ENDDA -

Data type: T512Z-ENDDA
Default: '31129999'
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_INFTY -

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

P_PERSA -

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

P_BTRTL -

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

P_PERSG -

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

P_PERSK -

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

P_VALID -

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

TABLES Parameters details for HR_LGART_VALUES

P_TBLGART -

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

EXCEPTIONS details

NO_ENTRY_IN_T503 -

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

NO_ENTRY_IN_T001P -

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

Copy and paste ABAP code example for HR_LGART_VALUES 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_p_begda  TYPE T512Z-BEGDA, "   '01011800'
lt_p_tblgart  TYPE STANDARD TABLE OF T512Z, "   
lv_no_entry_in_t503  TYPE T512Z, "   
lv_p_endda  TYPE T512Z-ENDDA, "   '31129999'
lv_no_entry_in_t001p  TYPE T512Z, "   
lv_p_infty  TYPE T582A-INFTY, "   
lv_p_persa  TYPE T001P-WERKS, "   
lv_p_btrtl  TYPE PSYST-BTRTL, "   
lv_p_persg  TYPE PSYST-PERSG, "   
lv_p_persk  TYPE PSYST-PERSK, "   
lv_p_valid  TYPE C. "   'P'

  CALL FUNCTION 'HR_LGART_VALUES'  "
    EXPORTING
         P_BEGDA = lv_p_begda
         P_ENDDA = lv_p_endda
         P_INFTY = lv_p_infty
         P_PERSA = lv_p_persa
         P_BTRTL = lv_p_btrtl
         P_PERSG = lv_p_persg
         P_PERSK = lv_p_persk
         P_VALID = lv_p_valid
    TABLES
         P_TBLGART = lt_p_tblgart
    EXCEPTIONS
        NO_ENTRY_IN_T503 = 1
        NO_ENTRY_IN_T001P = 2
. " HR_LGART_VALUES




ABAP code using 7.40 inline data declarations to call FM HR_LGART_VALUES

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 BEGDA FROM T512Z INTO @DATA(ld_p_begda).
DATA(ld_p_begda) = '01011800'.
 
 
 
"SELECT single ENDDA FROM T512Z INTO @DATA(ld_p_endda).
DATA(ld_p_endda) = '31129999'.
 
 
"SELECT single INFTY FROM T582A INTO @DATA(ld_p_infty).
 
"SELECT single WERKS FROM T001P INTO @DATA(ld_p_persa).
 
"SELECT single BTRTL FROM PSYST INTO @DATA(ld_p_btrtl).
 
"SELECT single PERSG FROM PSYST INTO @DATA(ld_p_persg).
 
"SELECT single PERSK FROM PSYST INTO @DATA(ld_p_persk).
 
DATA(ld_p_valid) = 'P'.
 


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!