SAP HRPY_AVERA_GET_ACC_PERIODS Function Module for
HRPY_AVERA_GET_ACC_PERIODS is a standard hrpy avera get acc periods 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 get acc periods FM, simply by entering the name HRPY_AVERA_GET_ACC_PERIODS into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAY99_FUNCTION
Program Name: SAPLHRPAY99_FUNCTION
Main Program: SAPLHRPAY99_FUNCTION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HRPY_AVERA_GET_ACC_PERIODS 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_GET_ACC_PERIODS'".
EXPORTING
PERNR = "
MOLGA = "
APER = "
REPID = "
IMPORTING
ACC_BEGDA = "
ACC_ENDDA = "
TABLES
IWPBP = "
I51AV_A = "
I51AV_P = "
AV_IT = "
AB = "
V0 = "
AVRULES_QUOTAS = "
IWAGETYPES = "
I2006 = "
EXCEPTIONS
QUOTA_NOT_FOUND_IN_2006 = 1
IMPORTING Parameters details for HRPY_AVERA_GET_ACC_PERIODS
PERNR -
Data type: PERNR-PERNROptional: No
Call by Reference: Yes
MOLGA -
Data type: T001P-MOLGAOptional: No
Call by Reference: Yes
APER -
Data type: PC2APEROptional: No
Call by Reference: Yes
REPID -
Data type: SY-REPIDOptional: No
Call by Reference: Yes
EXPORTING Parameters details for HRPY_AVERA_GET_ACC_PERIODS
ACC_BEGDA -
Data type: HRPY_AV_QUOTAS-ACC_BEGDAOptional: No
Call by Reference: Yes
ACC_ENDDA -
Data type: HRPY_AV_QUOTAS-ACC_ENDDAOptional: No
Call by Reference: Yes
TABLES Parameters details for HRPY_AVERA_GET_ACC_PERIODS
IWPBP -
Data type: PC205Optional: No
Call by Reference: Yes
I51AV_A -
Data type: T51AV_AOptional: No
Call by Reference: Yes
I51AV_P -
Data type: T51AV_POptional: No
Call by Reference: Yes
AV_IT -
Data type: PC207Optional: No
Call by Reference: Yes
AB -
Data type: PC20IOptional: No
Call by Reference: Yes
V0 -
Data type: PC20COptional: No
Call by Reference: Yes
AVRULES_QUOTAS -
Data type: HRPY_AV_QUOTASOptional: No
Call by Reference: Yes
IWAGETYPES -
Data type: HRPY_AV_WGTYPOptional: No
Call by Reference: Yes
I2006 -
Data type: P2006Optional: No
Call by Reference: Yes
EXCEPTIONS details
QUOTA_NOT_FOUND_IN_2006 -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRPY_AVERA_GET_ACC_PERIODS 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_iwpbp | TYPE STANDARD TABLE OF PC205, " | |||
lv_pernr | TYPE PERNR-PERNR, " | |||
lv_acc_begda | TYPE HRPY_AV_QUOTAS-ACC_BEGDA, " | |||
lv_quota_not_found_in_2006 | TYPE HRPY_AV_QUOTAS, " | |||
lv_molga | TYPE T001P-MOLGA, " | |||
lt_i51av_a | TYPE STANDARD TABLE OF T51AV_A, " | |||
lv_acc_endda | TYPE HRPY_AV_QUOTAS-ACC_ENDDA, " | |||
lv_aper | TYPE PC2APER, " | |||
lt_i51av_p | TYPE STANDARD TABLE OF T51AV_P, " | |||
lt_av_it | TYPE STANDARD TABLE OF PC207, " | |||
lv_repid | TYPE SY-REPID, " | |||
lt_ab | TYPE STANDARD TABLE OF PC20I, " | |||
lt_v0 | TYPE STANDARD TABLE OF PC20C, " | |||
lt_avrules_quotas | TYPE STANDARD TABLE OF HRPY_AV_QUOTAS, " | |||
lt_iwagetypes | TYPE STANDARD TABLE OF HRPY_AV_WGTYP, " | |||
lt_i2006 | TYPE STANDARD TABLE OF P2006. " |
  CALL FUNCTION 'HRPY_AVERA_GET_ACC_PERIODS' " |
EXPORTING | ||
PERNR | = lv_pernr | |
MOLGA | = lv_molga | |
APER | = lv_aper | |
REPID | = lv_repid | |
IMPORTING | ||
ACC_BEGDA | = lv_acc_begda | |
ACC_ENDDA | = lv_acc_endda | |
TABLES | ||
IWPBP | = lt_iwpbp | |
I51AV_A | = lt_i51av_a | |
I51AV_P | = lt_i51av_p | |
AV_IT | = lt_av_it | |
AB | = lt_ab | |
V0 | = lt_v0 | |
AVRULES_QUOTAS | = lt_avrules_quotas | |
IWAGETYPES | = lt_iwagetypes | |
I2006 | = lt_i2006 | |
EXCEPTIONS | ||
QUOTA_NOT_FOUND_IN_2006 = 1 | ||
. " HRPY_AVERA_GET_ACC_PERIODS |
ABAP code using 7.40 inline data declarations to call FM HRPY_AVERA_GET_ACC_PERIODS
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_pernr). | ||||
"SELECT single ACC_BEGDA FROM HRPY_AV_QUOTAS INTO @DATA(ld_acc_begda). | ||||
"SELECT single MOLGA FROM T001P INTO @DATA(ld_molga). | ||||
"SELECT single ACC_ENDDA FROM HRPY_AV_QUOTAS INTO @DATA(ld_acc_endda). | ||||
"SELECT single REPID FROM SY INTO @DATA(ld_repid). | ||||
Search for further information about these or an SAP related objects