SAP HR_BEN_PAY_SIM_PAYCHECK_BAPI Function Module for









HR_BEN_PAY_SIM_PAYCHECK_BAPI is a standard hr ben 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 to perform a specific ABAP function and below is the pattern details, 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 ben pay sim paycheck bapi FM, simply by entering the name HR_BEN_PAY_SIM_PAYCHECK_BAPI into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_BEN_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_BEN_PAY_SIM_PAYCHECK_BAPI'"
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_BEN_PAY_SIM_PAYCHECK_BAPI

PERNR -

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

EVENT -

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

ENRTY -

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

DATUM -

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

REACTION -

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

EXPORTING Parameters details for HR_BEN_PAY_SIM_PAYCHECK_BAPI

SUBRC -

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

RETURN -

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

TABLES Parameters details for HR_BEN_PAY_SIM_PAYCHECK_BAPI

CREDIT_SELECTION -

Data type: BAPIBEN_S1
Optional: Yes
Call by Reference: Yes

INVESTMENTS_SELECTION -

Data type: BAPIBENSIV
Optional: Yes
Call by Reference: Yes

HTML_LIST -

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

ERROR_TABLE -

Data type: RPBENERR
Optional: Yes
Call by Reference: Yes

CONSISTENCY_ERRORS -

Data type: RPBENERR_BPLAN
Optional: Yes
Call by Reference: Yes

HEALTH_SELECTION -

Data type: BAPIBEN_SA
Optional: Yes
Call by Reference: Yes

INSURE_SELECTION -

Data type: BAPIBEN_SB
Optional: Yes
Call by Reference: Yes

SAVING_SELECTION -

Data type: BAPIBEN_SC
Optional: Yes
Call by Reference: Yes

SPENDA_SELECTION -

Data type: BAPIBEN_SD
Optional: Yes
Call by Reference: Yes

MISCEL_SELECTION -

Data type: BAPIBEN_SE
Optional: Yes
Call by Reference: Yes

STOCKP_SELECTION -

Data type: BAPIBEN_SF
Optional: Yes
Call by Reference: Yes

DEPENDENTS_SELECTION -

Data type: BAPIBENSDP
Optional: Yes
Call by Reference: Yes

BENEFICIARIES_SELECTION -

Data type: BAPIBENSBF
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for HR_BEN_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_BEN_PAY_SIM_PAYCHECK_BAPI'  "
    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_BEN_PAY_SIM_PAYCHECK_BAPI




ABAP code using 7.40 inline data declarations to call FM HR_BEN_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



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!