SAP HR_RU_AVERA_LOOP_AT_MONTH Function Module for obsolete
HR_RU_AVERA_LOOP_AT_MONTH is a standard hr ru avera loop at month SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for obsolete 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 ru avera loop at month FM, simply by entering the name HR_RU_AVERA_LOOP_AT_MONTH into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAYRU_PAYROLL_AVERAGES
Program Name: SAPLHRPAYRU_PAYROLL_AVERAGES
Main Program: SAPLHRPAYRU_PAYROLL_AVERAGES
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_RU_AVERA_LOOP_AT_MONTH 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_RU_AVERA_LOOP_AT_MONTH'"obsolete.
EXPORTING
MAX_MONTH = "
AV_ENDDA_MONTH = "
WITH_CURRENT_PERIOD = "
APER = "
EMPLOYEE_NUMBER = "
TABLES
I51AV_A_MONTH = "
RESULT_REL_PERIOD = "
DATUMSANGABE = "
P0000 = "
P0001 = "
I51AV_R = "
I51AV_ROC = "
I51AV_B = "
I51AV_C = "
RGDIR = "
RESULTS = "
CUMULATION = "
RESULT_REL_PAYR_ALL = "
IMPORTING Parameters details for HR_RU_AVERA_LOOP_AT_MONTH
MAX_MONTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AV_ENDDA_MONTH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WITH_CURRENT_PERIOD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
APER -
Data type: PC2APEROptional: No
Call by Reference: No ( called with pass by value option)
EMPLOYEE_NUMBER -
Data type: PERNR-PERNROptional: No
Call by Reference: Yes
TABLES Parameters details for HR_RU_AVERA_LOOP_AT_MONTH
I51AV_A_MONTH -
Data type: T51AV_AOptional: No
Call by Reference: No ( called with pass by value option)
RESULT_REL_PERIOD -
Data type: HRPY_AV_REL_PERIODOptional: No
Call by Reference: No ( called with pass by value option)
DATUMSANGABE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
P0000 -
Data type: P0000Optional: No
Call by Reference: No ( called with pass by value option)
P0001 -
Data type: P0001Optional: No
Call by Reference: No ( called with pass by value option)
I51AV_R -
Data type: T51AV_ROptional: No
Call by Reference: No ( called with pass by value option)
I51AV_ROC -
Data type: T51AV_ROCOptional: No
Call by Reference: No ( called with pass by value option)
I51AV_B -
Data type: T51AV_BOptional: No
Call by Reference: No ( called with pass by value option)
I51AV_C -
Data type: T51AV_COptional: No
Call by Reference: No ( called with pass by value option)
RGDIR -
Data type: PC261Optional: No
Call by Reference: No ( called with pass by value option)
RESULTS -
Data type: HRPAY99_TAB_OF_RESULTSOptional: No
Call by Reference: No ( called with pass by value option)
CUMULATION -
Data type: HRPY_AV_CUMULATIONOptional: No
Call by Reference: No ( called with pass by value option)
RESULT_REL_PAYR_ALL -
Data type: HRPY_AV_REL_PAYROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_RU_AVERA_LOOP_AT_MONTH 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_max_month | TYPE STRING, " | |||
lt_i51av_a_month | TYPE STANDARD TABLE OF T51AV_A, " | |||
lt_result_rel_period | TYPE STANDARD TABLE OF HRPY_AV_REL_PERIOD, " | |||
lt_datumsangabe | TYPE STANDARD TABLE OF HRPY_AV_REL_PERIOD, " | |||
lt_p0000 | TYPE STANDARD TABLE OF P0000, " | |||
lt_p0001 | TYPE STANDARD TABLE OF P0001, " | |||
lt_i51av_r | TYPE STANDARD TABLE OF T51AV_R, " | |||
lv_av_endda_month | TYPE T51AV_R, " | |||
lt_i51av_roc | TYPE STANDARD TABLE OF T51AV_ROC, " | |||
lv_with_current_period | TYPE T51AV_ROC, " | |||
lv_aper | TYPE PC2APER, " | |||
lt_i51av_b | TYPE STANDARD TABLE OF T51AV_B, " | |||
lt_i51av_c | TYPE STANDARD TABLE OF T51AV_C, " | |||
lv_employee_number | TYPE PERNR-PERNR, " | |||
lt_rgdir | TYPE STANDARD TABLE OF PC261, " | |||
lt_results | TYPE STANDARD TABLE OF HRPAY99_TAB_OF_RESULTS, " | |||
lt_cumulation | TYPE STANDARD TABLE OF HRPY_AV_CUMULATION, " | |||
lt_result_rel_payr_all | TYPE STANDARD TABLE OF HRPY_AV_REL_PAYR. " |
  CALL FUNCTION 'HR_RU_AVERA_LOOP_AT_MONTH' "obsolete |
EXPORTING | ||
MAX_MONTH | = lv_max_month | |
AV_ENDDA_MONTH | = lv_av_endda_month | |
WITH_CURRENT_PERIOD | = lv_with_current_period | |
APER | = lv_aper | |
EMPLOYEE_NUMBER | = lv_employee_number | |
TABLES | ||
I51AV_A_MONTH | = lt_i51av_a_month | |
RESULT_REL_PERIOD | = lt_result_rel_period | |
DATUMSANGABE | = lt_datumsangabe | |
P0000 | = lt_p0000 | |
P0001 | = lt_p0001 | |
I51AV_R | = lt_i51av_r | |
I51AV_ROC | = lt_i51av_roc | |
I51AV_B | = lt_i51av_b | |
I51AV_C | = lt_i51av_c | |
RGDIR | = lt_rgdir | |
RESULTS | = lt_results | |
CUMULATION | = lt_cumulation | |
RESULT_REL_PAYR_ALL | = lt_result_rel_payr_all | |
. " HR_RU_AVERA_LOOP_AT_MONTH |
ABAP code using 7.40 inline data declarations to call FM HR_RU_AVERA_LOOP_AT_MONTH
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 PERNR FROM PERNR INTO @DATA(ld_employee_number). | ||||
Search for further information about these or an SAP related objects