CHECK_AUTHORITY_SINGLE SAP Method Perform a single authority check
Below is documentation, parameters and attributes of ABAP Method CHECK_AUTHORITY_SINGLE within SAP class /SCMTMS/CL_AC_SUPER. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMTMS/CL_AC_SUPER into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method CHECK_AUTHORITY_SINGLE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CHECK_AUTHORITY_SINGLE
.| Name | Type | Data Type | Description | Default Value |
| IT_AUTH_FIELDVAL | Importing | TYPE TT_AC | Authority Check Field/Value assignment | |
| IV_AUTH_ID | Importing | TYPE INT2 | Authorization check ID | |
| IV_AUTH_KEY | Importing | TYPE STRING | Authorization check buffer key | |
| IV_AUTH_OBJECT | Importing | TYPE XUOBJECT | Authorization Object | |
| IV_EQUI_GRP_ID | Importing | TYPE STRING | Auth. Check Equivalency Group ID | |
| IV_USER | Importing | TYPE SYUNAME | User Name | |
| EV_SUBRC | Exporting | TYPE SYSUBRC | Result of Authority Check |
Exceptions of Method CHECK_AUTHORITY_SINGLE
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMTMS/CL_AC_SUPER.
DATA: lv_EV_SUBRC TYPE SYSUBRC,
lv_IT_AUTH_FIELDVAL TYPE TT_AC,
lv_IV_AUTH_ID TYPE INT2,
lv_IV_AUTH_KEY TYPE STRING,
lv_IV_AUTH_OBJECT TYPE XUOBJECT,
lv_IV_EQUI_GRP_ID TYPE STRING,
lv_IV_USER TYPE SYUNAME,
lv_other TYPE c.
CALL METHOD lo_class=>CHECK_AUTHORITY_SINGLE(
EXPORTING
IT_AUTH_FIELDVAL = lv_IT_AUTH_FIELDVAL
IV_AUTH_ID = lv_IV_AUTH_ID
IV_AUTH_KEY = lv_IV_AUTH_KEY
IV_AUTH_OBJECT = lv_IV_AUTH_OBJECT
IV_EQUI_GRP_ID = lv_IV_EQUI_GRP_ID
IV_USER = lv_IV_USER
IMPORTING
EV_SUBRC = lv_EV_SUBRC ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects