SAP HR_BPS_CALC_REQ_TYP_LIMIT_RULE Function Module for Read benefit request type limits
HR_BPS_CALC_REQ_TYP_LIMIT_RULE is a standard hr bps calc req typ limit rule SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read benefit request type 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 bps calc req typ limit rule FM, simply by entering the name HR_BPS_CALC_REQ_TYP_LIMIT_RULE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRBPS00REQTYPELIMITRULE
Program Name: SAPLHRBPS00REQTYPELIMITRULE
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_BPS_CALC_REQ_TYP_LIMIT_RULE 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_BPS_CALC_REQ_TYP_LIMIT_RULE'"Read benefit request type limits.
EXPORTING
EMPLOYEENUMBER = "Personnel number
BENEFITAREA = "Benefit area
REQUESTTYPE = "Benefit request type
KEYDATE = "Date and time, current (application server) date
TIMEUNIT = "Benefit request time unit
REACTION = "Messages, message type
IMPORTING
MAXTIMES = "Maximum number of request
MAXPOINTS = "Maximum number of points for request type
MAXAMOUNT = "Maximum amount for request type
MAXCURRENCY = "Benefit currency key
SUBRC = "Return value, return value after ABAP statements
TABLES
ERROR_TABLE = "Benefit structure for error table
IMPORTING Parameters details for HR_BPS_CALC_REQ_TYP_LIMIT_RULE
EMPLOYEENUMBER - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: No ( called with pass by value option)
BENEFITAREA - Benefit area
Data type: T5UB3-BAREAOptional: No
Call by Reference: No ( called with pass by value option)
REQUESTTYPE - Benefit request type
Data type: T74_BPS07-RQTYPOptional: No
Call by Reference: No ( called with pass by value option)
KEYDATE - Date and time, current (application server) date
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
TIMEUNIT - Benefit request time unit
Data type: T74_BPS10-RQTUNOptional: No
Call by Reference: No ( called with pass by value option)
REACTION - Messages, message type
Data type: SY-MSGTYOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_BPS_CALC_REQ_TYP_LIMIT_RULE
MAXTIMES - Maximum number of request
Data type: T74_BPS10-MAXRQOptional: No
Call by Reference: No ( called with pass by value option)
MAXPOINTS - Maximum number of points for request type
Data type: T74_BPS10-MAXPTOptional: No
Call by Reference: No ( called with pass by value option)
MAXAMOUNT - Maximum amount for request type
Data type: T74_BPS10-MAXAMOptional: No
Call by Reference: No ( called with pass by value option)
MAXCURRENCY - Benefit currency key
Data type: T74_BPS10-MXCUROptional: No
Call by Reference: No ( called with pass by value option)
SUBRC - Return value, return value after ABAP statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_BPS_CALC_REQ_TYP_LIMIT_RULE
ERROR_TABLE - Benefit structure for error table
Data type: RPBENERROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_BPS_CALC_REQ_TYP_LIMIT_RULE 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_maxtimes | TYPE T74_BPS10-MAXRQ, " | |||
| lt_error_table | TYPE STANDARD TABLE OF RPBENERR, " | |||
| lv_employeenumber | TYPE PERNR-PERNR, " | |||
| lv_maxpoints | TYPE T74_BPS10-MAXPT, " | |||
| lv_benefitarea | TYPE T5UB3-BAREA, " | |||
| lv_maxamount | TYPE T74_BPS10-MAXAM, " | |||
| lv_requesttype | TYPE T74_BPS07-RQTYP, " | |||
| lv_keydate | TYPE SY-DATUM, " | |||
| lv_maxcurrency | TYPE T74_BPS10-MXCUR, " | |||
| lv_subrc | TYPE SY-SUBRC, " | |||
| lv_timeunit | TYPE T74_BPS10-RQTUN, " | |||
| lv_reaction | TYPE SY-MSGTY. " |
|   CALL FUNCTION 'HR_BPS_CALC_REQ_TYP_LIMIT_RULE' "Read benefit request type limits |
| EXPORTING | ||
| EMPLOYEENUMBER | = lv_employeenumber | |
| BENEFITAREA | = lv_benefitarea | |
| REQUESTTYPE | = lv_requesttype | |
| KEYDATE | = lv_keydate | |
| TIMEUNIT | = lv_timeunit | |
| REACTION | = lv_reaction | |
| IMPORTING | ||
| MAXTIMES | = lv_maxtimes | |
| MAXPOINTS | = lv_maxpoints | |
| MAXAMOUNT | = lv_maxamount | |
| MAXCURRENCY | = lv_maxcurrency | |
| SUBRC | = lv_subrc | |
| TABLES | ||
| ERROR_TABLE | = lt_error_table | |
| . " HR_BPS_CALC_REQ_TYP_LIMIT_RULE | ||
ABAP code using 7.40 inline data declarations to call FM HR_BPS_CALC_REQ_TYP_LIMIT_RULE
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 MAXRQ FROM T74_BPS10 INTO @DATA(ld_maxtimes). | ||||
| "SELECT single PERNR FROM PERNR INTO @DATA(ld_employeenumber). | ||||
| "SELECT single MAXPT FROM T74_BPS10 INTO @DATA(ld_maxpoints). | ||||
| "SELECT single BAREA FROM T5UB3 INTO @DATA(ld_benefitarea). | ||||
| "SELECT single MAXAM FROM T74_BPS10 INTO @DATA(ld_maxamount). | ||||
| "SELECT single RQTYP FROM T74_BPS07 INTO @DATA(ld_requesttype). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_keydate). | ||||
| "SELECT single MXCUR FROM T74_BPS10 INTO @DATA(ld_maxcurrency). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
| "SELECT single RQTUN FROM T74_BPS10 INTO @DATA(ld_timeunit). | ||||
| "SELECT single MSGTY FROM SY INTO @DATA(ld_reaction). | ||||
Search for further information about these or an SAP related objects