SAP HR_CLM_GET_LIMITS Function Module for Get claim limits









HR_CLM_GET_LIMITS is a standard hr clm get 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 Get claim limits 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 clm get limits FM, simply by entering the name HR_CLM_GET_LIMITS into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_CLM_GET_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_CLM_GET_LIMITS'"Get claim limits
EXPORTING
PERNR = "Employee
BPLAN = "Benefit plan
LEVL1 = "
KEYDT = "Processing date
* GET_PROGRAM_LIMIT = ' ' "Get limit at package level

IMPORTING
CLAIM_FORMULA = "Limit formula
SUBRC = "

TABLES
ERROR_TABLE = "
.




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_SAPLHRCLM00GEN_001 Customer enhancement for fucntion HR_CLM_GET_LIMITS
EXIT_SAPLHRCLM00GEN_002 Customer enhancement for fucntion HR_CLM_GET_EE_ENROLLED_CLAIMS
EXIT_SAPLHRCLM00GEN_003 Customer enhancement for fucntion HR_CLM_CALC_CUTOFF_LOS
EXIT_SAPLHRCLM00GEN_004 Enhancement for HR_CLM_GET_ENTRY_LEAVE_DATE
EXIT_SAPLHRCLM00GEN_005 Enhancement for HR_CLM_GET_BALANCE_DETAILS
EXIT_SAPLHRCLM00GEN_006 Enhancement for HR_CLM_GET_CLAIM_LIMITS
EXIT_SAPLHRCLM00GEN_007 Customer Enhancement for HR_CLM_CHECK_CLAIM_VALID_DATES
EXIT_SAPLHRCLM00GEN_008 Enhancement for HR_CLM_PROCESS_CLAIMS
EXIT_SAPLHRCLM00GEN_009 Customer Enhancement for HR_CLM_PRORT_AMOUNT
EXIT_SAPLHRCLM00GEN_010 Enhancement for HR_CLM_GET_BALANCE_AS_OF

IMPORTING Parameters details for HR_CLM_GET_LIMITS

PERNR - Employee

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

BPLAN - Benefit plan

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

LEVL1 -

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

KEYDT - Processing date

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

GET_PROGRAM_LIMIT - Get limit at package level

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

EXPORTING Parameters details for HR_CLM_GET_LIMITS

CLAIM_FORMULA - Limit formula

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

SUBRC -

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

TABLES Parameters details for HR_CLM_GET_LIMITS

ERROR_TABLE -

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

Copy and paste ABAP code example for HR_CLM_GET_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:
lv_pernr  TYPE PRELP-PERNR, "   
lt_error_table  TYPE STANDARD TABLE OF RPBENERR, "   
lv_claim_formula  TYPE RPCLM_LIM_FRM, "   
lv_bplan  TYPE T5UBA-BPLAN, "   
lv_subrc  TYPE SY-SUBRC, "   
lv_levl1  TYPE T7XAS9-LEVL1, "   
lv_keydt  TYPE SY-DATUM, "   
lv_get_program_limit  TYPE CHAR1. "   ' '

  CALL FUNCTION 'HR_CLM_GET_LIMITS'  "Get claim limits
    EXPORTING
         PERNR = lv_pernr
         BPLAN = lv_bplan
         LEVL1 = lv_levl1
         KEYDT = lv_keydt
         GET_PROGRAM_LIMIT = lv_get_program_limit
    IMPORTING
         CLAIM_FORMULA = lv_claim_formula
         SUBRC = lv_subrc
    TABLES
         ERROR_TABLE = lt_error_table
. " HR_CLM_GET_LIMITS




ABAP code using 7.40 inline data declarations to call FM HR_CLM_GET_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 PERNR FROM PRELP INTO @DATA(ld_pernr).
 
 
 
"SELECT single BPLAN FROM T5UBA INTO @DATA(ld_bplan).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc).
 
"SELECT single LEVL1 FROM T7XAS9 INTO @DATA(ld_levl1).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_keydt).
 
DATA(ld_get_program_limit) = ' '.
 


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!