SAP Function Modules

EXIT_RPCALCB0_001 SAP Function module - Usage of additional fields in payroll daydetails







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

Associated Function Group: PA12
Released Date: 08.10.1996
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EXIT_RPCALCB0_001 - EXIT RPCALCB0 001





CALL FUNCTION 'EXIT_RPCALCB0_001' "Usage of additional fields in payroll daydetails
  EXPORTING
    pernr =                     " prel-pernr
    rules =                     "
    att =                       "
    abs =                       "
  IMPORTING
    subrc =                     " sy-subrc
  TABLES
    ce_daydet =                 " pc286
    ce_psp =                    " pc2ba
    ce_ab =                     " pc20i
    ce_zl =                     " pc2bf
    ce_rt =                     " pc207
    ce_c0 =                     " pc20a
    ce_c1 =                     " pc25x
    .  "  EXIT_RPCALCB0_001

ABAP code example for Function Module EXIT_RPCALCB0_001





The ABAP code below is a full code listing to execute function module EXIT_RPCALCB0_001 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_ce_daydet  TYPE STANDARD TABLE OF PC286,"TABLES PARAM
wa_ce_daydet  LIKE LINE OF it_ce_daydet ,
it_ce_psp  TYPE STANDARD TABLE OF PC2BA,"TABLES PARAM
wa_ce_psp  LIKE LINE OF it_ce_psp ,
it_ce_ab  TYPE STANDARD TABLE OF PC20I,"TABLES PARAM
wa_ce_ab  LIKE LINE OF it_ce_ab ,
it_ce_zl  TYPE STANDARD TABLE OF PC2BF,"TABLES PARAM
wa_ce_zl  LIKE LINE OF it_ce_zl ,
it_ce_rt  TYPE STANDARD TABLE OF PC207,"TABLES PARAM
wa_ce_rt  LIKE LINE OF it_ce_rt ,
it_ce_c0  TYPE STANDARD TABLE OF PC20A,"TABLES PARAM
wa_ce_c0  LIKE LINE OF it_ce_c0 ,
it_ce_c1  TYPE STANDARD TABLE OF PC25X,"TABLES PARAM
wa_ce_c1  LIKE LINE OF it_ce_c1 .


SELECT single PERNR
FROM PREL
INTO @DATA(ld_pernr).

DATA(ld_rules) = 'some text here'.
DATA(ld_att) = 'some text here'.
DATA(ld_abs) = 'some text here'.

"populate fields of struture and append to itab
append wa_ce_daydet to it_ce_daydet.

"populate fields of struture and append to itab
append wa_ce_psp to it_ce_psp.

"populate fields of struture and append to itab
append wa_ce_ab to it_ce_ab.

"populate fields of struture and append to itab
append wa_ce_zl to it_ce_zl.

"populate fields of struture and append to itab
append wa_ce_rt to it_ce_rt.

"populate fields of struture and append to itab
append wa_ce_c0 to it_ce_c0.

"populate fields of struture and append to itab
append wa_ce_c1 to it_ce_c1. . CALL FUNCTION 'EXIT_RPCALCB0_001' EXPORTING pernr = ld_pernr rules = ld_rules att = ld_att abs = ld_abs IMPORTING subrc = ld_subrc TABLES ce_daydet = it_ce_daydet ce_psp = it_ce_psp ce_ab = it_ce_ab ce_zl = it_ce_zl ce_rt = it_ce_rt ce_c0 = it_ce_c0 ce_c1 = it_ce_c1 . " EXIT_RPCALCB0_001
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 PREL-PERNR ,
it_ce_daydet  TYPE STANDARD TABLE OF PC286 ,
wa_ce_daydet  LIKE LINE OF it_ce_daydet,
ld_rules  TYPE STRING ,
it_ce_psp  TYPE STANDARD TABLE OF PC2BA ,
wa_ce_psp  LIKE LINE OF it_ce_psp,
ld_att  TYPE STRING ,
it_ce_ab  TYPE STANDARD TABLE OF PC20I ,
wa_ce_ab  LIKE LINE OF it_ce_ab,
ld_abs  TYPE STRING ,
it_ce_zl  TYPE STANDARD TABLE OF PC2BF ,
wa_ce_zl  LIKE LINE OF it_ce_zl,
it_ce_rt  TYPE STANDARD TABLE OF PC207 ,
wa_ce_rt  LIKE LINE OF it_ce_rt,
it_ce_c0  TYPE STANDARD TABLE OF PC20A ,
wa_ce_c0  LIKE LINE OF it_ce_c0,
it_ce_c1  TYPE STANDARD TABLE OF PC25X ,
wa_ce_c1  LIKE LINE OF it_ce_c1.


SELECT single PERNR
FROM PREL
INTO ld_pernr.


"populate fields of struture and append to itab
append wa_ce_daydet to it_ce_daydet.
ld_rules = 'some text here'.

"populate fields of struture and append to itab
append wa_ce_psp to it_ce_psp.
ld_att = 'some text here'.

"populate fields of struture and append to itab
append wa_ce_ab to it_ce_ab.
ld_abs = 'some text here'.

"populate fields of struture and append to itab
append wa_ce_zl to it_ce_zl.

"populate fields of struture and append to itab
append wa_ce_rt to it_ce_rt.

"populate fields of struture and append to itab
append wa_ce_c0 to it_ce_c0.

"populate fields of struture and append to itab
append wa_ce_c1 to it_ce_c1.

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