SAP HR_GET_CUMULATION_FOR_DATE Function Module for









HR_GET_CUMULATION_FOR_DATE is a standard hr get cumulation for date SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 get cumulation for date FM, simply by entering the name HR_GET_CUMULATION_FOR_DATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPAY99_CUMULATION
Program Name: SAPLHRPAY99_CUMULATION
Main Program: SAPLHRPAY99_CUMULATION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_GET_CUMULATION_FOR_DATE 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_GET_CUMULATION_FOR_DATE'"
EXPORTING
IMP_MOLGA = "
IMP_CUMTY = "
IMP_FIXED_DAY = "

IMPORTING
EXP_CUMNO = "
EXP_CUMYR = "
EXP_BEGDA = "
EXP_ENDDA = "

EXCEPTIONS
NO_CUMTYPAR_IN_T56C2 = 1 NO_INTERVAL_IN_T56C3 = 2
.



IMPORTING Parameters details for HR_GET_CUMULATION_FOR_DATE

IMP_MOLGA -

Data type: MOLGA
Optional: No
Call by Reference: Yes

IMP_CUMTY -

Data type: PBAS_CUMTY
Optional: No
Call by Reference: Yes

IMP_FIXED_DAY -

Data type: D
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for HR_GET_CUMULATION_FOR_DATE

EXP_CUMNO -

Data type: PBAS_CUMNO
Optional: No
Call by Reference: Yes

EXP_CUMYR -

Data type: PBAS_CUMYR
Optional: No
Call by Reference: Yes

EXP_BEGDA -

Data type: T56C3-BEGDA
Optional: No
Call by Reference: Yes

EXP_ENDDA -

Data type: T56C3-ENDDA
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_CUMTYPAR_IN_T56C2 -

Data type:
Optional: No
Call by Reference: Yes

NO_INTERVAL_IN_T56C3 -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_GET_CUMULATION_FOR_DATE 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:
lv_exp_cumno  TYPE PBAS_CUMNO, "   
lv_imp_molga  TYPE MOLGA, "   
lv_no_cumtypar_in_t56c2  TYPE MOLGA, "   
lv_exp_cumyr  TYPE PBAS_CUMYR, "   
lv_imp_cumty  TYPE PBAS_CUMTY, "   
lv_no_interval_in_t56c3  TYPE PBAS_CUMTY, "   
lv_exp_begda  TYPE T56C3-BEGDA, "   
lv_imp_fixed_day  TYPE D, "   
lv_exp_endda  TYPE T56C3-ENDDA. "   

  CALL FUNCTION 'HR_GET_CUMULATION_FOR_DATE'  "
    EXPORTING
         IMP_MOLGA = lv_imp_molga
         IMP_CUMTY = lv_imp_cumty
         IMP_FIXED_DAY = lv_imp_fixed_day
    IMPORTING
         EXP_CUMNO = lv_exp_cumno
         EXP_CUMYR = lv_exp_cumyr
         EXP_BEGDA = lv_exp_begda
         EXP_ENDDA = lv_exp_endda
    EXCEPTIONS
        NO_CUMTYPAR_IN_T56C2 = 1
        NO_INTERVAL_IN_T56C3 = 2
. " HR_GET_CUMULATION_FOR_DATE




ABAP code using 7.40 inline data declarations to call FM HR_GET_CUMULATION_FOR_DATE

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.

 
 
 
 
 
 
"SELECT single BEGDA FROM T56C3 INTO @DATA(ld_exp_begda).
 
 
"SELECT single ENDDA FROM T56C3 INTO @DATA(ld_exp_endda).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!