SAP Function Modules

HR_UPDATE_CUM_TABLES_AU SAP Function module - Update AU cumulation tables via ADDCU







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

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


Pattern for FM HR_UPDATE_CUM_TABLES_AU - HR UPDATE CUM TABLES AU





CALL FUNCTION 'HR_UPDATE_CUM_TABLES_AU' "Update AU cumulation tables via ADDCU
  EXPORTING
    imp_molga =                 " molga         Country Grouping
    imp_rt =                    " hrpay99_rt    Results table
    imp_fixed_day_for_cumul =   " d             Pay date
*   imp_currency =              " t500c-waers   Payroll currency
*   log =                       " c             Payroll log flag
    payroll_result =            "               All payroll tables
    imp_aper =                  " pc2aper       Struktur der Tabelle APER in der Personalabrechnung
    imp_employeenumber =        " pernr-pernr   Personnel number
*   im_is_rt_pers =             " c             Person Flag
*   imp_sw_ce_payroll = ' '     " c             CE Abrechnung
*   imp_gprsn =                 " pcce_gprsn    Gruppierungsgrund für Beschäftigungsverträge
*   imp_gpval =                 " pcce_gprsn    Gruppierungsgrund für Beschäftigungsverträge
  TABLES
    logtext =                   " plog_text     Structure for HR Function Log
    errortext =                 " plog_text     Structure for HR Function Log
  CHANGING
    cumul_tab_all =             "
  EXCEPTIONS
    CUMULATION_FAILED = 1       "
    .  "  HR_UPDATE_CUM_TABLES_AU

ABAP code example for Function Module HR_UPDATE_CUM_TABLES_AU





The ABAP code below is a full code listing to execute function module HR_UPDATE_CUM_TABLES_AU 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:
it_logtext  TYPE STANDARD TABLE OF PLOG_TEXT,"TABLES PARAM
wa_logtext  LIKE LINE OF it_logtext ,
it_errortext  TYPE STANDARD TABLE OF PLOG_TEXT,"TABLES PARAM
wa_errortext  LIKE LINE OF it_errortext .

DATA(ld_cumul_tab_all) = 'some text here'.
DATA(ld_imp_molga) = 'Check type of data required'.
DATA(ld_imp_rt) = 'Check type of data required'.
DATA(ld_imp_fixed_day_for_cumul) = 'Check type of data required'.

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

DATA(ld_log) = 'Check type of data required'.
DATA(ld_payroll_result) = 'some text here'.
DATA(ld_imp_aper) = 'Check type of data required'.

DATA(ld_imp_employeenumber) = Check type of data required
DATA(ld_im_is_rt_pers) = 'Check type of data required'.
DATA(ld_imp_sw_ce_payroll) = 'Check type of data required'.
DATA(ld_imp_gprsn) = 'Check type of data required'.
DATA(ld_imp_gpval) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_logtext to it_logtext.

"populate fields of struture and append to itab
append wa_errortext to it_errortext. . CALL FUNCTION 'HR_UPDATE_CUM_TABLES_AU' EXPORTING imp_molga = ld_imp_molga imp_rt = ld_imp_rt imp_fixed_day_for_cumul = ld_imp_fixed_day_for_cumul * imp_currency = ld_imp_currency * log = ld_log payroll_result = ld_payroll_result imp_aper = ld_imp_aper imp_employeenumber = ld_imp_employeenumber * im_is_rt_pers = ld_im_is_rt_pers * imp_sw_ce_payroll = ld_imp_sw_ce_payroll * imp_gprsn = ld_imp_gprsn * imp_gpval = ld_imp_gpval TABLES logtext = it_logtext errortext = it_errortext CHANGING cumul_tab_all = ld_cumul_tab_all EXCEPTIONS CUMULATION_FAILED = 1 . " HR_UPDATE_CUM_TABLES_AU
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_cumul_tab_all  TYPE STRING ,
ld_imp_molga  TYPE MOLGA ,
it_logtext  TYPE STANDARD TABLE OF PLOG_TEXT ,
wa_logtext  LIKE LINE OF it_logtext,
ld_imp_rt  TYPE HRPAY99_RT ,
it_errortext  TYPE STANDARD TABLE OF PLOG_TEXT ,
wa_errortext  LIKE LINE OF it_errortext,
ld_imp_fixed_day_for_cumul  TYPE D ,
ld_imp_currency  TYPE T500C-WAERS ,
ld_log  TYPE C ,
ld_payroll_result  TYPE STRING ,
ld_imp_aper  TYPE PC2APER ,
ld_imp_employeenumber  TYPE PERNR-PERNR ,
ld_im_is_rt_pers  TYPE C ,
ld_imp_sw_ce_payroll  TYPE C ,
ld_imp_gprsn  TYPE PCCE_GPRSN ,
ld_imp_gpval  TYPE PCCE_GPRSN .

ld_cumul_tab_all = 'some text here'.
ld_imp_molga = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_logtext to it_logtext.
ld_imp_rt = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_errortext to it_errortext.
ld_imp_fixed_day_for_cumul = 'Check type of data required'.

SELECT single WAERS
FROM T500C
INTO ld_imp_currency.

ld_log = 'Check type of data required'.
ld_payroll_result = 'some text here'.
ld_imp_aper = 'Check type of data required'.

ld_imp_employeenumber = Check type of data required
ld_im_is_rt_pers = 'Check type of data required'.
ld_imp_sw_ce_payroll = 'Check type of data required'.
ld_imp_gprsn = 'Check type of data required'.
ld_imp_gpval = 'Check type of data required'.

SAP Documentation for FM HR_UPDATE_CUM_TABLES_AU


This function module is a country exit for Payroll Australia.
During retrospective calculations, the function module cumulates CRT ...See here for full SAP fm documentation

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