SAP HR_FBN_COST_SUMMARY_CALC_RFC Function Module for Benefit cost summary calculation RFC
HR_FBN_COST_SUMMARY_CALC_RFC is a standard hr fbn cost summary calc rfc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Benefit cost summary calculation RFC 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 cost summary calc rfc FM, simply by entering the name HR_FBN_COST_SUMMARY_CALC_RFC into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRFBN00SUBSCREENS
Program Name: SAPLHRFBN00SUBSCREENS
Main Program: SAPLHRFBN00SUBSCREENS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function HR_FBN_COST_SUMMARY_CALC_RFC 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_COST_SUMMARY_CALC_RFC'"Benefit cost summary calculation RFC.
EXPORTING
EMPLOYEENUMBER = "Personnel Number
CALCULATION_DATE = "
COMPANYCAR_DATE = "Addtional date for company car
* PAYROLL_PERIOD = "Payroll time units
REACTION = "
IMPORTING
FUNDING_SCHEME = "Flexible benefit funding scheme
SALARY_SACRIFICE_AMT = "Salary sacrifice amount
PAYROLL_TIME_UNIT = "Payroll time units
CURRENCY = "Benefit currency key
PERMO = "Payroll time units
PERMOTX = "Period parameter - name
FNDOK = "Flex fund over-spending amount check OK
PENOK = "Pension saving check
PFSOK = "Post-flex salary minimum amount check ok
RETURN = "Return Parameter
NI_NEUTRALITY = "National insurance cost neutrality
PREFLEX_SALARY = "Pre-flex salary
POSTFLEX_SALARY = "Post-flex salary
STANDARD_VALUE = "Standard value
EE_COST_CREDIT_NET = "Total employee cost/credit before deduction
EE_COST_CREDIT = "Total employee cost/credit
FLEX_FUND = "Flex fund
NI_NEUTRALITY_AMT = "NI neutrality amount of the surplus fund
TABLES
* CREDIT_SELECTION = "Benefits Selection for Credit Plans
* HEALTH_SELECTION = "Benefits Selection for Health Plans
* INSURE_SELECTION = "Benefits Selection for Insurance Plans
* MISCEL_SELECTION = "Benefits Selection for Misc. Plans
* COST_TABLE = "Item structure for grid control (FBN)
IMPORTING Parameters details for HR_FBN_COST_SUMMARY_CALC_RFC
EMPLOYEENUMBER - Personnel Number
Data type: BAPIBEN_O1-PERSON_NOOptional: No
Call by Reference: No ( called with pass by value option)
CALCULATION_DATE -
Data type: SYDATUMOptional: No
Call by Reference: No ( called with pass by value option)
COMPANYCAR_DATE - Addtional date for company car
Data type: SYDATUMOptional: No
Call by Reference: No ( called with pass by value option)
PAYROLL_PERIOD - Payroll time units
Data type: PFREQOptional: Yes
Call by Reference: No ( called with pass by value option)
REACTION -
Data type: SYMSGTYOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_FBN_COST_SUMMARY_CALC_RFC
FUNDING_SCHEME - Flexible benefit funding scheme
Data type: FBN_FMODEOptional: No
Call by Reference: No ( called with pass by value option)
SALARY_SACRIFICE_AMT - Salary sacrifice amount
Data type: FBN_SSCFAOptional: No
Call by Reference: No ( called with pass by value option)
PAYROLL_TIME_UNIT - Payroll time units
Data type: PFREQOptional: No
Call by Reference: No ( called with pass by value option)
CURRENCY - Benefit currency key
Data type: BEN_CURROptional: No
Call by Reference: No ( called with pass by value option)
PERMO - Payroll time units
Data type: PFREQOptional: No
Call by Reference: No ( called with pass by value option)
PERMOTX - Period parameter - name
Data type: PERMOTXOptional: No
Call by Reference: No ( called with pass by value option)
FNDOK - Flex fund over-spending amount check OK
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
PENOK - Pension saving check
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
PFSOK - Post-flex salary minimum amount check ok
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
RETURN - Return Parameter
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
NI_NEUTRALITY - National insurance cost neutrality
Data type: FBN_NICNEOptional: No
Call by Reference: No ( called with pass by value option)
PREFLEX_SALARY - Pre-flex salary
Data type: FBN_CNSALOptional: No
Call by Reference: No ( called with pass by value option)
POSTFLEX_SALARY - Post-flex salary
Data type: FBN_FXSALOptional: No
Call by Reference: No ( called with pass by value option)
STANDARD_VALUE - Standard value
Data type: FBN_STDVALOptional: No
Call by Reference: No ( called with pass by value option)
EE_COST_CREDIT_NET - Total employee cost/credit before deduction
Data type: FBN_AMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
EE_COST_CREDIT - Total employee cost/credit
Data type: FBN_AMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
FLEX_FUND - Flex fund
Data type: FBN_FXFNDOptional: No
Call by Reference: No ( called with pass by value option)
NI_NEUTRALITY_AMT - NI neutrality amount of the surplus fund
Data type: FBN_AMOUNTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_FBN_COST_SUMMARY_CALC_RFC
CREDIT_SELECTION - Benefits Selection for Credit Plans
Data type: BAPIBEN_S1Optional: Yes
Call by Reference: Yes
HEALTH_SELECTION - Benefits Selection for Health Plans
Data type: BAPIBEN_SAOptional: Yes
Call by Reference: Yes
INSURE_SELECTION - Benefits Selection for Insurance Plans
Data type: BAPIBEN_SBOptional: Yes
Call by Reference: Yes
MISCEL_SELECTION - Benefits Selection for Misc. Plans
Data type: BAPIBEN_SEOptional: Yes
Call by Reference: Yes
COST_TABLE - Item structure for grid control (FBN)
Data type: RPFBNGRIDITEMOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_FBN_COST_SUMMARY_CALC_RFC 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_employeenumber | TYPE BAPIBEN_O1-PERSON_NO, " | |||
lv_funding_scheme | TYPE FBN_FMODE, " | |||
lt_credit_selection | TYPE STANDARD TABLE OF BAPIBEN_S1, " | |||
lv_salary_sacrifice_amt | TYPE FBN_SSCFA, " | |||
lv_payroll_time_unit | TYPE PFREQ, " | |||
lv_currency | TYPE BEN_CURR, " | |||
lv_permo | TYPE PFREQ, " | |||
lv_permotx | TYPE PERMOTX, " | |||
lv_fndok | TYPE BOOLE_D, " | |||
lv_penok | TYPE BOOLE_D, " | |||
lv_pfsok | TYPE BOOLE_D, " | |||
lv_return | TYPE BAPIRETURN1, " | |||
lv_ni_neutrality | TYPE FBN_NICNE, " | |||
lv_calculation_date | TYPE SYDATUM, " | |||
lt_health_selection | TYPE STANDARD TABLE OF BAPIBEN_SA, " | |||
lv_preflex_salary | TYPE FBN_CNSAL, " | |||
lv_companycar_date | TYPE SYDATUM, " | |||
lt_insure_selection | TYPE STANDARD TABLE OF BAPIBEN_SB, " | |||
lv_payroll_period | TYPE PFREQ, " | |||
lv_postflex_salary | TYPE FBN_FXSAL, " | |||
lt_miscel_selection | TYPE STANDARD TABLE OF BAPIBEN_SE, " | |||
lv_reaction | TYPE SYMSGTY, " | |||
lt_cost_table | TYPE STANDARD TABLE OF RPFBNGRIDITEM, " | |||
lv_standard_value | TYPE FBN_STDVAL, " | |||
lv_ee_cost_credit_net | TYPE FBN_AMOUNT, " | |||
lv_ee_cost_credit | TYPE FBN_AMOUNT, " | |||
lv_flex_fund | TYPE FBN_FXFND, " | |||
lv_ni_neutrality_amt | TYPE FBN_AMOUNT. " |
  CALL FUNCTION 'HR_FBN_COST_SUMMARY_CALC_RFC' "Benefit cost summary calculation RFC |
