ADD_AC_4_ACTION SAP Method Add authorization check for an action









Below is documentation, parameters and attributes of ABAP Method ADD_AC_4_ACTION 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 ADD_AC_4_ACTION can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method ADD_AC_4_ACTION

.

NameTypeData TypeDescriptionDefault Value
IS_MSGImportingTYPE
SYMSG
Structure of message variables
IT_AC_REQImportingTYPE
TT_AC_REQ
Authority Check Request
IV_ACTION_KEYImportingTYPE
/BOBF/CONF_KEY
Action Key
IV_AC_IDImportingTYPE
INT2
Authorization Check ID
IV_AC_OBJImportingTYPE
XUOBJECT
Authorization Object
IV_AC_ON_SAVEImportingTYPE
ABAP_BOOL
Do AC on save?
IV_EQUI_GRPImportingTYPE
STRING
Auth.check equi group ID
IV_FILTER_ATTRIBUTEImportingTYPE
FIELDNAME
Filter Node Attribute Name
IV_FILTER_ATTR_VALUEImportingTYPE
STRING
Filter Node Attribute Value
IV_FILTER_NODE_KEYImportingTYPE
/BOBF/OBM_NODE_KEY
Filter Node Key
IV_STATICImportingTYPE
ABAP_BOOL
Static authorization check?



Exceptions of Method ADD_AC_4_ACTION

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMTMS/CL_AC_SUPER.
DATA: lv_IS_MSG TYPE SYMSG,
lv_IT_AC_REQ TYPE TT_AC_REQ,
lv_IV_ACTION_KEY TYPE /BOBF/CONF_KEY,
lv_IV_AC_ID TYPE INT2,
lv_IV_AC_OBJ TYPE XUOBJECT,
lv_IV_AC_ON_SAVE TYPE ABAP_BOOL,
lv_IV_EQUI_GRP TYPE STRING,
lv_IV_FILTER_ATTRIBUTE TYPE FIELDNAME,
lv_IV_FILTER_ATTR_VALUE TYPE STRING,
lv_IV_FILTER_NODE_KEY TYPE /BOBF/OBM_NODE_KEY,
lv_IV_STATIC TYPE ABAP_BOOL,
lv_other TYPE c.

CALL METHOD lo_class=>ADD_AC_4_ACTION(
EXPORTING
IS_MSG = lv_IS_MSG
IT_AC_REQ = lv_IT_AC_REQ
IV_ACTION_KEY = lv_IV_ACTION_KEY
IV_AC_ID = lv_IV_AC_ID
IV_AC_OBJ = lv_IV_AC_OBJ
IV_AC_ON_SAVE = lv_IV_AC_ON_SAVE
IV_EQUI_GRP = lv_IV_EQUI_GRP
IV_FILTER_ATTRIBUTE = lv_IV_FILTER_ATTRIBUTE
IV_FILTER_ATTR_VALUE = lv_IV_FILTER_ATTR_VALUE
IV_FILTER_NODE_KEY = lv_IV_FILTER_NODE_KEY
IV_STATIC = lv_IV_STATIC ).

Links to Related Class(s)

/SCMTMS/...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!