SAP Function Modules

HR_BEN_PAY_PROCESS_MISC_PLANS SAP Function module







HR_BEN_PAY_PROCESS_MISC_PLANS 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_PROCESS_MISC_PLANS 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_PROCESS_MISC_PLANS - HR BEN PAY PROCESS MISC PLANS





CALL FUNCTION 'HR_BEN_PAY_PROCESS_MISC_PLANS' "
  EXPORTING
    pernr =                     " pernr-pernr
    as =                        " pcal_as
    aper =                      " pc2aper
    it0 =                       " pc207
    calc_currency =             " t500c-waers
    calcmolga =                 " t5ub3-molga
    split_natio =               " psplit
    fc_sw_dec =                 " c
    sw_prot =                   " c
    first_wpbp_run =            " c
    ben_services =              " if_hrben_ce_payroll_services
  IMPORTING
    subrc =                     " sy-subrc
  TABLES
    pp0377 =                    " p0377
    it =                        " pc207
*   rt =                        " hrpay99_rt
    crt =                       " pc22y
    wpbp =                      " pc205
    v0 =                        " pc20c
    ptext =                     " plog_text
    error_table =               " rpbenerr
    .  "  HR_BEN_PAY_PROCESS_MISC_PLANS

ABAP code example for Function Module HR_BEN_PAY_PROCESS_MISC_PLANS





The ABAP code below is a full code listing to execute function module HR_BEN_PAY_PROCESS_MISC_PLANS 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 SY-SUBRC ,
it_pp0377  TYPE STANDARD TABLE OF P0377,"TABLES PARAM
wa_pp0377  LIKE LINE OF it_pp0377 ,
it_it  TYPE STANDARD TABLE OF PC207,"TABLES PARAM
wa_it  LIKE LINE OF it_it ,
it_rt  TYPE STANDARD TABLE OF HRPAY99_RT,"TABLES PARAM
wa_rt  LIKE LINE OF it_rt ,
it_crt  TYPE STANDARD TABLE OF PC22Y,"TABLES PARAM
wa_crt  LIKE LINE OF it_crt ,
it_wpbp  TYPE STANDARD TABLE OF PC205,"TABLES PARAM
wa_wpbp  LIKE LINE OF it_wpbp ,
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_pernr) = Check type of data required
DATA(ld_as) = 'Check type of data required'.
DATA(ld_aper) = 'Check type of data required'.
DATA(ld_it0) = 'Check type of data required'.

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


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

DATA(ld_split_natio) = 'Check type of data required'.
DATA(ld_fc_sw_dec) = 'Check type of data required'.
DATA(ld_sw_prot) = 'Check type of data required'.
DATA(ld_first_wpbp_run) = 'Check type of data required'.
DATA(ld_ben_services) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pp0377 to it_pp0377.

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

"populate fields of struture and append to itab
append wa_rt to it_rt.

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

"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_PROCESS_MISC_PLANS' EXPORTING pernr = ld_pernr as = ld_as aper = ld_aper it0 = ld_it0 calc_currency = ld_calc_currency calcmolga = ld_calcmolga split_natio = ld_split_natio fc_sw_dec = ld_fc_sw_dec sw_prot = ld_sw_prot first_wpbp_run = ld_first_wpbp_run ben_services = ld_ben_services IMPORTING subrc = ld_subrc TABLES pp0377 = it_pp0377 it = it_it * rt = it_rt crt = it_crt wpbp = it_wpbp v0 = it_v0 ptext = it_ptext error_table = it_error_table . " HR_BEN_PAY_PROCESS_MISC_PLANS
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 SY-SUBRC ,
ld_pernr  TYPE PERNR-PERNR ,
it_pp0377  TYPE STANDARD TABLE OF P0377 ,
wa_pp0377  LIKE LINE OF it_pp0377,
ld_as  TYPE PCAL_AS ,
it_it  TYPE STANDARD TABLE OF PC207 ,
wa_it  LIKE LINE OF it_it,
ld_aper  TYPE PC2APER ,
it_rt  TYPE STANDARD TABLE OF HRPAY99_RT ,
wa_rt  LIKE LINE OF it_rt,
ld_it0  TYPE PC207 ,
it_crt  TYPE STANDARD TABLE OF PC22Y ,
wa_crt  LIKE LINE OF it_crt,
ld_calc_currency  TYPE T500C-WAERS ,
it_wpbp  TYPE STANDARD TABLE OF PC205 ,
wa_wpbp  LIKE LINE OF it_wpbp,
ld_calcmolga  TYPE T5UB3-MOLGA ,
it_v0  TYPE STANDARD TABLE OF PC20C ,
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_fc_sw_dec  TYPE C ,
it_error_table  TYPE STANDARD TABLE OF RPBENERR ,
wa_error_table  LIKE LINE OF it_error_table,
ld_sw_prot  TYPE C ,
ld_first_wpbp_run  TYPE C ,
ld_ben_services  TYPE IF_HRBEN_CE_PAYROLL_SERVICES .


ld_pernr = Check type of data required

"populate fields of struture and append to itab
append wa_pp0377 to it_pp0377.
ld_as = 'Check type of data required'.

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

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

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

SELECT single WAERS
FROM T500C
INTO ld_calc_currency.


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

SELECT single MOLGA
FROM T5UB3
INTO ld_calcmolga.


"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_fc_sw_dec = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_error_table to it_error_table.
ld_sw_prot = 'Check type of data required'.
ld_first_wpbp_run = '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_PROCESS_MISC_PLANS or its description.