SAP HRIQ_ACAD_PROGRAM_DATES_GET Function Module for Read Academic Periods for Program of Study
HRIQ_ACAD_PROGRAM_DATES_GET is a standard hriq acad program dates 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 Read Academic Periods for Program of Study 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 hriq acad program dates get FM, simply by entering the name HRIQ_ACAD_PROGRAM_DATES_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00ACADCALENDAR2
Program Name: SAPLHRPIQ00ACADCALENDAR2
Main Program: SAPLHRPIQ00ACADCALENDAR2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRIQ_ACAD_PROGRAM_DATES_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 'HRIQ_ACAD_PROGRAM_DATES_GET'"Read Academic Periods for Program of Study.
EXPORTING
* IV_PLVAR = "Plan Version
* IV_TIMEPOINT = "Callup Point
IV_PROGRAMID = "Program ID
* IV_TIMELIMIT_FROM = "Valid-From Date
* IV_TIMELIMIT_TO = "Valid-To Date
* IV_ACAD_YEAR = "Academic Year
* IV_ACAD_SESSION = "Academic Session
* IT_YEARPERIOD = "Table Type for Academic Year/Session Combinations
* IV_READ_TEXTS = 'X' "
* IV_ACTIVITY = "Activity
IMPORTING
EV_VARID = "Session Variant
EV_VARID_TXT = "Session Variant (Description)
EV_VARIDUNIT = "Primary Unit for Session Variant
EV_VARIDUNIT_TXT = "
EV_PERGROUP = "
EV_PERGROUP_TXT = "
ET_PERIODDATA = "Period Data
EXCEPTIONS
INVALID_PLVAR = 1 NO_PROGRAM_DATA_FOUND = 2 INVALID_SESSION = 3 NO_TIMELIMITS_FOUND = 4
IMPORTING Parameters details for HRIQ_ACAD_PROGRAM_DATES_GET
IV_PLVAR - Plan Version
Data type: PLVAROptional: Yes
Call by Reference: Yes
IV_TIMEPOINT - Callup Point
Data type: PIQTIMEPOINTOptional: Yes
Call by Reference: Yes
IV_PROGRAMID - Program ID
Data type: PIQSCOBJIDOptional: No
Call by Reference: Yes
IV_TIMELIMIT_FROM - Valid-From Date
Data type: BEGDAOptional: Yes
Call by Reference: Yes
IV_TIMELIMIT_TO - Valid-To Date
Data type: ENDDAOptional: Yes
Call by Reference: Yes
IV_ACAD_YEAR - Academic Year
Data type: PIQPERYROptional: Yes
Call by Reference: Yes
IV_ACAD_SESSION - Academic Session
Data type: PIQPERIDOptional: Yes
Call by Reference: Yes
IT_YEARPERIOD - Table Type for Academic Year/Session Combinations
Data type: PIQSEARCHYEARPRD_TABOptional: Yes
Call by Reference: Yes
IV_READ_TEXTS -
Data type: PIQFLAGDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_ACTIVITY - Activity
Data type: PIQPROCESSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HRIQ_ACAD_PROGRAM_DATES_GET
EV_VARID - Session Variant
Data type: PIQVARIDOptional: No
Call by Reference: Yes
EV_VARID_TXT - Session Variant (Description)
Data type: T7PIQVARYT-VARITOptional: No
Call by Reference: Yes
EV_VARIDUNIT - Primary Unit for Session Variant
Data type: T7PIQVARY-VARIDUNITOptional: No
Call by Reference: Yes
EV_VARIDUNIT_TXT -
Data type: TEXT25Optional: No
Call by Reference: Yes
EV_PERGROUP -
Data type: PIQPERGROUPOptional: No
Call by Reference: Yes
EV_PERGROUP_TXT -
Data type: PIQPERGROUPTOptional: No
Call by Reference: Yes
ET_PERIODDATA - Period Data
Data type: PIQPERIODDATA_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_PLVAR - Invalid plan version
Data type:Optional: No
Call by Reference: Yes
NO_PROGRAM_DATA_FOUND -
Data type:Optional: No
Call by Reference: Yes
INVALID_SESSION -
Data type:Optional: No
Call by Reference: Yes
NO_TIMELIMITS_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRIQ_ACAD_PROGRAM_DATES_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_ev_varid | TYPE PIQVARID, " | |||
| lv_iv_plvar | TYPE PLVAR, " | |||
| lv_invalid_plvar | TYPE PLVAR, " | |||
| lv_iv_timepoint | TYPE PIQTIMEPOINT, " | |||
| lv_ev_varid_txt | TYPE T7PIQVARYT-VARIT, " | |||
| lv_iv_programid | TYPE PIQSCOBJID, " | |||
| lv_no_program_data_found | TYPE PIQSCOBJID, " | |||
| lv_ev_varidunit | TYPE T7PIQVARY-VARIDUNIT, " | |||
| lv_invalid_session | TYPE T7PIQVARY, " | |||
| lv_iv_timelimit_from | TYPE BEGDA, " | |||
| lv_iv_timelimit_to | TYPE ENDDA, " | |||
| lv_ev_varidunit_txt | TYPE TEXT25, " | |||
| lv_no_timelimits_found | TYPE TEXT25, " | |||
| lv_ev_pergroup | TYPE PIQPERGROUP, " | |||
| lv_iv_acad_year | TYPE PIQPERYR, " | |||
| lv_ev_pergroup_txt | TYPE PIQPERGROUPT, " | |||
| lv_iv_acad_session | TYPE PIQPERID, " | |||
| lv_et_perioddata | TYPE PIQPERIODDATA_T, " | |||
| lv_it_yearperiod | TYPE PIQSEARCHYEARPRD_TAB, " | |||
| lv_iv_read_texts | TYPE PIQFLAG, " 'X' | |||
| lv_iv_activity | TYPE PIQPROCESS. " |
|   CALL FUNCTION 'HRIQ_ACAD_PROGRAM_DATES_GET' "Read Academic Periods for Program of Study |
| EXPORTING | ||
| IV_PLVAR | = lv_iv_plvar | |
| IV_TIMEPOINT | = lv_iv_timepoint | |
| IV_PROGRAMID | = lv_iv_programid | |
| IV_TIMELIMIT_FROM | = lv_iv_timelimit_from | |
| IV_TIMELIMIT_TO | = lv_iv_timelimit_to | |
| IV_ACAD_YEAR | = lv_iv_acad_year | |
| IV_ACAD_SESSION | = lv_iv_acad_session | |
| IT_YEARPERIOD | = lv_it_yearperiod | |
| IV_READ_TEXTS | = lv_iv_read_texts | |
| IV_ACTIVITY | = lv_iv_activity | |
| IMPORTING | ||
| EV_VARID | = lv_ev_varid | |
| EV_VARID_TXT | = lv_ev_varid_txt | |
| EV_VARIDUNIT | = lv_ev_varidunit | |
| EV_VARIDUNIT_TXT | = lv_ev_varidunit_txt | |
| EV_PERGROUP | = lv_ev_pergroup | |
| EV_PERGROUP_TXT | = lv_ev_pergroup_txt | |
| ET_PERIODDATA | = lv_et_perioddata | |
| EXCEPTIONS | ||
| INVALID_PLVAR = 1 | ||
| NO_PROGRAM_DATA_FOUND = 2 | ||
| INVALID_SESSION = 3 | ||
| NO_TIMELIMITS_FOUND = 4 | ||
| . " HRIQ_ACAD_PROGRAM_DATES_GET | ||
ABAP code using 7.40 inline data declarations to call FM HRIQ_ACAD_PROGRAM_DATES_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 VARIT FROM T7PIQVARYT INTO @DATA(ld_ev_varid_txt). | ||||
| "SELECT single VARIDUNIT FROM T7PIQVARY INTO @DATA(ld_ev_varidunit). | ||||
| DATA(ld_iv_read_texts) | = 'X'. | |||
Search for further information about these or an SAP related objects