SAP HR_BEN_CHECK_SELECTION Function Module for
HR_BEN_CHECK_SELECTION is a standard hr ben check selection 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 check selection FM, simply by entering the name HR_BEN_CHECK_SELECTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRBEN00GENERAL
Program Name: SAPLHRBEN00GENERAL
Main Program: SAPLHRBEN00GENERAL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_BEN_CHECK_SELECTION 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_CHECK_SELECTION'".
EXPORTING
* EVENT_DESCRIPTION = "
* LOG_SPENDA_WARNINGS = ' ' "
REACTION = "
CHECK_PARAM = "
CHECK_ADMIN = "
* CHECK_ALL_PLANS = ' ' "
* CHECK_ONLY_ONGOING_ADMIN = ' ' "
CHECK_DEPENDENTS = "
CHECK_BENEFICIARIES = "
CHECK_INVESTMENTS = "
* DATUM = "
IMPORTING
SUBRC = "
TABLES
CREDIT_SELECTION = "
* INVESTMENTS_SELECTION = "
* CREDIT_REQUIRE_DOC = "
* HEALTH_REQUIRE_DOC = "
* INSURE_REQUIRE_DOC = "
* SAVING_REQUIRE_DOC = "
* SPENDA_REQUIRE_DOC = "
* MISCEL_REQUIRE_DOC = "
* STOCKP_REQUIRE_DOC = "
CONSISTENCY_ERRORS = "
ERROR_TABLE = "
HEALTH_SELECTION = "
INSURE_SELECTION = "
SAVING_SELECTION = "
SPENDA_SELECTION = "
MISCEL_SELECTION = "
STOCKP_SELECTION = "
* DEPENDENTS_SELECTION = "
* BENEFICIARIES_SELECTION = "
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLHRBEN00GENERAL_008 Function Exit in Function HR_BEN_CALC_BENEFIT_COST
EXIT_SAPLHRBEN00GENERAL_009 Function Exit in Function HR_BEN_CALC_BENEFIT_CREDIT
EXIT_SAPLHRBEN00GENERAL_010 Function Exit in Function HR_BEN_CALC_BENEFIT_SALARY
EXIT_SAPLHRBEN00GENERAL_011 Function Exit in Function HR_BEN_CALC_COVERAGE_AMOUNT
EXIT_SAPLHRBEN00GENERAL_012 Function Exit in Form CALC_ELIG_DATE
EXIT_SAPLHRBEN00GENERAL_013 Function Exit in Form CALC_TERM_DATE
EXIT_SAPLHRBEN00GENERAL_014 Function Exit in Function HR_BEN_CALC_SAVE_ER_CONTRIB
EXIT_SAPLHRBEN00GENERAL_015 Function Exit in Form CHECK_ELIG_SERVICE
EXIT_SAPLHRBEN00GENERAL_016 Function Exit in Function HR_BEN_CALC_PARTICIPATION_DATE
EXIT_SAPLHRBEN00GENERAL_022 Function exit within function HR_BEN_GET_PROCESS_DATES
EXIT_SAPLHRBEN00GENERAL_023 Function exit within function HR_BEN_CALC_CUTOFF_AGE
EXIT_SAPLHRBEN00GENERAL_024 Function exit within function HR_BEN_CALC_CUTOFF_LOS
EXIT_SAPLHRBEN00GENERAL_025 Function exit within function HR_BEN_CALC_CUTOFF_SAL
EXIT_SAPLHRBEN00GENERAL_028 Function exit within function HR_BEN_CALC_BENEFIT_EE_CONTRIB
EXIT_SAPLHRBEN00GENERAL_030 Function exit within function HR_BEN_CALC_BENEFIT_EE_CONTRIB
IMPORTING Parameters details for HR_BEN_CHECK_SELECTION
EVENT_DESCRIPTION -
Data type: RPBENEVENTOptional: Yes
Call by Reference: No ( called with pass by value option)
LOG_SPENDA_WARNINGS -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: Yes
REACTION -
Data type: SYMSGTYOptional: No
Call by Reference: No ( called with pass by value option)
CHECK_PARAM -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHECK_ADMIN -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHECK_ALL_PLANS -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_ONLY_ONGOING_ADMIN -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_DEPENDENTS -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHECK_BENEFICIARIES -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
CHECK_INVESTMENTS -
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
DATUM -
Data type: SYDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_BEN_CHECK_SELECTION
SUBRC -
Data type: SYSUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_BEN_CHECK_SELECTION
CREDIT_SELECTION -
Data type: RPBEN_S1Optional: No
Call by Reference: Yes
INVESTMENTS_SELECTION -
Data type: RPBENSIVOptional: Yes
Call by Reference: Yes
CREDIT_REQUIRE_DOC -
Data type: RPBEN_S1Optional: Yes
Call by Reference: Yes
HEALTH_REQUIRE_DOC -
Data type: RPBEN_SAOptional: Yes
Call by Reference: Yes
INSURE_REQUIRE_DOC -
Data type: RPBEN_SBOptional: Yes
Call by Reference: Yes
SAVING_REQUIRE_DOC -
Data type: RPBEN_SCOptional: Yes
Call by Reference: Yes
SPENDA_REQUIRE_DOC -
Data type: RPBEN_SDOptional: Yes
Call by Reference: Yes
MISCEL_REQUIRE_DOC -
Data type: RPBEN_SEOptional: Yes
Call by Reference: Yes
STOCKP_REQUIRE_DOC -
Data type: RPBEN_SFOptional: Yes
Call by Reference: Yes
CONSISTENCY_ERRORS -
Data type: RPBENERR_BPLANOptional: No
Call by Reference: Yes
ERROR_TABLE -
Data type: RPBENERROptional: No
Call by Reference: Yes
HEALTH_SELECTION -
Data type: RPBEN_SAOptional: No
Call by Reference: Yes
INSURE_SELECTION -
Data type: RPBEN_SBOptional: No
Call by Reference: Yes
SAVING_SELECTION -
Data type: RPBEN_SCOptional: No
Call by Reference: Yes
SPENDA_SELECTION -
Data type: RPBEN_SDOptional: No
Call by Reference: Yes
MISCEL_SELECTION -
Data type: RPBEN_SEOptional: No
Call by Reference: Yes
STOCKP_SELECTION -
Data type: RPBEN_SFOptional: No
Call by Reference: Yes
DEPENDENTS_SELECTION -
Data type: RPBENSDPOptional: Yes
Call by Reference: Yes
BENEFICIARIES_SELECTION -
Data type: RPBENSBFOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HR_BEN_CHECK_SELECTION 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_subrc | TYPE SYSUBRC, " | |||
| lt_credit_selection | TYPE STANDARD TABLE OF RPBEN_S1, " | |||
| lv_event_description | TYPE RPBENEVENT, " | |||
| lv_log_spenda_warnings | TYPE C, " ' ' | |||
| lt_investments_selection | TYPE STANDARD TABLE OF RPBENSIV, " | |||
| lv_reaction | TYPE SYMSGTY, " | |||
| lt_credit_require_doc | TYPE STANDARD TABLE OF RPBEN_S1, " | |||
| lt_health_require_doc | TYPE STANDARD TABLE OF RPBEN_SA, " | |||
| lt_insure_require_doc | TYPE STANDARD TABLE OF RPBEN_SB, " | |||
| lt_saving_require_doc | TYPE STANDARD TABLE OF RPBEN_SC, " | |||
| lt_spenda_require_doc | TYPE STANDARD TABLE OF RPBEN_SD, " | |||
| lt_miscel_require_doc | TYPE STANDARD TABLE OF RPBEN_SE, " | |||
| lt_stockp_require_doc | TYPE STANDARD TABLE OF RPBEN_SF, " | |||
| lt_consistency_errors | TYPE STANDARD TABLE OF RPBENERR_BPLAN, " | |||
| lt_error_table | TYPE STANDARD TABLE OF RPBENERR, " | |||
| lv_check_param | TYPE C, " | |||
| lt_health_selection | TYPE STANDARD TABLE OF RPBEN_SA, " | |||
| lv_check_admin | TYPE C, " | |||
| lt_insure_selection | TYPE STANDARD TABLE OF RPBEN_SB, " | |||
| lv_check_all_plans | TYPE C, " ' ' | |||
| lt_saving_selection | TYPE STANDARD TABLE OF RPBEN_SC, " | |||
| lt_spenda_selection | TYPE STANDARD TABLE OF RPBEN_SD, " | |||
| lv_check_only_ongoing_admin | TYPE C, " ' ' | |||
| lv_check_dependents | TYPE C, " | |||
| lt_miscel_selection | TYPE STANDARD TABLE OF RPBEN_SE, " | |||
| lt_stockp_selection | TYPE STANDARD TABLE OF RPBEN_SF, " | |||
| lv_check_beneficiaries | TYPE C, " | |||
| lv_check_investments | TYPE C, " | |||
| lt_dependents_selection | TYPE STANDARD TABLE OF RPBENSDP, " | |||
| lv_datum | TYPE SYDATUM, " | |||
| lt_beneficiaries_selection | TYPE STANDARD TABLE OF RPBENSBF. " |
|   CALL FUNCTION 'HR_BEN_CHECK_SELECTION' " |
| EXPORTING | ||
| EVENT_DESCRIPTION | = lv_event_description | |
| LOG_SPENDA_WARNINGS | = lv_log_spenda_warnings | |
| REACTION | = lv_reaction | |
| CHECK_PARAM | = lv_check_param | |
| CHECK_ADMIN | = lv_check_admin | |
| CHECK_ALL_PLANS | = lv_check_all_plans | |
| CHECK_ONLY_ONGOING_ADMIN | = lv_check_only_ongoing_admin | |
| CHECK_DEPENDENTS | = lv_check_dependents | |
| CHECK_BENEFICIARIES | = lv_check_beneficiaries | |
| CHECK_INVESTMENTS | = lv_check_investments | |
| DATUM | = lv_datum | |
| IMPORTING | ||
| SUBRC | = lv_subrc | |
| TABLES | ||
| CREDIT_SELECTION | = lt_credit_selection | |
| INVESTMENTS_SELECTION | = lt_investments_selection | |
| CREDIT_REQUIRE_DOC | = lt_credit_require_doc | |
| HEALTH_REQUIRE_DOC | = lt_health_require_doc | |
| INSURE_REQUIRE_DOC | = lt_insure_require_doc | |
| SAVING_REQUIRE_DOC | = lt_saving_require_doc | |
| SPENDA_REQUIRE_DOC | = lt_spenda_require_doc | |
| MISCEL_REQUIRE_DOC | = lt_miscel_require_doc | |
| STOCKP_REQUIRE_DOC | = lt_stockp_require_doc | |
| CONSISTENCY_ERRORS | = lt_consistency_errors | |
| ERROR_TABLE | = lt_error_table | |
| 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_CHECK_SELECTION | ||
ABAP code using 7.40 inline data declarations to call FM HR_BEN_CHECK_SELECTION
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.| DATA(ld_log_spenda_warnings) | = ' '. | |||
| DATA(ld_check_all_plans) | = ' '. | |||
| DATA(ld_check_only_ongoing_admin) | = ' '. | |||
Search for further information about these or an SAP related objects