SAP HR_PL_EVAL_LEAVE_LIMITS Function Module for Evaluate leaves limits for gives year









HR_PL_EVAL_LEAVE_LIMITS is a standard hr pl eval leave limits SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Evaluate leaves limits for gives year 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 hr pl eval leave limits FM, simply by entering the name HR_PL_EVAL_LEAVE_LIMITS into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_PL_EVAL_LEAVE_LIMITS 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_PL_EVAL_LEAVE_LIMITS'"Evaluate leaves limits for gives year
EXPORTING
LEAVE_YEAR = "Limit generation year
LPERNR = "Personel number

IMPORTING
PHIRE_DATE = "
PFIRE_DATE = "
PJUB_10 = "

CHANGING
* XSEN_ERROR = "

TABLES
LIMITS = "
* XP0515 = "
* LIMITS_DEBUG = "Additional information about leaves
* XP0000 = "
* XP0001 = "
* XP0007 = "
* XP0008 = "
* XP0016 = "
* XP0414 = "
* XP2001 = "
* XP0021 = "HR infotype 0021

EXCEPTIONS
MISSING_CONTRACT_INFO = 1 PERNR_FIRED = 2 NO_LIMITS_IN_CONF = 3 OLD_VERSION = 4 PERNR_NOT_HIRED = 5
.



IMPORTING Parameters details for HR_PL_EVAL_LEAVE_LIMITS

LEAVE_YEAR - Limit generation year

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

LPERNR - Personel number

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

EXPORTING Parameters details for HR_PL_EVAL_LEAVE_LIMITS

PHIRE_DATE -

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

PFIRE_DATE -

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

PJUB_10 -

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

CHANGING Parameters details for HR_PL_EVAL_LEAVE_LIMITS

XSEN_ERROR -

Data type: C
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for HR_PL_EVAL_LEAVE_LIMITS

LIMITS -

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

XP0515 -

Data type: P0515
Optional: Yes
Call by Reference: Yes

LIMITS_DEBUG - Additional information about leaves

Data type: PPLPA_LIMIT_T
Optional: Yes
Call by Reference: Yes

XP0000 -

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

XP0001 -

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

XP0007 -

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

XP0008 -

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

XP0016 -

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

XP0414 -

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

XP2001 -

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

XP0021 - HR infotype 0021

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

EXCEPTIONS details

MISSING_CONTRACT_INFO -

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

PERNR_FIRED -

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

NO_LIMITS_IN_CONF -

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

OLD_VERSION -

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

PERNR_NOT_HIRED -

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

Copy and paste ABAP code example for HR_PL_EVAL_LEAVE_LIMITS 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:
lt_limits  TYPE STANDARD TABLE OF PPLPA_LIMIT_T, "   
lv_leave_year  TYPE CHAR4, "   
lv_phire_date  TYPE SY-DATUM, "   
lv_xsen_error  TYPE C, "   
lv_missing_contract_info  TYPE C, "   
lt_xp0515  TYPE STANDARD TABLE OF P0515, "   
lt_limits_debug  TYPE STANDARD TABLE OF PPLPA_LIMIT_T, "   
lv_lpernr  TYPE PERNR-PERNR, "   
lt_xp0000  TYPE STANDARD TABLE OF P0000, "   
lv_pfire_date  TYPE SY-DATUM, "   
lv_pernr_fired  TYPE SY, "   
lt_xp0001  TYPE STANDARD TABLE OF P0001, "   
lv_pjub_10  TYPE SY-DATUM, "   
lv_no_limits_in_conf  TYPE SY, "   
lt_xp0007  TYPE STANDARD TABLE OF P0007, "   
lv_old_version  TYPE P0007, "   
lt_xp0008  TYPE STANDARD TABLE OF P0008, "   
lv_pernr_not_hired  TYPE P0008, "   
lt_xp0016  TYPE STANDARD TABLE OF P0016, "   
lt_xp0414  TYPE STANDARD TABLE OF P0414, "   
lt_xp2001  TYPE STANDARD TABLE OF P2001, "   
lt_xp0021  TYPE STANDARD TABLE OF P0021. "   

  CALL FUNCTION 'HR_PL_EVAL_LEAVE_LIMITS'  "Evaluate leaves limits for gives year
    EXPORTING
         LEAVE_YEAR = lv_leave_year
         LPERNR = lv_lpernr
    IMPORTING
         PHIRE_DATE = lv_phire_date
         PFIRE_DATE = lv_pfire_date
         PJUB_10 = lv_pjub_10
    CHANGING
         XSEN_ERROR = lv_xsen_error
    TABLES
         LIMITS = lt_limits
         XP0515 = lt_xp0515
         LIMITS_DEBUG = lt_limits_debug
         XP0000 = lt_xp0000
         XP0001 = lt_xp0001
         XP0007 = lt_xp0007
         XP0008 = lt_xp0008
         XP0016 = lt_xp0016
         XP0414 = lt_xp0414
         XP2001 = lt_xp2001
         XP0021 = lt_xp0021
    EXCEPTIONS
        MISSING_CONTRACT_INFO = 1
        PERNR_FIRED = 2
        NO_LIMITS_IN_CONF = 3
        OLD_VERSION = 4
        PERNR_NOT_HIRED = 5
. " HR_PL_EVAL_LEAVE_LIMITS




ABAP code using 7.40 inline data declarations to call FM HR_PL_EVAL_LEAVE_LIMITS

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 DATUM FROM SY INTO @DATA(ld_phire_date).
 
 
 
 
 
"SELECT single PERNR FROM PERNR INTO @DATA(ld_lpernr).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_pfire_date).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_pjub_10).
 
 
 
 
 
 
 
 
 
 


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!