SAP HRPY_AVERA_LOOP_AT_WEEK Function Module for









HRPY_AVERA_LOOP_AT_WEEK is a standard hrpy avera loop at week 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 hrpy avera loop at week FM, simply by entering the name HRPY_AVERA_LOOP_AT_WEEK into the relevant SAP transaction such as SE37 or SE38.

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



Function HRPY_AVERA_LOOP_AT_WEEK 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 'HRPY_AVERA_LOOP_AT_WEEK'"
EXPORTING
MAX_WEEKS = "
AV_ENDDA_WEEK = "
WITH_CURRENT_PERIOD = "
APER = "
EMPLOYEE_NUMBER = "

TABLES
I51AV_A_WEEK = "
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 HRPY_AVERA_LOOP_AT_WEEK

MAX_WEEKS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

AV_ENDDA_WEEK -

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: PC2APER
Optional: No
Call by Reference: No ( called with pass by value option)

EMPLOYEE_NUMBER -

Data type: PERNR-PERNR
Optional: No
Call by Reference: Yes

TABLES Parameters details for HRPY_AVERA_LOOP_AT_WEEK

I51AV_A_WEEK -

Data type: T51AV_A
Optional: No
Call by Reference: No ( called with pass by value option)

RESULT_REL_PERIOD -

Data type: HRPY_AV_REL_PERIOD
Optional: 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: P0000
Optional: No
Call by Reference: Yes

P0001 -

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

I51AV_R -

Data type: T51AV_R
Optional: No
Call by Reference: No ( called with pass by value option)

I51AV_ROC -

Data type: T51AV_ROC
Optional: No
Call by Reference: No ( called with pass by value option)

I51AV_B -

Data type: T51AV_B
Optional: No
Call by Reference: No ( called with pass by value option)

I51AV_C -

Data type: T51AV_C
Optional: No
Call by Reference: No ( called with pass by value option)

RGDIR -

Data type: PC261
Optional: No
Call by Reference: No ( called with pass by value option)

RESULTS -

Data type: HRPAY99_TAB_OF_RESULTS
Optional: No
Call by Reference: No ( called with pass by value option)

CUMULATION -

Data type: HRPY_AV_CUMULATION
Optional: No
Call by Reference: No ( called with pass by value option)

RESULT_REL_PAYR_ALL -

Data type: HRPY_AV_REL_PAYR
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HRPY_AVERA_LOOP_AT_WEEK 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_weeks  TYPE STRING, "   
lt_i51av_a_week  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_week  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 'HRPY_AVERA_LOOP_AT_WEEK'  "
    EXPORTING
         MAX_WEEKS = lv_max_weeks
         AV_ENDDA_WEEK = lv_av_endda_week
         WITH_CURRENT_PERIOD = lv_with_current_period
         APER = lv_aper
         EMPLOYEE_NUMBER = lv_employee_number
    TABLES
         I51AV_A_WEEK = lt_i51av_a_week
         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
. " HRPY_AVERA_LOOP_AT_WEEK




ABAP code using 7.40 inline data declarations to call FM HRPY_AVERA_LOOP_AT_WEEK

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



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!