SAP HR_UPDATE_CUM_TABLES_CA Function Module for Perform CA specific cumulations
HR_UPDATE_CUM_TABLES_CA is a standard hr update cum tables ca SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Perform CA specific cumulations processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for hr update cum tables ca FM, simply by entering the name HR_UPDATE_CUM_TABLES_CA into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAYCA01
Program Name: SAPLHRPAYCA01
Main Program: SAPLHRPAYCA01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_UPDATE_CUM_TABLES_CA pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'HR_UPDATE_CUM_TABLES_CA'"Perform CA specific cumulations.
EXPORTING
IMP_MOLGA = "Country Grouping
* IMP_SW_CE_PAYROLL = ' ' "CE Abrechnung
* IMP_GPRSN = "Gruppierungsgrund für Beschäftigungsverträge
* IMP_GPVAL = "Gruppierungsgrund für Beschäftigungsverträge
IMP_RT = "Results table
IMP_FIXED_DAY_FOR_CUMUL = "HR-PAY: Structure for table RT
* IMP_CURRENCY = "Currency key
* LOG = "
PAYROLL_RESULT = "
IMP_APER = "Struktur der Tabelle APER in der Personalabrechnung
IMP_EMPLOYEENUMBER = "Personnel number
* IM_IS_RT_PERS = "Person flag
CHANGING
CUMUL_TAB_ALL = "
TABLES
LOGTEXT = "Structure for HR Function Log
ERRORTEXT = "Structure for HR Function Log
EXCEPTIONS
CUMULATION_FAILED = 1
IMPORTING Parameters details for HR_UPDATE_CUM_TABLES_CA
IMP_MOLGA - Country Grouping
Data type: MOLGAOptional: No
Call by Reference: Yes
IMP_SW_CE_PAYROLL - CE Abrechnung
Data type: CDefault: ' '
Optional: Yes
Call by Reference: Yes
IMP_GPRSN - Gruppierungsgrund für Beschäftigungsverträge
Data type: PCCE_GPRSNOptional: Yes
Call by Reference: Yes
IMP_GPVAL - Gruppierungsgrund für Beschäftigungsverträge
Data type: PCCE_GPRSNOptional: Yes
Call by Reference: Yes
IMP_RT - Results table
Data type: HRPAY99_RTOptional: No
Call by Reference: Yes
IMP_FIXED_DAY_FOR_CUMUL - HR-PAY: Structure for table RT
Data type: DOptional: No
Call by Reference: Yes
IMP_CURRENCY - Currency key
Data type: T500C-WAERSOptional: Yes
Call by Reference: Yes
LOG -
Data type: COptional: Yes
Call by Reference: Yes
PAYROLL_RESULT -
Data type:Optional: No
Call by Reference: Yes
IMP_APER - Struktur der Tabelle APER in der Personalabrechnung
Data type: PC2APEROptional: No
Call by Reference: Yes
IMP_EMPLOYEENUMBER - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: Yes
IM_IS_RT_PERS - Person flag
Data type: COptional: Yes
Call by Reference: Yes
CHANGING Parameters details for HR_UPDATE_CUM_TABLES_CA
CUMUL_TAB_ALL -
Data type:Optional: No
Call by Reference: Yes
TABLES Parameters details for HR_UPDATE_CUM_TABLES_CA
LOGTEXT - Structure for HR Function Log
Data type: PLOG_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
ERRORTEXT - Structure for HR Function Log
Data type: PLOG_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CUMULATION_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_UPDATE_CUM_TABLES_CA Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_logtext | TYPE STANDARD TABLE OF PLOG_TEXT, " | |||
| lv_imp_molga | TYPE MOLGA, " | |||
| lv_cumul_tab_all | TYPE MOLGA, " | |||
| lv_cumulation_failed | TYPE MOLGA, " | |||
| lv_imp_sw_ce_payroll | TYPE C, " ' ' | |||
| lv_imp_gprsn | TYPE PCCE_GPRSN, " | |||
| lv_imp_gpval | TYPE PCCE_GPRSN, " | |||
| lv_imp_rt | TYPE HRPAY99_RT, " | |||
| lt_errortext | TYPE STANDARD TABLE OF PLOG_TEXT, " | |||
| lv_imp_fixed_day_for_cumul | TYPE D, " | |||
| lv_imp_currency | TYPE T500C-WAERS, " | |||
| lv_log | TYPE C, " | |||
| lv_payroll_result | TYPE C, " | |||
| lv_imp_aper | TYPE PC2APER, " | |||
| lv_imp_employeenumber | TYPE PERNR-PERNR, " | |||
| lv_im_is_rt_pers | TYPE C. " |
|   CALL FUNCTION 'HR_UPDATE_CUM_TABLES_CA' "Perform CA specific cumulations |
| EXPORTING | ||
| IMP_MOLGA | = lv_imp_molga | |
| IMP_SW_CE_PAYROLL | = lv_imp_sw_ce_payroll | |
| IMP_GPRSN | = lv_imp_gprsn | |
| IMP_GPVAL | = lv_imp_gpval | |
| IMP_RT | = lv_imp_rt | |
| IMP_FIXED_DAY_FOR_CUMUL | = lv_imp_fixed_day_for_cumul | |
| IMP_CURRENCY | = lv_imp_currency | |
| LOG | = lv_log | |
| PAYROLL_RESULT | = lv_payroll_result | |
| IMP_APER | = lv_imp_aper | |
| IMP_EMPLOYEENUMBER | = lv_imp_employeenumber | |
| IM_IS_RT_PERS | = lv_im_is_rt_pers | |
| CHANGING | ||
| CUMUL_TAB_ALL | = lv_cumul_tab_all | |
| TABLES | ||
| LOGTEXT | = lt_logtext | |
| ERRORTEXT | = lt_errortext | |
| EXCEPTIONS | ||
| CUMULATION_FAILED = 1 | ||
| . " HR_UPDATE_CUM_TABLES_CA | ||
ABAP code using 7.40 inline data declarations to call FM HR_UPDATE_CUM_TABLES_CA
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_imp_sw_ce_payroll) | = ' '. | |||
| "SELECT single WAERS FROM T500C INTO @DATA(ld_imp_currency). | ||||
| "SELECT single PERNR FROM PERNR INTO @DATA(ld_imp_employeenumber). | ||||
Search for further information about these or an SAP related objects