SAP HRIQ_STUDY_OBJECT_CREATE Function Module for Study: Create New Object CS with Relationships for ST and SC
HRIQ_STUDY_OBJECT_CREATE is a standard hriq study object create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Study: Create New Object CS with Relationships for ST and SC 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 study object create FM, simply by entering the name HRIQ_STUDY_OBJECT_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00STUDENT_REGIST_SAVE
Program Name: SAPLHRPIQ00STUDENT_REGIST_SAVE
Main Program: SAPLHRPIQ00STUDENT_REGIST_SAVE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRIQ_STUDY_OBJECT_CREATE 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_STUDY_OBJECT_CREATE'"Study: Create New Object CS with Relationships for ST and SC.
EXPORTING
IV_PLVAR = "Plan Version
IV_ST_OBJID = "Object ID of Student
IV_SC_OBJID = "Program ID
* IV_VTASK = 'B' "Type of update
* IV_TESTRUN = "General Indicator
IMPORTING
EV_CS_OBJID = "Object ID
EV_CS_BEGDA = "Start Date
EV_CS_ENDDA = "End Date
EV_CS_EXISTED = "
EXCEPTIONS
INTERNAL_ERROR = 1
IMPORTING Parameters details for HRIQ_STUDY_OBJECT_CREATE
IV_PLVAR - Plan Version
Data type: PLOG-PLVAROptional: No
Call by Reference: No ( called with pass by value option)
IV_ST_OBJID - Object ID of Student
Data type: PIQST_OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_SC_OBJID - Program ID
Data type: PIQSCOBJIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_VTASK - Type of update
Data type: HRRHAP-VTASKDefault: 'B'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_TESTRUN - General Indicator
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRIQ_STUDY_OBJECT_CREATE
EV_CS_OBJID - Object ID
Data type: PIQSCOBJIDOptional: No
Call by Reference: No ( called with pass by value option)
EV_CS_BEGDA - Start Date
Data type: BEGDATUMOptional: No
Call by Reference: No ( called with pass by value option)
EV_CS_ENDDA - End Date
Data type: ENDDATUMOptional: No
Call by Reference: No ( called with pass by value option)
EV_CS_EXISTED -
Data type: FLAGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INTERNAL_ERROR - Internal error occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRIQ_STUDY_OBJECT_CREATE 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_iv_plvar | TYPE PLOG-PLVAR, " | |||
| lv_ev_cs_objid | TYPE PIQSCOBJID, " | |||
| lv_internal_error | TYPE PIQSCOBJID, " | |||
| lv_ev_cs_begda | TYPE BEGDATUM, " | |||
| lv_iv_st_objid | TYPE PIQST_OBJID, " | |||
| lv_ev_cs_endda | TYPE ENDDATUM, " | |||
| lv_iv_sc_objid | TYPE PIQSCOBJID, " | |||
| lv_iv_vtask | TYPE HRRHAP-VTASK, " 'B' | |||
| lv_ev_cs_existed | TYPE FLAG, " | |||
| lv_iv_testrun | TYPE FLAG. " |
|   CALL FUNCTION 'HRIQ_STUDY_OBJECT_CREATE' "Study: Create New Object CS with Relationships for ST and SC |
| EXPORTING | ||
| IV_PLVAR | = lv_iv_plvar | |
| IV_ST_OBJID | = lv_iv_st_objid | |
| IV_SC_OBJID | = lv_iv_sc_objid | |
| IV_VTASK | = lv_iv_vtask | |
| IV_TESTRUN | = lv_iv_testrun | |
| IMPORTING | ||
| EV_CS_OBJID | = lv_ev_cs_objid | |
| EV_CS_BEGDA | = lv_ev_cs_begda | |
| EV_CS_ENDDA | = lv_ev_cs_endda | |
| EV_CS_EXISTED | = lv_ev_cs_existed | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| . " HRIQ_STUDY_OBJECT_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM HRIQ_STUDY_OBJECT_CREATE
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 PLOG INTO @DATA(ld_iv_plvar). | ||||
| "SELECT single VTASK FROM HRRHAP INTO @DATA(ld_iv_vtask). | ||||
| DATA(ld_iv_vtask) | = 'B'. | |||
Search for further information about these or an SAP related objects