SAP HRIQ_STUDENT_HEADER_DATA_SET Function Module for Student Header: Import Data in Header Program
HRIQ_STUDENT_HEADER_DATA_SET is a standard hriq student header data set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Student Header: Import Data in Header Program 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 student header data set FM, simply by entering the name HRIQ_STUDENT_HEADER_DATA_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00STUDENTHEADER
Program Name: SAPLHRPIQ00STUDENTHEADER
Main Program: SAPLHRPIQ00STUDENTHEADER
Appliation area: H
Release date: 23-Jan-2003
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRIQ_STUDENT_HEADER_DATA_SET 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_STUDENT_HEADER_DATA_SET'"Student Header: Import Data in Header Program.
EXPORTING
* HEADERCLASS = "Transaction Class for Student Header
* LABEL_MODE = 'L' "Name: L-Long (20), M-Medium (15)
* SUPPRESS_IMAGE_DISPLAY = "Suppress Display of Student Photo in Backend: Required by Web UI
PLVAR = "Plan Version
ST_OBJID = "Student
* CS_OBJID = "Default Setting: Data for this Study Object
* SC_OBJID = "Default Setting: Data for this Program
* DATE = SY-DATUM "Key Date Used to Read Data
* READ_FROM_OM_BUFFER = "Read Data from OM Buffer
* FORCE_REFRESH = "Read Data Again
* SUMMARIZED = "'X' = Only Student Number and Name
IMPORTING
HEADER_REPID = "Program Name of Header Screen
HEADER_DYNNR = "Number of Header Screen
IMPORTING Parameters details for HRIQ_STUDENT_HEADER_DATA_SET
HEADERCLASS - Transaction Class for Student Header
Data type: PIQSTHEADERCLASSOptional: Yes
Call by Reference: No ( called with pass by value option)
LABEL_MODE - Name: L-Long (20), M-Medium (15)
Data type: CHAR1Default: 'L'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_IMAGE_DISPLAY - Suppress Display of Student Photo in Backend: Required by Web UI
Data type: XFELDOptional: Yes
Call by Reference: Yes
PLVAR - Plan Version
Data type: PLOG-PLVAROptional: No
Call by Reference: No ( called with pass by value option)
ST_OBJID - Student
Data type: PLOG-OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
CS_OBJID - Default Setting: Data for this Study Object
Data type: PIQCSOBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
SC_OBJID - Default Setting: Data for this Program
Data type: PIQSCOBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
DATE - Key Date Used to Read Data
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_FROM_OM_BUFFER - Read Data from OM Buffer
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
FORCE_REFRESH - Read Data Again
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
SUMMARIZED - 'X' = Only Student Number and Name
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRIQ_STUDENT_HEADER_DATA_SET
HEADER_REPID - Program Name of Header Screen
Data type: SY-REPIDOptional: No
Call by Reference: No ( called with pass by value option)
HEADER_DYNNR - Number of Header Screen
Data type: SY-DYNNROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRIQ_STUDENT_HEADER_DATA_SET 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_headerclass | TYPE PIQSTHEADERCLASS, " | |||
| lv_header_repid | TYPE SY-REPID, " | |||
| lv_label_mode | TYPE CHAR1, " 'L' | |||
| lv_suppress_image_display | TYPE XFELD, " | |||
| lv_plvar | TYPE PLOG-PLVAR, " | |||
| lv_header_dynnr | TYPE SY-DYNNR, " | |||
| lv_st_objid | TYPE PLOG-OBJID, " | |||
| lv_cs_objid | TYPE PIQCSOBJID, " | |||
| lv_sc_objid | TYPE PIQSCOBJID, " | |||
| lv_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_read_from_om_buffer | TYPE FLAG, " | |||
| lv_force_refresh | TYPE FLAG, " | |||
| lv_summarized | TYPE FLAG. " |
|   CALL FUNCTION 'HRIQ_STUDENT_HEADER_DATA_SET' "Student Header: Import Data in Header Program |
| EXPORTING | ||
| HEADERCLASS | = lv_headerclass | |
| LABEL_MODE | = lv_label_mode | |
| SUPPRESS_IMAGE_DISPLAY | = lv_suppress_image_display | |
| PLVAR | = lv_plvar | |
| ST_OBJID | = lv_st_objid | |
| CS_OBJID | = lv_cs_objid | |
| SC_OBJID | = lv_sc_objid | |
| DATE | = lv_date | |
| READ_FROM_OM_BUFFER | = lv_read_from_om_buffer | |
| FORCE_REFRESH | = lv_force_refresh | |
| SUMMARIZED | = lv_summarized | |
| IMPORTING | ||
| HEADER_REPID | = lv_header_repid | |
| HEADER_DYNNR | = lv_header_dynnr | |
| . " HRIQ_STUDENT_HEADER_DATA_SET | ||
ABAP code using 7.40 inline data declarations to call FM HRIQ_STUDENT_HEADER_DATA_SET
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 REPID FROM SY INTO @DATA(ld_header_repid). | ||||
| DATA(ld_label_mode) | = 'L'. | |||
| "SELECT single PLVAR FROM PLOG INTO @DATA(ld_plvar). | ||||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_header_dynnr). | ||||
| "SELECT single OBJID FROM PLOG INTO @DATA(ld_st_objid). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_date). | ||||
| DATA(ld_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects