SAP Function Modules

HR_BEN_PAY_ADJUST_ER_CONTRIB SAP Function module







HR_BEN_PAY_ADJUST_ER_CONTRIB 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_ADJUST_ER_CONTRIB 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_ADJUST_ER_CONTRIB - HR BEN PAY ADJUST ER CONTRIB





CALL FUNCTION 'HR_BEN_PAY_ADJUST_ER_CONTRIB' "
  EXPORTING
    calc_currency =             " waers
    calcmolga =                 " molga
    aper =                      " pc2aper
    it0 =                       " pc207
    fc_sw_dec =                 " c
    split_natio =               " psplit
    sw_prot =                   " c
*   barea =                     " ben_area
    ben_services =              " if_hrben_ce_payroll_services
  IMPORTING
    subrc =                     " sysubrc
  TABLES
    it =                        " hrpay99_rt
    ddntk =                     " hrpay99_ddntk
    arrrs =                     " hrpay99_arrrs
    wpbp =                      " hrpay99_wpbp
    v0 =                        " hrpay99_v0
    ptext =                     " plog_text
    error_table =               " hrben00err
    .  "  HR_BEN_PAY_ADJUST_ER_CONTRIB

ABAP code example for Function Module HR_BEN_PAY_ADJUST_ER_CONTRIB





The ABAP code below is a full code listing to execute function module HR_BEN_PAY_ADJUST_ER_CONTRIB 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_subrc  TYPE SYSUBRC ,
it_it  TYPE STANDARD TABLE OF HRPAY99_RT,"TABLES PARAM
wa_it  LIKE LINE OF it_it ,
it_ddntk  TYPE STANDARD TABLE OF HRPAY99_DDNTK,"TABLES PARAM
wa_ddntk  LIKE LINE OF it_ddntk ,
it_arrrs  TYPE STANDARD TABLE OF HRPAY99_ARRRS,"TABLES PARAM
wa_arrrs  LIKE LINE OF it_arrrs ,
it_wpbp  TYPE STANDARD TABLE OF HRPAY99_WPBP,"TABLES PARAM
wa_wpbp  LIKE LINE OF it_wpbp ,
it_v0  TYPE STANDARD TABLE OF HRPAY99_V0,"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 HRBEN00ERR,"TABLES PARAM
wa_error_table  LIKE LINE OF it_error_table .

DATA(ld_calc_currency) = 'Check type of data required'.
DATA(ld_calcmolga) = 'Check type of data required'.
DATA(ld_aper) = 'Check type of data required'.
DATA(ld_it0) = 'Check type of data required'.
DATA(ld_fc_sw_dec) = 'Check type of data required'.
DATA(ld_split_natio) = 'Check type of data required'.
DATA(ld_sw_prot) = 'Check type of data required'.
DATA(ld_barea) = '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_ddntk to it_ddntk.

"populate fields of struture and append to itab
append wa_arrrs to it_arrrs.

"populate fields of struture and append to itab
append wa_wpbp to it_wpbp.

"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_ADJUST_ER_CONTRIB' EXPORTING calc_currency = ld_calc_currency calcmolga = ld_calcmolga aper = ld_aper it0 = ld_it0 fc_sw_dec = ld_fc_sw_dec split_natio = ld_split_natio sw_prot = ld_sw_prot * barea = ld_barea ben_services = ld_ben_services IMPORTING subrc = ld_subrc TABLES it = it_it ddntk = it_ddntk arrrs = it_arrrs wpbp = it_wpbp v0 = it_v0 ptext = it_ptext error_table = it_error_table . " HR_BEN_PAY_ADJUST_ER_CONTRIB
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_subrc  TYPE SYSUBRC ,
ld_calc_currency  TYPE WAERS ,
it_it  TYPE STANDARD TABLE OF HRPAY99_RT ,
wa_it  LIKE LINE OF it_it,
ld_calcmolga  TYPE MOLGA ,
it_ddntk  TYPE STANDARD TABLE OF HRPAY99_DDNTK ,
wa_ddntk  LIKE LINE OF it_ddntk,
ld_aper  TYPE PC2APER ,
it_arrrs  TYPE STANDARD TABLE OF HRPAY99_ARRRS ,
wa_arrrs  LIKE LINE OF it_arrrs,
ld_it0  TYPE PC207 ,
it_wpbp  TYPE STANDARD TABLE OF HRPAY99_WPBP ,
wa_wpbp  LIKE LINE OF it_wpbp,
ld_fc_sw_dec  TYPE C ,
it_v0  TYPE STANDARD TABLE OF HRPAY99_V0 ,
wa_v0  LIKE LINE OF it_v0,
ld_split_natio  TYPE PSPLIT ,
it_ptext  TYPE STANDARD TABLE OF PLOG_TEXT ,
wa_ptext  LIKE LINE OF it_ptext,
ld_sw_prot  TYPE C ,
it_error_table  TYPE STANDARD TABLE OF HRBEN00ERR ,
wa_error_table  LIKE LINE OF it_error_table,
ld_barea  TYPE BEN_AREA ,
ld_ben_services  TYPE IF_HRBEN_CE_PAYROLL_SERVICES .

ld_calc_currency = 'Check type of data required'.

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

"populate fields of struture and append to itab
append wa_ddntk to it_ddntk.
ld_aper = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_arrrs to it_arrrs.
ld_it0 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_wpbp to it_wpbp.
ld_fc_sw_dec = 'Check type of data required'.

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

"populate fields of struture and append to itab
append wa_ptext to it_ptext.
ld_sw_prot = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_error_table to it_error_table.
ld_barea = '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_ADJUST_ER_CONTRIB or its description.