EXPORTING | ||
EMPLOYEENUMBER | = lv_employeenumber | |
CALCULATION_DATE | = lv_calculation_date | |
COMPANYCAR_DATE | = lv_companycar_date | |
PAYROLL_PERIOD | = lv_payroll_period | |
REACTION | = lv_reaction | |
IMPORTING | ||
FUNDING_SCHEME | = lv_funding_scheme | |
SALARY_SACRIFICE_AMT | = lv_salary_sacrifice_amt | |
PAYROLL_TIME_UNIT | = lv_payroll_time_unit | |
CURRENCY | = lv_currency | |
PERMO | = lv_permo | |
PERMOTX | = lv_permotx | |
FNDOK | = lv_fndok | |
PENOK | = lv_penok | |
PFSOK | = lv_pfsok | |
RETURN | = lv_return | |
NI_NEUTRALITY | = lv_ni_neutrality | |
PREFLEX_SALARY | = lv_preflex_salary | |
POSTFLEX_SALARY | = lv_postflex_salary | |
STANDARD_VALUE | = lv_standard_value | |
EE_COST_CREDIT_NET | = lv_ee_cost_credit_net | |
EE_COST_CREDIT | = lv_ee_cost_credit | |
FLEX_FUND | = lv_flex_fund | |
NI_NEUTRALITY_AMT | = lv_ni_neutrality_amt | |
TABLES | ||
CREDIT_SELECTION | = lt_credit_selection | |
HEALTH_SELECTION | = lt_health_selection | |
INSURE_SELECTION | = lt_insure_selection | |
MISCEL_SELECTION | = lt_miscel_selection | |
COST_TABLE | = lt_cost_table | |
. " HR_FBN_COST_SUMMARY_CALC_RFC |
ABAP code using 7.40 inline data declarations to call FM HR_FBN_COST_SUMMARY_CALC_RFC
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 PERSON_NO FROM BAPIBEN_O1 INTO @DATA(ld_employeenumber). | ||||
Search for further information about these or an SAP related objects