SAP HR_FBN_GET_PLAN_LIMIT Function Module for Get annual tax free limitation for flexible benefit plan
HR_FBN_GET_PLAN_LIMIT is a standard hr fbn get plan limit 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 annual tax free limitation for flexible benefit plan 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 fbn get plan limit FM, simply by entering the name HR_FBN_GET_PLAN_LIMIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRFBN00PAYROLL
Program Name: SAPLHRFBN00PAYROLL
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_FBN_GET_PLAN_LIMIT 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_FBN_GET_PLAN_LIMIT'"Get annual tax free limitation for flexible benefit plan.
EXPORTING
BENEFIT_AREA = "Benefit area
BENEFIT_PLAN = "Benefit plan
KEYDATE = "Date and Time, Current (Application Server) Date
PLTYP = "Benefit plan type
APER = "Substructure for Table APER Payroll
REACTION = "Messages, message type
IMPORTING
LIMIT = "Yearly Tax Free Amount Boundary
PAYROLL_PERIODS = "Substructure for Table APER Payroll
SUBRC = "Return Value, Return Value After ABAP Statements
TABLES
ERROR_TABLE = "Benefit structure for error table
IMPORTING Parameters details for HR_FBN_GET_PLAN_LIMIT
BENEFIT_AREA - Benefit area
Data type: T5UBA-BAREAOptional: No
Call by Reference: Yes
BENEFIT_PLAN - Benefit plan
Data type: T5UBA-BPLANOptional: No
Call by Reference: Yes
KEYDATE - Date and Time, Current (Application Server) Date
Data type: SY-DATUMOptional: No
Call by Reference: Yes
PLTYP - Benefit plan type
Data type: BEN_TYPEOptional: No
Call by Reference: Yes
APER - Substructure for Table APER Payroll
Data type: PC2APEROptional: No
Call by Reference: Yes
REACTION - Messages, message type
Data type: SY-MSGTYOptional: No
Call by Reference: Yes
EXPORTING Parameters details for HR_FBN_GET_PLAN_LIMIT
LIMIT - Yearly Tax Free Amount Boundary
Data type: T74_FBN08-TFAMTOptional: No
Call by Reference: Yes
PAYROLL_PERIODS - Substructure for Table APER Payroll
Data type: PC2PAPER-PABRPOptional: No
Call by Reference: Yes
SUBRC - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
TABLES Parameters details for HR_FBN_GET_PLAN_LIMIT
ERROR_TABLE - Benefit structure for error table
Data type: RPBENERROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_FBN_GET_PLAN_LIMIT 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_limit | TYPE T74_FBN08-TFAMT, " | |||
| lt_error_table | TYPE STANDARD TABLE OF RPBENERR, " | |||
| lv_benefit_area | TYPE T5UBA-BAREA, " | |||
| lv_benefit_plan | TYPE T5UBA-BPLAN, " | |||
| lv_payroll_periods | TYPE PC2PAPER-PABRP, " | |||
| lv_subrc | TYPE SY-SUBRC, " | |||
| lv_keydate | TYPE SY-DATUM, " | |||
| lv_pltyp | TYPE BEN_TYPE, " | |||
| lv_aper | TYPE PC2APER, " | |||
| lv_reaction | TYPE SY-MSGTY. " |
|   CALL FUNCTION 'HR_FBN_GET_PLAN_LIMIT' "Get annual tax free limitation for flexible benefit plan |
| EXPORTING | ||
| BENEFIT_AREA | = lv_benefit_area | |
| BENEFIT_PLAN | = lv_benefit_plan | |
| KEYDATE | = lv_keydate | |
| PLTYP | = lv_pltyp | |
| APER | = lv_aper | |
| REACTION | = lv_reaction | |
| IMPORTING | ||
| LIMIT | = lv_limit | |
| PAYROLL_PERIODS | = lv_payroll_periods | |
| SUBRC | = lv_subrc | |
| TABLES | ||
| ERROR_TABLE | = lt_error_table | |
| . " HR_FBN_GET_PLAN_LIMIT | ||
ABAP code using 7.40 inline data declarations to call FM HR_FBN_GET_PLAN_LIMIT
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 TFAMT FROM T74_FBN08 INTO @DATA(ld_limit). | ||||
| "SELECT single BAREA FROM T5UBA INTO @DATA(ld_benefit_area). | ||||
| "SELECT single BPLAN FROM T5UBA INTO @DATA(ld_benefit_plan). | ||||
| "SELECT single PABRP FROM PC2PAPER INTO @DATA(ld_payroll_periods). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_keydate). | ||||
| "SELECT single MSGTY FROM SY INTO @DATA(ld_reaction). | ||||
Search for further information about these or an SAP related objects