SAP HRIQ_READ_PROGRAM_INFORMATION Function Module for Read academic and session data for program of study
HRIQ_READ_PROGRAM_INFORMATION is a standard hriq read program information 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 and session data 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 read program information FM, simply by entering the name HRIQ_READ_PROGRAM_INFORMATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00ACINFO
Program Name: SAPLHRPIQ00ACINFO
Main Program: SAPLHRPIQ00ACINFO
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function HRIQ_READ_PROGRAM_INFORMATION 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_READ_PROGRAM_INFORMATION'"Read academic and session data for program of study.
EXPORTING
* IV_PLVAR = '01' "Plan version
IV_SCOBJID = "Object ID
IV_KEYDATE = "Key Date for Student Data
* IV_STOBJID = "Objekt-ID des Studenten
IMPORTING
ES_PROGRAM_OF_STUDY = "Interface structure for fee calculation ( academic year )
TABLES
ET_ERROR = "Return parameter for error message.
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLHRPIQ00ACINFO_001 Read information about student module
EXIT_SAPLHRPIQ00ACINFO_002 Read students' general information
EXIT_SAPLHRPIQ00ACINFO_003 Read students' registration information
EXIT_SAPLHRPIQ00ACINFO_004 Read academic and session data for program of study
EXIT_SAPLHRPIQ00ACINFO_005 Read booking information of the student module
EXIT_SAPLHRPIQ00ACINFO_006 Read business event data(customer-exit)
IMPORTING Parameters details for HRIQ_READ_PROGRAM_INFORMATION
IV_PLVAR - Plan version
Data type: P1000-PLVARDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SCOBJID - Object ID
Data type: PIQ_REG_PROGRAM_OF_STUDY-SCOBJIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_KEYDATE - Key Date for Student Data
Data type: PIQ_PROGRAM_OF_STUDY-KEYDATEOptional: No
Call by Reference: No ( called with pass by value option)
IV_STOBJID - Objekt-ID des Studenten
Data type: PIQST_OBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRIQ_READ_PROGRAM_INFORMATION
ES_PROGRAM_OF_STUDY - Interface structure for fee calculation ( academic year )
Data type: PIQ_PROGRAM_OF_STUDYOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HRIQ_READ_PROGRAM_INFORMATION
ET_ERROR - Return parameter for error message.
Data type: PIQ_ERROR_STRUCTUREOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRIQ_READ_PROGRAM_INFORMATION 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_et_error | TYPE STANDARD TABLE OF PIQ_ERROR_STRUCTURE, " | |||
| lv_iv_plvar | TYPE P1000-PLVAR, " '01' | |||
| lv_es_program_of_study | TYPE PIQ_PROGRAM_OF_STUDY, " | |||
| lv_iv_scobjid | TYPE PIQ_REG_PROGRAM_OF_STUDY-SCOBJID, " | |||
| lv_iv_keydate | TYPE PIQ_PROGRAM_OF_STUDY-KEYDATE, " | |||
| lv_iv_stobjid | TYPE PIQST_OBJID. " |
|   CALL FUNCTION 'HRIQ_READ_PROGRAM_INFORMATION' "Read academic and session data for program of study |
| EXPORTING | ||
| IV_PLVAR | = lv_iv_plvar | |
| IV_SCOBJID | = lv_iv_scobjid | |
| IV_KEYDATE | = lv_iv_keydate | |
| IV_STOBJID | = lv_iv_stobjid | |
| IMPORTING | ||
| ES_PROGRAM_OF_STUDY | = lv_es_program_of_study | |
| TABLES | ||
| ET_ERROR | = lt_et_error | |
| . " HRIQ_READ_PROGRAM_INFORMATION | ||
ABAP code using 7.40 inline data declarations to call FM HRIQ_READ_PROGRAM_INFORMATION
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 PLVAR FROM P1000 INTO @DATA(ld_iv_plvar). | ||||
| DATA(ld_iv_plvar) | = '01'. | |||
| "SELECT single SCOBJID FROM PIQ_REG_PROGRAM_OF_STUDY INTO @DATA(ld_iv_scobjid). | ||||
| "SELECT single KEYDATE FROM PIQ_PROGRAM_OF_STUDY INTO @DATA(ld_iv_keydate). | ||||
Search for further information about these or an SAP related objects