SAP PA03_PERIODDATES_GET Function Module for HR: Import Start and End Dates of Period for the Payroll Area









PA03_PERIODDATES_GET is a standard pa03 perioddates get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for HR: Import Start and End Dates of Period for the Payroll Area 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 pa03 perioddates get FM, simply by entering the name PA03_PERIODDATES_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function PA03_PERIODDATES_GET 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 'PA03_PERIODDATES_GET'"HR: Import Start and End Dates of Period for the Payroll Area
EXPORTING
F_ABKRS = "Payroll Area

IMPORTING
F_PERMO = "Period parameter (PERMO)
F_CURRENT_BEGDA = "Start Date of Payroll Period
F_CURRENT_ENDDA = "End date of payroll period
F_ABKRS_TEXT = "Payroll Area Text (T549T)

CHANGING
* F_CURRENT_PERIOD = "Payr.per.
* F_CURRENT_YEAR = "Pay.yr.

EXCEPTIONS
PCR_DOES_NOT_EXIST = 1 ABKRS_DOES_NOT_EXIST = 2 PERIOD_DOES_NOT_EXIST = 3
.



IMPORTING Parameters details for PA03_PERIODDATES_GET

F_ABKRS - Payroll Area

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

EXPORTING Parameters details for PA03_PERIODDATES_GET

F_PERMO - Period parameter (PERMO)

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

F_CURRENT_BEGDA - Start Date of Payroll Period

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

F_CURRENT_ENDDA - End date of payroll period

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

F_ABKRS_TEXT - Payroll Area Text (T549T)

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

CHANGING Parameters details for PA03_PERIODDATES_GET

F_CURRENT_PERIOD - Payr.per.

Data type: T569V-PABRP
Optional: Yes
Call by Reference: No ( called with pass by value option)

F_CURRENT_YEAR - Pay.yr.

Data type: T569V-PABRJ
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

PCR_DOES_NOT_EXIST - Control Record Does Not Exist

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

ABKRS_DOES_NOT_EXIST - Payroll Area does not Exist

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

PERIOD_DOES_NOT_EXIST - Payroll Period Does Not Exist

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

Copy and paste ABAP code example for PA03_PERIODDATES_GET 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_f_abkrs  TYPE T569V-ABKRS, "   
lv_f_permo  TYPE T549A-PERMO, "   
lv_f_current_period  TYPE T569V-PABRP, "   
lv_pcr_does_not_exist  TYPE T569V, "   
lv_f_current_year  TYPE T569V-PABRJ, "   
lv_f_current_begda  TYPE T549Q-BEGDA, "   
lv_abkrs_does_not_exist  TYPE T549Q, "   
lv_f_current_endda  TYPE T549Q-ENDDA, "   
lv_period_does_not_exist  TYPE T549Q, "   
lv_f_abkrs_text  TYPE T549T-ATEXT. "   

  CALL FUNCTION 'PA03_PERIODDATES_GET'  "HR: Import Start and End Dates of Period for the Payroll Area
    EXPORTING
         F_ABKRS = lv_f_abkrs
    IMPORTING
         F_PERMO = lv_f_permo
         F_CURRENT_BEGDA = lv_f_current_begda
         F_CURRENT_ENDDA = lv_f_current_endda
         F_ABKRS_TEXT = lv_f_abkrs_text
    CHANGING
         F_CURRENT_PERIOD = lv_f_current_period
         F_CURRENT_YEAR = lv_f_current_year
    EXCEPTIONS
        PCR_DOES_NOT_EXIST = 1
        ABKRS_DOES_NOT_EXIST = 2
        PERIOD_DOES_NOT_EXIST = 3
. " PA03_PERIODDATES_GET




ABAP code using 7.40 inline data declarations to call FM PA03_PERIODDATES_GET

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 ABKRS FROM T569V INTO @DATA(ld_f_abkrs).
 
"SELECT single PERMO FROM T549A INTO @DATA(ld_f_permo).
 
"SELECT single PABRP FROM T569V INTO @DATA(ld_f_current_period).
 
 
"SELECT single PABRJ FROM T569V INTO @DATA(ld_f_current_year).
 
"SELECT single BEGDA FROM T549Q INTO @DATA(ld_f_current_begda).
 
 
"SELECT single ENDDA FROM T549Q INTO @DATA(ld_f_current_endda).
 
 
"SELECT single ATEXT FROM T549T INTO @DATA(ld_f_abkrs_text).
 


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!