SAP HRIQ_MODREG_AUTHORITY_CHECK Function Module for Check Authorization for Module Booking
HRIQ_MODREG_AUTHORITY_CHECK is a standard hriq modreg authority check 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 Authorization for Module Booking 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 authority check FM, simply by entering the name HRIQ_MODREG_AUTHORITY_CHECK 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_AUTHORITY_CHECK 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_AUTHORITY_CHECK'"Check Authorization for Module Booking.
EXPORTING
* IV_PROCESS = "Activity
IS_STUDENT = "Student
* IV_DATE = "Keydate
IMPORTING
EV_AUTH_SUBRC = "Return Code, Return Code concerning ABAP statements
EF_AUTH_INSERT = "Authority for a new module booking
EF_AUTH_CHANGE = "Authority for changing a module booking
EF_AUTH_CANCEL = "Authority for the cancellation of a module booking
EF_AUTH_DISPLAY = "Authority for displaying a module booking
EXCEPTIONS
STUDENT_MISSING = 1 STUDENT_NOT_FOUND = 2 PROCESS_NOT_SUPPORTED = 3 PLVAR_NOT_FOUND = 4 NO_BASE_AUTHORITY = 5 NO_OBJECT_AUTHORITY = 6
IMPORTING Parameters details for HRIQ_MODREG_AUTHORITY_CHECK
IV_PROCESS - Activity
Data type: PIQPROCESSOptional: Yes
Call by Reference: Yes
IS_STUDENT - Student
Data type: HROBJECTOptional: No
Call by Reference: Yes
IV_DATE - Keydate
Data type: PIQDATEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HRIQ_MODREG_AUTHORITY_CHECK
EV_AUTH_SUBRC - Return Code, Return Code concerning ABAP statements
Data type: SYSUBRCOptional: No
Call by Reference: Yes
EF_AUTH_INSERT - Authority for a new module booking
Data type: FLAGOptional: No
Call by Reference: Yes
EF_AUTH_CHANGE - Authority for changing a module booking
Data type: FLAGOptional: No
Call by Reference: Yes
EF_AUTH_CANCEL - Authority for the cancellation of a module booking
Data type: FLAGOptional: No
Call by Reference: Yes
EF_AUTH_DISPLAY - Authority for displaying a module booking
Data type: FLAGOptional: No
Call by Reference: Yes
EXCEPTIONS details
STUDENT_MISSING - No import parameter submitted
Data type:Optional: No
Call by Reference: Yes
STUDENT_NOT_FOUND - Student not found
Data type:Optional: No
Call by Reference: Yes
PROCESS_NOT_SUPPORTED - Process not supported
Data type:Optional: No
Call by Reference: Yes
PLVAR_NOT_FOUND - Plan version not found
Data type:Optional: No
Call by Reference: Yes
NO_BASE_AUTHORITY - No basis authority (PLOG)
Data type:Optional: No
Call by Reference: Yes
NO_OBJECT_AUTHORITY - No structural authorization
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRIQ_MODREG_AUTHORITY_CHECK 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_process | TYPE PIQPROCESS, " | |||
lv_ev_auth_subrc | TYPE SYSUBRC, " | |||
lv_student_missing | TYPE SYSUBRC, " | |||
lv_is_student | TYPE HROBJECT, " | |||
lv_ef_auth_insert | TYPE FLAG, " | |||
lv_student_not_found | TYPE FLAG, " | |||
lv_iv_date | TYPE PIQDATE, " | |||
lv_ef_auth_change | TYPE FLAG, " | |||
lv_process_not_supported | TYPE FLAG, " | |||
lv_ef_auth_cancel | TYPE FLAG, " | |||
lv_plvar_not_found | TYPE FLAG, " | |||
lv_ef_auth_display | TYPE FLAG, " | |||
lv_no_base_authority | TYPE FLAG, " | |||
lv_no_object_authority | TYPE FLAG. " |
  CALL FUNCTION 'HRIQ_MODREG_AUTHORITY_CHECK' "Check Authorization for Module Booking |
EXPORTING | ||
IV_PROCESS | = lv_iv_process | |
IS_STUDENT | = lv_is_student | |
IV_DATE | = lv_iv_date | |
IMPORTING | ||
EV_AUTH_SUBRC | = lv_ev_auth_subrc | |
EF_AUTH_INSERT | = lv_ef_auth_insert | |
EF_AUTH_CHANGE | = lv_ef_auth_change | |
EF_AUTH_CANCEL | = lv_ef_auth_cancel | |
EF_AUTH_DISPLAY | = lv_ef_auth_display | |
EXCEPTIONS | ||
STUDENT_MISSING = 1 | ||
STUDENT_NOT_FOUND = 2 | ||
PROCESS_NOT_SUPPORTED = 3 | ||
PLVAR_NOT_FOUND = 4 | ||
NO_BASE_AUTHORITY = 5 | ||
NO_OBJECT_AUTHORITY = 6 | ||
. " HRIQ_MODREG_AUTHORITY_CHECK |
ABAP code using 7.40 inline data declarations to call FM HRIQ_MODREG_AUTHORITY_CHECK
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.Search for further information about these or an SAP related objects