SAP Function Modules

HR_BEN_PAY_EVALUATE_EE_CON_FIX SAP Function module







HR_BEN_PAY_EVALUATE_EE_CON_FIX 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_PAY_EVALUATE_EE_CON_FIX into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM HR_BEN_PAY_EVALUATE_EE_CON_FIX - HR BEN PAY EVALUATE EE CON FIX





CALL FUNCTION 'HR_BEN_PAY_EVALUATE_EE_CON_FIX' "
  EXPORTING
    ee_benefit_data =           " rpbeneedat
    h5uba =                     " t5uba
    begda =                     " p0379-begda
    pardt =                     " p0379-pardt
    ee_contrib =                " rpben_contributions
    pdbeg =                     " p0379-pdbeg
    pdend =                     " p0379-pdend
    eecon =                     " t74hd-eecon
    cunit =                     " t74hd-cunit
    calc_currency =             " t500c-waers
    calcmolga =                 " t5ub3-molga
    plan_model =                " t74he-model
    last_pre_contrib =          " p0379-eeamt
    last_post_contrib =         " p0379-ptamt
    ben_v0znr =                 " pc20c-v0znr
    aper =                      " pc2aper
    as =                        " pcal_as
*   sw_prot =                   " c
    ben_services =              " if_hrben_ce_payroll_services
  IMPORTING
    pre_tax_contrib =           " p0379-eeamt
    post_tax_contrib =          " p0379-ptamt
    clear_betpe =               " c
    subrc =                     " sy-subrc
  TABLES
    it =                        " pc207
    crt =                       " pc22y
    bentab =                    " pc27s
    v0 =                        " pc20c
*   ptext =                     " plog_text
    error_table =               " rpbenerr
    .  "  HR_BEN_PAY_EVALUATE_EE_CON_FIX

ABAP code example for Function Module HR_BEN_PAY_EVALUATE_EE_CON_FIX





The ABAP code below is a full code listing to execute function module HR_BEN_PAY_EVALUATE_EE_CON_FIX 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_pre_tax_contrib  TYPE P0379-EEAMT ,
ld_post_tax_contrib  TYPE P0379-PTAMT ,
ld_clear_betpe  TYPE C ,
ld_subrc  TYPE SY-SUBRC ,
it_it  TYPE STANDARD TABLE OF PC207,"TABLES PARAM
wa_it  LIKE LINE OF it_it ,
it_crt  TYPE STANDARD TABLE OF PC22Y,"TABLES PARAM
wa_crt  LIKE LINE OF it_crt ,
it_bentab  TYPE STANDARD TABLE OF PC27S,"TABLES PARAM
wa_bentab  LIKE LINE OF it_bentab ,
it_v0  TYPE STANDARD TABLE OF PC20C,"TABLES PARAM
wa_v0  LIKE LINE OF it_v0 ,
it_ptext  TYPE STANDARD TABLE OF PLOG_TEXT,"TABLES PARAM
wa_ptext  LIKE LINE OF it_ptext ,
it_error_table  TYPE STANDARD TABLE OF RPBENERR,"TABLES PARAM
wa_error_table  LIKE LINE OF it_error_table .

DATA(ld_ee_benefit_data) = 'Check type of data required'.
DATA(ld_h5uba) = 'Check type of data required'.

DATA(ld_begda) = 20210129

DATA(ld_pardt) = 20210129
DATA(ld_ee_contrib) = 'Check type of data required'.

DATA(ld_pdbeg) = 20210129

DATA(ld_pdend) = 20210129

SELECT single EECON
FROM T74HD
INTO @DATA(ld_eecon).


SELECT single CUNIT
FROM T74HD
INTO @DATA(ld_cunit).


SELECT single WAERS
FROM T500C
INTO @DATA(ld_calc_currency).


SELECT single MOLGA
FROM T5UB3
INTO @DATA(ld_calcmolga).


SELECT single MODEL
FROM T74HE
INTO @DATA(ld_plan_model).


DATA(ld_last_pre_contrib) = 20.50

DATA(ld_last_post_contrib) = 20.50

DATA(ld_ben_v0znr) = Check type of data required
DATA(ld_aper) = 'Check type of data required'.
DATA(ld_as) = 'Check type of data required'.
DATA(ld_sw_prot) = 'Check type of data required'.
DATA(ld_ben_services) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it to it_it.

"populate fields of struture and append to itab
append wa_crt to it_crt.

"populate fields of struture and append to itab
append wa_bentab to it_bentab.

"populate fields of struture and append to itab
append wa_v0 to it_v0.

"populate fields of struture and append to itab
append wa_ptext to it_ptext.

"populate fields of struture and append to itab
append wa_error_table to it_error_table. . CALL FUNCTION 'HR_BEN_PAY_EVALUATE_EE_CON_FIX' EXPORTING ee_benefit_data = ld_ee_benefit_data h5uba = ld_h5uba begda = ld_begda pardt = ld_pardt ee_contrib = ld_ee_contrib pdbeg = ld_pdbeg pdend = ld_pdend eecon = ld_eecon cunit = ld_cunit calc_currency = ld_calc_currency calcmolga = ld_calcmolga plan_model = ld_plan_model last_pre_contrib = ld_last_pre_contrib last_post_contrib = ld_last_post_contrib ben_v0znr = ld_ben_v0znr aper = ld_aper as = ld_as * sw_prot = ld_sw_prot ben_services = ld_ben_services IMPORTING pre_tax_contrib = ld_pre_tax_contrib post_tax_contrib = ld_post_tax_contrib clear_betpe = ld_clear_betpe subrc = ld_subrc TABLES it = it_it crt = it_crt bentab = it_bentab v0 = it_v0 * ptext = it_ptext error_table = it_error_table . " HR_BEN_PAY_EVALUATE_EE_CON_FIX
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_pre_tax_contrib  TYPE P0379-EEAMT ,
ld_ee_benefit_data  TYPE RPBENEEDAT ,
it_it  TYPE STANDARD TABLE OF PC207 ,
wa_it  LIKE LINE OF it_it,
ld_post_tax_contrib  TYPE P0379-PTAMT ,
ld_h5uba  TYPE T5UBA ,
it_crt  TYPE STANDARD TABLE OF PC22Y ,
wa_crt  LIKE LINE OF it_crt,
ld_clear_betpe  TYPE C ,
ld_begda  TYPE P0379-BEGDA ,
it_bentab  TYPE STANDARD TABLE OF PC27S ,
wa_bentab  LIKE LINE OF it_bentab,
ld_subrc  TYPE SY-SUBRC ,
ld_pardt  TYPE P0379-PARDT ,
it_v0  TYPE STANDARD TABLE OF PC20C ,
wa_v0  LIKE LINE OF it_v0,
ld_ee_contrib  TYPE RPBEN_CONTRIBUTIONS ,
it_ptext  TYPE STANDARD TABLE OF PLOG_TEXT ,
wa_ptext  LIKE LINE OF it_ptext,
ld_pdbeg  TYPE P0379-PDBEG ,
it_error_table  TYPE STANDARD TABLE OF RPBENERR ,
wa_error_table  LIKE LINE OF it_error_table,
ld_pdend  TYPE P0379-PDEND ,
ld_eecon  TYPE T74HD-EECON ,
ld_cunit  TYPE T74HD-CUNIT ,
ld_calc_currency  TYPE T500C-WAERS ,
ld_calcmolga  TYPE T5UB3-MOLGA ,
ld_plan_model  TYPE T74HE-MODEL ,
ld_last_pre_contrib  TYPE P0379-EEAMT ,
ld_last_post_contrib  TYPE P0379-PTAMT ,
ld_ben_v0znr  TYPE PC20C-V0ZNR ,
ld_aper  TYPE PC2APER ,
ld_as  TYPE PCAL_AS ,
ld_sw_prot  TYPE C ,
ld_ben_services  TYPE IF_HRBEN_CE_PAYROLL_SERVICES .

ld_ee_benefit_data = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it to it_it.
ld_h5uba = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_crt to it_crt.

ld_begda = 20210129

"populate fields of struture and append to itab
append wa_bentab to it_bentab.

ld_pardt = 20210129

"populate fields of struture and append to itab
append wa_v0 to it_v0.
ld_ee_contrib = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ptext to it_ptext.

ld_pdbeg = 20210129

"populate fields of struture and append to itab
append wa_error_table to it_error_table.

ld_pdend = 20210129

SELECT single EECON
FROM T74HD
INTO ld_eecon.


SELECT single CUNIT
FROM T74HD
INTO ld_cunit.


SELECT single WAERS
FROM T500C
INTO ld_calc_currency.


SELECT single MOLGA
FROM T5UB3
INTO ld_calcmolga.


SELECT single MODEL
FROM T74HE
INTO ld_plan_model.


ld_last_pre_contrib = 20.50

ld_last_post_contrib = 20.50

ld_ben_v0znr = Check type of data required
ld_aper = 'Check type of data required'.
ld_as = 'Check type of data required'.
ld_sw_prot = 'Check type of data required'.
ld_ben_services = 'Check type of data required'.

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_PAY_EVALUATE_EE_CON_FIX or its description.