SAP Function Modules

HR_BEN_CHECK_SELECTION_FILLED SAP Function module







HR_BEN_CHECK_SELECTION_FILLED is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name HR_BEN_CHECK_SELECTION_FILLED into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HRBEN00GENERAL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM HR_BEN_CHECK_SELECTION_FILLED - HR BEN CHECK SELECTION FILLED





CALL FUNCTION 'HR_BEN_CHECK_SELECTION_FILLED' "
  IMPORTING
    at_least_one_plan_to_enroll =   " c
* TABLES
*   credit_selection =          " rpben_s1
*   health_selection =          " rpben_sa
*   insure_selection =          " rpben_sb
*   saving_selection =          " rpben_sc
*   spenda_selection =          " rpben_sd
*   miscel_selection =          " rpben_se
*   stockp_selection =          " rpben_sf
    .  "  HR_BEN_CHECK_SELECTION_FILLED

ABAP code example for Function Module HR_BEN_CHECK_SELECTION_FILLED





The ABAP code below is a full code listing to execute function module HR_BEN_CHECK_SELECTION_FILLED including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_at_least_one_plan_to_enroll  TYPE C ,
it_credit_selection  TYPE STANDARD TABLE OF RPBEN_S1,"TABLES PARAM
wa_credit_selection  LIKE LINE OF it_credit_selection ,
it_health_selection  TYPE STANDARD TABLE OF RPBEN_SA,"TABLES PARAM
wa_health_selection  LIKE LINE OF it_health_selection ,
it_insure_selection  TYPE STANDARD TABLE OF RPBEN_SB,"TABLES PARAM
wa_insure_selection  LIKE LINE OF it_insure_selection ,
it_saving_selection  TYPE STANDARD TABLE OF RPBEN_SC,"TABLES PARAM
wa_saving_selection  LIKE LINE OF it_saving_selection ,
it_spenda_selection  TYPE STANDARD TABLE OF RPBEN_SD,"TABLES PARAM
wa_spenda_selection  LIKE LINE OF it_spenda_selection ,
it_miscel_selection  TYPE STANDARD TABLE OF RPBEN_SE,"TABLES PARAM
wa_miscel_selection  LIKE LINE OF it_miscel_selection ,
it_stockp_selection  TYPE STANDARD TABLE OF RPBEN_SF,"TABLES PARAM
wa_stockp_selection  LIKE LINE OF it_stockp_selection .


"populate fields of struture and append to itab
append wa_credit_selection to it_credit_selection.

"populate fields of struture and append to itab
append wa_health_selection to it_health_selection.

"populate fields of struture and append to itab
append wa_insure_selection to it_insure_selection.

"populate fields of struture and append to itab
append wa_saving_selection to it_saving_selection.

"populate fields of struture and append to itab
append wa_spenda_selection to it_spenda_selection.

"populate fields of struture and append to itab
append wa_miscel_selection to it_miscel_selection.

"populate fields of struture and append to itab
append wa_stockp_selection to it_stockp_selection. . CALL FUNCTION 'HR_BEN_CHECK_SELECTION_FILLED' IMPORTING at_least_one_plan_to_enroll = ld_at_least_one_plan_to_enroll * TABLES * credit_selection = it_credit_selection * health_selection = it_health_selection * insure_selection = it_insure_selection * saving_selection = it_saving_selection * spenda_selection = it_spenda_selection * miscel_selection = it_miscel_selection * stockp_selection = it_stockp_selection . " HR_BEN_CHECK_SELECTION_FILLED
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_at_least_one_plan_to_enroll  TYPE C ,
it_credit_selection  TYPE STANDARD TABLE OF RPBEN_S1 ,
wa_credit_selection  LIKE LINE OF it_credit_selection,
it_health_selection  TYPE STANDARD TABLE OF RPBEN_SA ,
wa_health_selection  LIKE LINE OF it_health_selection,
it_insure_selection  TYPE STANDARD TABLE OF RPBEN_SB ,
wa_insure_selection  LIKE LINE OF it_insure_selection,
it_saving_selection  TYPE STANDARD TABLE OF RPBEN_SC ,
wa_saving_selection  LIKE LINE OF it_saving_selection,
it_spenda_selection  TYPE STANDARD TABLE OF RPBEN_SD ,
wa_spenda_selection  LIKE LINE OF it_spenda_selection,
it_miscel_selection  TYPE STANDARD TABLE OF RPBEN_SE ,
wa_miscel_selection  LIKE LINE OF it_miscel_selection,
it_stockp_selection  TYPE STANDARD TABLE OF RPBEN_SF ,
wa_stockp_selection  LIKE LINE OF it_stockp_selection.


"populate fields of struture and append to itab
append wa_credit_selection to it_credit_selection.

"populate fields of struture and append to itab
append wa_health_selection to it_health_selection.

"populate fields of struture and append to itab
append wa_insure_selection to it_insure_selection.

"populate fields of struture and append to itab
append wa_saving_selection to it_saving_selection.

"populate fields of struture and append to itab
append wa_spenda_selection to it_spenda_selection.

"populate fields of struture and append to itab
append wa_miscel_selection to it_miscel_selection.

"populate fields of struture and append to itab
append wa_stockp_selection to it_stockp_selection.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name HR_BEN_CHECK_SELECTION_FILLED or its description.