SAP HRIQ_MODREG_CHECK_MULT_BOOKING Function Module for Check Multiple Bookings of a Module
HRIQ_MODREG_CHECK_MULT_BOOKING is a standard hriq modreg check mult booking SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Multiple Bookings of a Module 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 modreg check mult booking FM, simply by entering the name HRIQ_MODREG_CHECK_MULT_BOOKING into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00STBEN2
Program Name: SAPLHRPIQ00STBEN2
Main Program: SAPLHRPIQ00STBEN2
Appliation area:
Release date: 19-Feb-2008
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HRIQ_MODREG_CHECK_MULT_BOOKING 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_MODREG_CHECK_MULT_BOOKING'"Check Multiple Bookings of a Module.
EXPORTING
IS_STUDENT = "Student
IT_MODULES = "Study module
* IT_BOOKINGS = "Booked Modules (Table Type)
* IV_BEGDA = SY-DATUM "Start Date
* IV_ENDDA = SY-DATUM "End Date
* IV_YEAR = "Academic Year
* IV_PERIOD = "Academic Session
* IT_STATUS = "Status
IMPORTING
ET_BOOKED_MODULES_COUNT = "Number of Modules
ET_BOOKINGS = "Booked Modules (Table Type)
ET_REFERENCED_MODULES = "Related Object
EXCEPTIONS
NO_MODULES_FOUND = 1 NO_PLVAR_FOUND = 2 NO_MODULE_TO_CHECK = 3 INTERNAL_ERROR = 4
IMPORTING Parameters details for HRIQ_MODREG_CHECK_MULT_BOOKING
IS_STUDENT - Student
Data type: HROBJECTOptional: No
Call by Reference: Yes
IT_MODULES - Study module
Data type: HROBJECT_TOptional: No
Call by Reference: Yes
IT_BOOKINGS - Booked Modules (Table Type)
Data type: PIQMODULETAB_TOptional: Yes
Call by Reference: Yes
IV_BEGDA - Start Date
Data type: BEGDATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
IV_ENDDA - End Date
Data type: ENDDATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
IV_YEAR - Academic Year
Data type: PIQPERYROptional: Yes
Call by Reference: Yes
IV_PERIOD - Academic Session
Data type: PIQPERIDOptional: Yes
Call by Reference: Yes
IT_STATUS - Status
Data type: PIQISTAT_TOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HRIQ_MODREG_CHECK_MULT_BOOKING
ET_BOOKED_MODULES_COUNT - Number of Modules
Data type: PIQ_MODULE_COUNTER_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_BOOKINGS - Booked Modules (Table Type)
Data type: PIQMODULETAB_TOptional: No
Call by Reference: Yes
ET_REFERENCED_MODULES - Related Object
Data type: PIQ_RELATED_OBJECT_TOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_MODULES_FOUND - No booked study modules found
Data type:Optional: No
Call by Reference: Yes
NO_PLVAR_FOUND - Plan version not found
Data type:Optional: No
Call by Reference: Yes
NO_MODULE_TO_CHECK - No module for check
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRIQ_MODREG_CHECK_MULT_BOOKING 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_is_student | TYPE HROBJECT, " | |||
| lv_no_modules_found | TYPE HROBJECT, " | |||
| lv_et_booked_modules_count | TYPE PIQ_MODULE_COUNTER_T, " | |||
| lv_it_modules | TYPE HROBJECT_T, " | |||
| lv_et_bookings | TYPE PIQMODULETAB_T, " | |||
| lv_no_plvar_found | TYPE PIQMODULETAB_T, " | |||
| lv_it_bookings | TYPE PIQMODULETAB_T, " | |||
| lv_no_module_to_check | TYPE PIQMODULETAB_T, " | |||
| lv_et_referenced_modules | TYPE PIQ_RELATED_OBJECT_T, " | |||
| lv_iv_begda | TYPE BEGDATUM, " SY-DATUM | |||
| lv_internal_error | TYPE BEGDATUM, " | |||
| lv_iv_endda | TYPE ENDDATUM, " SY-DATUM | |||
| lv_iv_year | TYPE PIQPERYR, " | |||
| lv_iv_period | TYPE PIQPERID, " | |||
| lv_it_status | TYPE PIQISTAT_T. " |
|   CALL FUNCTION 'HRIQ_MODREG_CHECK_MULT_BOOKING' "Check Multiple Bookings of a Module |
| EXPORTING | ||
| IS_STUDENT | = lv_is_student | |
| IT_MODULES | = lv_it_modules | |
| IT_BOOKINGS | = lv_it_bookings | |
| IV_BEGDA | = lv_iv_begda | |
| IV_ENDDA | = lv_iv_endda | |
| IV_YEAR | = lv_iv_year | |
| IV_PERIOD | = lv_iv_period | |
| IT_STATUS | = lv_it_status | |
| IMPORTING | ||
| ET_BOOKED_MODULES_COUNT | = lv_et_booked_modules_count | |
| ET_BOOKINGS | = lv_et_bookings | |
| ET_REFERENCED_MODULES | = lv_et_referenced_modules | |
| EXCEPTIONS | ||
| NO_MODULES_FOUND = 1 | ||
| NO_PLVAR_FOUND = 2 | ||
| NO_MODULE_TO_CHECK = 3 | ||
| INTERNAL_ERROR = 4 | ||
| . " HRIQ_MODREG_CHECK_MULT_BOOKING | ||
ABAP code using 7.40 inline data declarations to call FM HRIQ_MODREG_CHECK_MULT_BOOKING
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_begda) | = SY-DATUM. | |||
| DATA(ld_iv_endda) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects