SAP AUTHORITY_CHECK_EQUI Function Module for NOTRANSL: Alle Berechtigungsprüfungen für Objekt EQUI = Equipment
AUTHORITY_CHECK_EQUI is a standard authority check equi SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Alle Berechtigungsprüfungen für Objekt EQUI = Equipment 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 authority check equi FM, simply by entering the name AUTHORITY_CHECK_EQUI into the relevant SAP transaction such as SE37 or SE38.
Function Group: IE01
Program Name: SAPLIE01
Main Program: SAPLIE01
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function AUTHORITY_CHECK_EQUI 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 'AUTHORITY_CHECK_EQUI'"NOTRANSL: Alle Berechtigungsprüfungen für Objekt EQUI = Equipment.
EXPORTING
* W_EQUI = "Workarea EQUI
* W_EQUZ = "Workarea EQUZ
* W_ILOA = "Workarea ILOA
* TCODE = SY-TCODE "Transaction code
* I_TCODE_CHECK = 'X' "X = Check also authorization transaction
* I_CALL_BADI = 'X' "
EXCEPTIONS
NO_AUTHORITY_TCODE = 1 NO_AUTHORITY_BEGRP = 2 NO_AUTHORITY_IWERK = 3 NO_AUTHORITY_INGRP = 4 NO_AUTHORITY_SWERK = 5 NO_AUTHORITY_KOSTL = 6 NO_PROFILE_IN_USER_MASTER_DATA = 7 ERROR_IN_USER_MASTER_DATA = 8 NO_AUTHORITY_BADI = 9
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLIE01_005 Serial Numbers, User Exit in the Update
EXIT_SAPLIE01_007 Serial Numbers, User Exit in Goods Movement
IMPORTING Parameters details for AUTHORITY_CHECK_EQUI
W_EQUI - Workarea EQUI
Data type: EQUIOptional: Yes
Call by Reference: No ( called with pass by value option)
W_EQUZ - Workarea EQUZ
Data type: EQUZOptional: Yes
Call by Reference: No ( called with pass by value option)
W_ILOA - Workarea ILOA
Data type: ILOAOptional: Yes
Call by Reference: No ( called with pass by value option)
TCODE - Transaction code
Data type: SY-TCODEDefault: SY-TCODE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TCODE_CHECK - X = Check also authorization transaction
Data type: IREF-IINDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CALL_BADI -
Data type: IREF-IINDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORITY_TCODE - No authorization for transaction code
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_BEGRP - You are not authorized for this authorization group
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_IWERK - No authorization for PM planning plant
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_INGRP - No authorization for PM planner group
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_SWERK - No authorization for maintenance plant
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_KOSTL - No authorization for cost center
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_PROFILE_IN_USER_MASTER_DATA - No profile in user master record
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_IN_USER_MASTER_DATA - Error in user master record
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY_BADI -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AUTHORITY_CHECK_EQUI 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_w_equi | TYPE EQUI, " | |||
lv_no_authority_tcode | TYPE EQUI, " | |||
lv_w_equz | TYPE EQUZ, " | |||
lv_no_authority_begrp | TYPE EQUZ, " | |||
lv_w_iloa | TYPE ILOA, " | |||
lv_no_authority_iwerk | TYPE ILOA, " | |||
lv_tcode | TYPE SY-TCODE, " SY-TCODE | |||
lv_no_authority_ingrp | TYPE SY, " | |||
lv_i_tcode_check | TYPE IREF-IIND, " 'X' | |||
lv_no_authority_swerk | TYPE IREF, " | |||
lv_i_call_badi | TYPE IREF-IIND, " 'X' | |||
lv_no_authority_kostl | TYPE IREF, " | |||
lv_no_profile_in_user_master_data | TYPE IREF, " | |||
lv_error_in_user_master_data | TYPE IREF, " | |||
lv_no_authority_badi | TYPE IREF. " |
  CALL FUNCTION 'AUTHORITY_CHECK_EQUI' "NOTRANSL: Alle Berechtigungsprüfungen für Objekt EQUI = Equipment |
EXPORTING | ||
W_EQUI | = lv_w_equi | |
W_EQUZ | = lv_w_equz | |
W_ILOA | = lv_w_iloa | |
TCODE | = lv_tcode | |
I_TCODE_CHECK | = lv_i_tcode_check | |
I_CALL_BADI | = lv_i_call_badi | |
EXCEPTIONS | ||
NO_AUTHORITY_TCODE = 1 | ||
NO_AUTHORITY_BEGRP = 2 | ||
NO_AUTHORITY_IWERK = 3 | ||
NO_AUTHORITY_INGRP = 4 | ||
NO_AUTHORITY_SWERK = 5 | ||
NO_AUTHORITY_KOSTL = 6 | ||
NO_PROFILE_IN_USER_MASTER_DATA = 7 | ||
ERROR_IN_USER_MASTER_DATA = 8 | ||
NO_AUTHORITY_BADI = 9 | ||
. " AUTHORITY_CHECK_EQUI |
ABAP code using 7.40 inline data declarations to call FM AUTHORITY_CHECK_EQUI
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 TCODE FROM SY INTO @DATA(ld_tcode). | ||||
DATA(ld_tcode) | = SY-TCODE. | |||
"SELECT single IIND FROM IREF INTO @DATA(ld_i_tcode_check). | ||||
DATA(ld_i_tcode_check) | = 'X'. | |||
"SELECT single IIND FROM IREF INTO @DATA(ld_i_call_badi). | ||||
DATA(ld_i_call_badi) | = 'X'. | |||
Search for further information about these or an SAP related objects