SAP HR_E_GET_DATES_PLUS_N_PERIODS Function Module for
HR_E_GET_DATES_PLUS_N_PERIODS is a standard hr e get dates plus n 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 hr e get dates plus n periods FM, simply by entering the name HR_E_GET_DATES_PLUS_N_PERIODS into the relevant SAP transaction such as SE37 or SE38.
Function Group: 34CU
Program Name: SAPL34CU
Main Program: SAPL34CU
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_E_GET_DATES_PLUS_N_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 'HR_E_GET_DATES_PLUS_N_PERIODS'".
EXPORTING
P_ABKRS = "
P_ACT_PERI = "
P_ACT_YEAR = "
P_N = "
IMPORTING
P_BEGDATE = "
P_ENDDATE = "
E_YEAR = "
E_PERI = "
EXCEPTIONS
ENTRY_NOT_FOUND = 1
IMPORTING Parameters details for HR_E_GET_DATES_PLUS_N_PERIODS
P_ABKRS -
Data type: T549A-ABKRSOptional: No
Call by Reference: No ( called with pass by value option)
P_ACT_PERI -
Data type: T549Q-PABRPOptional: No
Call by Reference: No ( called with pass by value option)
P_ACT_YEAR -
Data type: T549Q-PABRJOptional: No
Call by Reference: No ( called with pass by value option)
P_N -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_E_GET_DATES_PLUS_N_PERIODS
P_BEGDATE -
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
P_ENDDATE -
Data type: DOptional: No
Call by Reference: No ( called with pass by value option)
E_YEAR -
Data type: T549Q-PABRJOptional: No
Call by Reference: No ( called with pass by value option)
E_PERI -
Data type: T549Q-PABRPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ENTRY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_E_GET_DATES_PLUS_N_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: | ||||
lv_p_abkrs | TYPE T549A-ABKRS, " | |||
lv_p_begdate | TYPE D, " | |||
lv_entry_not_found | TYPE D, " | |||
lv_p_enddate | TYPE D, " | |||
lv_p_act_peri | TYPE T549Q-PABRP, " | |||
lv_e_year | TYPE T549Q-PABRJ, " | |||
lv_p_act_year | TYPE T549Q-PABRJ, " | |||
lv_p_n | TYPE I, " | |||
lv_e_peri | TYPE T549Q-PABRP. " |
  CALL FUNCTION 'HR_E_GET_DATES_PLUS_N_PERIODS' " |
EXPORTING | ||
P_ABKRS | = lv_p_abkrs | |
P_ACT_PERI | = lv_p_act_peri | |
P_ACT_YEAR | = lv_p_act_year | |
P_N | = lv_p_n | |
IMPORTING | ||
P_BEGDATE | = lv_p_begdate | |
P_ENDDATE | = lv_p_enddate | |
E_YEAR | = lv_e_year | |
E_PERI | = lv_e_peri | |
EXCEPTIONS | ||
ENTRY_NOT_FOUND = 1 | ||
. " HR_E_GET_DATES_PLUS_N_PERIODS |
ABAP code using 7.40 inline data declarations to call FM HR_E_GET_DATES_PLUS_N_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 ABKRS FROM T549A INTO @DATA(ld_p_abkrs). | ||||
"SELECT single PABRP FROM T549Q INTO @DATA(ld_p_act_peri). | ||||
"SELECT single PABRJ FROM T549Q INTO @DATA(ld_e_year). | ||||
"SELECT single PABRJ FROM T549Q INTO @DATA(ld_p_act_year). | ||||
"SELECT single PABRP FROM T549Q INTO @DATA(ld_e_peri). | ||||
Search for further information about these or an SAP related objects