SAP HR_FBN_PAY_SIM_PAYCHECK_BAPI Function Module for Simulation einer ArbgLstAbrechnung (BAPI-Format)
HR_FBN_PAY_SIM_PAYCHECK_BAPI is a standard hr fbn pay sim paycheck bapi SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Simulation einer ArbgLstAbrechnung (BAPI-Format) 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 pay sim paycheck bapi FM, simply by entering the name HR_FBN_PAY_SIM_PAYCHECK_BAPI into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRFBN00PAYROLL_EVALUATION
Program Name: SAPLHRFBN00PAYROLL_EVALUATION
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_FBN_PAY_SIM_PAYCHECK_BAPI 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_PAY_SIM_PAYCHECK_BAPI'"Simulation einer ArbgLstAbrechnung (BAPI-Format).
EXPORTING
PERNR = "
EVENT = "
ENRTY = "
DATUM = "
REACTION = "
IMPORTING
SUBRC = "
RETURN = "
TABLES
* CREDIT_SELECTION = "
* INVESTMENTS_SELECTION = "
HTML_LIST = "
* ERROR_TABLE = "
* CONSISTENCY_ERRORS = "
* HEALTH_SELECTION = "
* INSURE_SELECTION = "
* SAVING_SELECTION = "
* SPENDA_SELECTION = "
* MISCEL_SELECTION = "
* STOCKP_SELECTION = "
* DEPENDENTS_SELECTION = "
* BENEFICIARIES_SELECTION = "
IMPORTING Parameters details for HR_FBN_PAY_SIM_PAYCHECK_BAPI
PERNR -
Data type: P_PERNROptional: No
Call by Reference: No ( called with pass by value option)
EVENT -
Data type: BAPIBENEVTOptional: No
Call by Reference: No ( called with pass by value option)
ENRTY -
Data type: BEN_ENRTYPOptional: No
Call by Reference: No ( called with pass by value option)
DATUM -
Data type: SYDATUMOptional: No
Call by Reference: No ( called with pass by value option)
REACTION -
Data type: MSGTYOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_FBN_PAY_SIM_PAYCHECK_BAPI
SUBRC -
Data type: SYSUBRCOptional: No
Call by Reference: No ( called with pass by value option)
RETURN -
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_FBN_PAY_SIM_PAYCHECK_BAPI
CREDIT_SELECTION -
Data type: BAPIBEN_S1Optional: Yes
Call by Reference: No ( called with pass by value option)
INVESTMENTS_SELECTION -
Data type: BAPIBENSIVOptional: Yes
Call by Reference: No ( called with pass by value option)
HTML_LIST -
Data type: BAPI7004_HTMLOptional: No
Call by Reference: No ( called with pass by value option)
ERROR_TABLE -
Data type: RPBENERROptional: Yes
Call by Reference: No ( called with pass by value option)
CONSISTENCY_ERRORS -
Data type: RPBENERR_BPLANOptional: Yes
Call by Reference: No ( called with pass by value option)
HEALTH_SELECTION -
Data type: BAPIBEN_SAOptional: Yes
Call by Reference: No ( called with pass by value option)
INSURE_SELECTION -
Data type: BAPIBEN_SBOptional: Yes
Call by Reference: No ( called with pass by value option)
SAVING_SELECTION -
Data type: BAPIBEN_SCOptional: Yes
Call by Reference: No ( called with pass by value option)
SPENDA_SELECTION -
Data type: BAPIBEN_SDOptional: Yes
Call by Reference: No ( called with pass by value option)
MISCEL_SELECTION -
Data type: BAPIBEN_SEOptional: Yes
Call by Reference: No ( called with pass by value option)
STOCKP_SELECTION -
Data type: BAPIBEN_SFOptional: Yes
Call by Reference: No ( called with pass by value option)
DEPENDENTS_SELECTION -
Data type: BAPIBENSDPOptional: Yes
Call by Reference: No ( called with pass by value option)
BENEFICIARIES_SELECTION -
Data type: BAPIBENSBFOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_FBN_PAY_SIM_PAYCHECK_BAPI 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 P_PERNR, " | |||
| lv_subrc | TYPE SYSUBRC, " | |||
| lt_credit_selection | TYPE STANDARD TABLE OF BAPIBEN_S1, " | |||
| lt_investments_selection | TYPE STANDARD TABLE OF BAPIBENSIV, " | |||
| lt_html_list | TYPE STANDARD TABLE OF BAPI7004_HTML, " | |||
| lt_error_table | TYPE STANDARD TABLE OF RPBENERR, " | |||
| lt_consistency_errors | TYPE STANDARD TABLE OF RPBENERR_BPLAN, " | |||
| lv_event | TYPE BAPIBENEVT, " | |||
| lv_return | TYPE BAPIRETURN1, " | |||
| lt_health_selection | TYPE STANDARD TABLE OF BAPIBEN_SA, " | |||
| lv_enrty | TYPE BEN_ENRTYP, " | |||
| lt_insure_selection | TYPE STANDARD TABLE OF BAPIBEN_SB, " | |||
| lv_datum | TYPE SYDATUM, " | |||
| lt_saving_selection | TYPE STANDARD TABLE OF BAPIBEN_SC, " | |||
| lv_reaction | TYPE MSGTY, " | |||
| lt_spenda_selection | TYPE STANDARD TABLE OF BAPIBEN_SD, " | |||
| lt_miscel_selection | TYPE STANDARD TABLE OF BAPIBEN_SE, " | |||
| lt_stockp_selection | TYPE STANDARD TABLE OF BAPIBEN_SF, " | |||
| lt_dependents_selection | TYPE STANDARD TABLE OF BAPIBENSDP, " | |||
| lt_beneficiaries_selection | TYPE STANDARD TABLE OF BAPIBENSBF. " |
|   CALL FUNCTION 'HR_FBN_PAY_SIM_PAYCHECK_BAPI' "Simulation einer ArbgLstAbrechnung (BAPI-Format) |
| EXPORTING | ||
| PERNR | = lv_pernr | |
| EVENT | = lv_event | |
| ENRTY | = lv_enrty | |
| DATUM | = lv_datum | |
| REACTION | = lv_reaction | |
| IMPORTING | ||
| SUBRC | = lv_subrc | |
| RETURN | = lv_return | |
| TABLES | ||
| CREDIT_SELECTION | = lt_credit_selection | |
| INVESTMENTS_SELECTION | = lt_investments_selection | |
| HTML_LIST | = lt_html_list | |
| ERROR_TABLE | = lt_error_table | |
| CONSISTENCY_ERRORS | = lt_consistency_errors | |
| HEALTH_SELECTION | = lt_health_selection | |
| INSURE_SELECTION | = lt_insure_selection | |
| SAVING_SELECTION | = lt_saving_selection | |
| SPENDA_SELECTION | = lt_spenda_selection | |
| MISCEL_SELECTION | = lt_miscel_selection | |
| STOCKP_SELECTION | = lt_stockp_selection | |
| DEPENDENTS_SELECTION | = lt_dependents_selection | |
| BENEFICIARIES_SELECTION | = lt_beneficiaries_selection | |
| . " HR_FBN_PAY_SIM_PAYCHECK_BAPI | ||
ABAP code using 7.40 inline data declarations to call FM HR_FBN_PAY_SIM_PAYCHECK_BAPI
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.Search for further information about these or an SAP related objects