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

Function HR_BEN_ESS_RFC_SAVE_PLANS 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_ESS_RFC_SAVE_PLANS'".
EXPORTING
IV_EVENT_DESCRIPTION = "
IV_ENROLLMENT_REASON = "
IV_DOC_REQUIRED = "
IMPORTING
EV_SUBRC = "
EV_CONF_FORM_AVAIL = "
TABLES
CT_CREDIT_SELECTION = "
CT_INVEST_SELECTION = "
* CT_ERROR_TABLE = "
CT_DOC_REQUIRED_HEALTH = "
CT_DOC_REQUIRED_INSURE = "
CT_HEALTH_SELECTION = "
CT_INSURE_SELECTION = "
CT_SAVING_SELECTION = "
CT_SPENDA_SELECTION = "
CT_MISCEL_SELECTION = "
CT_STOCKP_SELECTION = "
CT_DEPEND_SELECTION = "
CT_BENEFI_SELECTION = "
IMPORTING Parameters details for HR_BEN_ESS_RFC_SAVE_PLANS
IV_EVENT_DESCRIPTION -
Data type: RPBENEVENTOptional: No
Call by Reference: No ( called with pass by value option)
IV_ENROLLMENT_REASON -
Data type: RPBENENROLLMENTREASONOptional: No
Call by Reference: No ( called with pass by value option)
IV_DOC_REQUIRED -
Data type: SAP_BOOLOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_BEN_ESS_RFC_SAVE_PLANS
EV_SUBRC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
EV_CONF_FORM_AVAIL -
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_BEN_ESS_RFC_SAVE_PLANS
CT_CREDIT_SELECTION -
Data type: RPBEN_S1Optional: No
Call by Reference: Yes
CT_INVEST_SELECTION -
Data type: RPBENSIVOptional: No
Call by Reference: Yes
CT_ERROR_TABLE -
Data type: RPBENERROptional: Yes
Call by Reference: Yes
CT_DOC_REQUIRED_HEALTH -
Data type: RPBEN_SAOptional: No
Call by Reference: Yes
CT_DOC_REQUIRED_INSURE -
Data type: RPBEN_SBOptional: No
Call by Reference: Yes
CT_HEALTH_SELECTION -
Data type: RPBEN_SAOptional: No
Call by Reference: Yes
CT_INSURE_SELECTION -
Data type: RPBEN_SBOptional: No
Call by Reference: Yes
CT_SAVING_SELECTION -
Data type: RPBEN_SCOptional: No
Call by Reference: Yes
CT_SPENDA_SELECTION -
Data type: RPBEN_SDOptional: No
Call by Reference: Yes
CT_MISCEL_SELECTION -
Data type: RPBEN_SEOptional: No
Call by Reference: Yes
CT_STOCKP_SELECTION -
Data type: RPBEN_SFOptional: No
Call by Reference: Yes
CT_DEPEND_SELECTION -
Data type: RPBENSDPOptional: No
Call by Reference: Yes
CT_BENEFI_SELECTION -
Data type: RPBENSBFOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_BEN_ESS_RFC_SAVE_PLANS 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_ev_subrc | TYPE SY-SUBRC, " | |||
| lt_ct_credit_selection | TYPE STANDARD TABLE OF RPBEN_S1, " | |||
| lv_iv_event_description | TYPE RPBENEVENT, " | |||
| lt_ct_invest_selection | TYPE STANDARD TABLE OF RPBENSIV, " | |||
| lt_ct_error_table | TYPE STANDARD TABLE OF RPBENERR, " | |||
| lt_ct_doc_required_health | TYPE STANDARD TABLE OF RPBEN_SA, " | |||
| lt_ct_doc_required_insure | TYPE STANDARD TABLE OF RPBEN_SB, " | |||
| lv_ev_conf_form_avail | TYPE XFELD, " | |||
| lt_ct_health_selection | TYPE STANDARD TABLE OF RPBEN_SA, " | |||
| lv_iv_enrollment_reason | TYPE RPBENENROLLMENTREASON, " | |||
| lv_iv_doc_required | TYPE SAP_BOOL, " | |||
| lt_ct_insure_selection | TYPE STANDARD TABLE OF RPBEN_SB, " | |||
| lt_ct_saving_selection | TYPE STANDARD TABLE OF RPBEN_SC, " | |||
| lt_ct_spenda_selection | TYPE STANDARD TABLE OF RPBEN_SD, " | |||
| lt_ct_miscel_selection | TYPE STANDARD TABLE OF RPBEN_SE, " | |||
| lt_ct_stockp_selection | TYPE STANDARD TABLE OF RPBEN_SF, " | |||
| lt_ct_depend_selection | TYPE STANDARD TABLE OF RPBENSDP, " | |||
| lt_ct_benefi_selection | TYPE STANDARD TABLE OF RPBENSBF. " |
|   CALL FUNCTION 'HR_BEN_ESS_RFC_SAVE_PLANS' " |
| EXPORTING | ||
| IV_EVENT_DESCRIPTION | = lv_iv_event_description | |
| IV_ENROLLMENT_REASON | = lv_iv_enrollment_reason | |
| IV_DOC_REQUIRED | = lv_iv_doc_required | |
| IMPORTING | ||
| EV_SUBRC | = lv_ev_subrc | |
| EV_CONF_FORM_AVAIL | = lv_ev_conf_form_avail | |
| TABLES | ||
| CT_CREDIT_SELECTION | = lt_ct_credit_selection | |
| CT_INVEST_SELECTION | = lt_ct_invest_selection | |
| CT_ERROR_TABLE | = lt_ct_error_table | |
| CT_DOC_REQUIRED_HEALTH | = lt_ct_doc_required_health | |
| CT_DOC_REQUIRED_INSURE | = lt_ct_doc_required_insure | |
| CT_HEALTH_SELECTION | = lt_ct_health_selection | |
| CT_INSURE_SELECTION | = lt_ct_insure_selection | |
| CT_SAVING_SELECTION | = lt_ct_saving_selection | |
| CT_SPENDA_SELECTION | = lt_ct_spenda_selection | |
| CT_MISCEL_SELECTION | = lt_ct_miscel_selection | |
| CT_STOCKP_SELECTION | = lt_ct_stockp_selection | |
| CT_DEPEND_SELECTION | = lt_ct_depend_selection | |
| CT_BENEFI_SELECTION | = lt_ct_benefi_selection | |
| . " HR_BEN_ESS_RFC_SAVE_PLANS | ||
ABAP code using 7.40 inline data declarations to call FM HR_BEN_ESS_RFC_SAVE_PLANS
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 SUBRC FROM SY INTO @DATA(ld_ev_subrc). | ||||
Search for further information about these or an SAP related objects