SAP HRIQ_STUDENT_MODREG_WITHDRAWAL Function Module for Cancel All Module Bookings of Student
HRIQ_STUDENT_MODREG_WITHDRAWAL is a standard hriq student modreg withdrawal SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Cancel All Module Bookings of Student 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 modreg withdrawal FM, simply by entering the name HRIQ_STUDENT_MODREG_WITHDRAWAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00STUDY
Program Name: SAPLHRPIQ00STUDY
Main Program: SAPLHRPIQ00STUDY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRIQ_STUDENT_MODREG_WITHDRAWAL 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_MODREG_WITHDRAWAL'"Cancel All Module Bookings of Student.
EXPORTING
IS_OBJECT = "Object
* IV_MODE = 'D' "D = In Dialog Mode, B = In Background
* IV_PERYR = "Academic Year
* IV_PERID = "Academic Session
* IV_DATE = SY-DATUM "Cancellation Date
* IV_REASON = "Cancellation Reason
* IV_COMMIT_MODE = 'V' "
IMPORTING
EV_RETURN = "Return Value, Return Value After ABAP Statements
ET_MODULES = "Booked Modules (Table Type)
EXCEPTIONS
WRONG_INPUT = 1 NO_MODULES_FOUND = 2 TECHNICAL_ERROR = 3
IMPORTING Parameters details for HRIQ_STUDENT_MODREG_WITHDRAWAL
IS_OBJECT - Object
Data type: HROBJECTOptional: No
Call by Reference: Yes
IV_MODE - D = In Dialog Mode, B = In Background
Data type: CHAR1Default: 'D'
Optional: Yes
Call by Reference: Yes
IV_PERYR - Academic Year
Data type: PIQPERYROptional: Yes
Call by Reference: Yes
IV_PERID - Academic Session
Data type: PIQPERIDOptional: Yes
Call by Reference: Yes
IV_DATE - Cancellation Date
Data type: PAD506-STORDATEDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
IV_REASON - Cancellation Reason
Data type: PAD506-STORREASONOptional: Yes
Call by Reference: Yes
IV_COMMIT_MODE -
Data type: PIQCHAR1Default: 'V'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HRIQ_STUDENT_MODREG_WITHDRAWAL
EV_RETURN - Return Value, Return Value After ABAP Statements
Data type: SYSUBRCOptional: No
Call by Reference: Yes
ET_MODULES - Booked Modules (Table Type)
Data type: PIQMODULETAB_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_INPUT - Incorrect Import Parameter(s)
Data type:Optional: No
Call by Reference: Yes
NO_MODULES_FOUND - No Module Bookings Were Found
Data type:Optional: No
Call by Reference: Yes
TECHNICAL_ERROR - Technical Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRIQ_STUDENT_MODREG_WITHDRAWAL 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_return | TYPE SYSUBRC, " | |||
| lv_is_object | TYPE HROBJECT, " | |||
| lv_wrong_input | TYPE HROBJECT, " | |||
| lv_iv_mode | TYPE CHAR1, " 'D' | |||
| lv_et_modules | TYPE PIQMODULETAB_T, " | |||
| lv_no_modules_found | TYPE PIQMODULETAB_T, " | |||
| lv_iv_peryr | TYPE PIQPERYR, " | |||
| lv_technical_error | TYPE PIQPERYR, " | |||
| lv_iv_perid | TYPE PIQPERID, " | |||
| lv_iv_date | TYPE PAD506-STORDATE, " SY-DATUM | |||
| lv_iv_reason | TYPE PAD506-STORREASON, " | |||
| lv_iv_commit_mode | TYPE PIQCHAR1. " 'V' |
|   CALL FUNCTION 'HRIQ_STUDENT_MODREG_WITHDRAWAL' "Cancel All Module Bookings of Student |
| EXPORTING | ||
| IS_OBJECT | = lv_is_object | |
| IV_MODE | = lv_iv_mode | |
| IV_PERYR | = lv_iv_peryr | |
| IV_PERID | = lv_iv_perid | |
| IV_DATE | = lv_iv_date | |
| IV_REASON | = lv_iv_reason | |
| IV_COMMIT_MODE | = lv_iv_commit_mode | |
| IMPORTING | ||
| EV_RETURN | = lv_ev_return | |
| ET_MODULES | = lv_et_modules | |
| EXCEPTIONS | ||
| WRONG_INPUT = 1 | ||
| NO_MODULES_FOUND = 2 | ||
| TECHNICAL_ERROR = 3 | ||
| . " HRIQ_STUDENT_MODREG_WITHDRAWAL | ||
ABAP code using 7.40 inline data declarations to call FM HRIQ_STUDENT_MODREG_WITHDRAWAL
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.| DATA(ld_iv_mode) | = 'D'. | |||
| "SELECT single STORDATE FROM PAD506 INTO @DATA(ld_iv_date). | ||||
| DATA(ld_iv_date) | = SY-DATUM. | |||
| "SELECT single STORREASON FROM PAD506 INTO @DATA(ld_iv_reason). | ||||
| DATA(ld_iv_commit_mode) | = 'V'. | |||
Search for further information about these or an SAP related objects