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
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
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).
| 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 . |
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 . |
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.