AUTHORITY_CHECK SAP Method Authorization Check for Material Master Records
Below is documentation, parameters and attributes of ABAP Method AUTHORITY_CHECK within SAP class /SCMB/CL_IM_EHS_MATERIAL. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMB/CL_IM_EHS_MATERIAL 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 AUTHORITY_CHECK can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method AUTHORITY_CHECK
.| Name | Type | Data Type | Description | Default Value |
| IV_ACTIVITY | Importing | TYPE ACTIV_AUTH | Activity | |
| ET_NO_AUTHORITY | Exporting | TYPE /SCMB/MDL_PRODUCT_KEYS_TAB | Table of Materials for Which No Authorizations Exist | |
| XS_MATERIAL | Changing | TYPE ANY | Material Master Record to Check | |
| XT_MATERIALS | Changing | TYPE STANDARD TABLE | Table of Material Master Records to Check |
Exceptions of Method AUTHORITY_CHECK
/SCMB/MDL_PRODUCT_KEYS_TAB
Example ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO /SCMB/CL_IM_EHS_MATERIAL.
DATA: lv_ET_NO_AUTHORITY TYPE /SCMB/MDL_PRODUCT_KEYS_TAB,
lv_IV_ACTIVITY TYPE ACTIV_AUTH,
lv_XS_MATERIAL TYPE ANY,
lv_XT_MATERIALS TYPE STANDARD TABLE,
lv_other TYPE c.
CALL METHOD lo_class=>AUTHORITY_CHECK(
EXPORTING
IV_ACTIVITY = lv_IV_ACTIVITY
IMPORTING
ET_NO_AUTHORITY = lv_ET_NO_AUTHORITY
CHANGING
XS_MATERIAL = lv_XS_MATERIAL
XT_MATERIALS = lv_XT_MATERIALS ).
Links to Related Class(s)
/SCMB/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects