SAP AUTHORITY-CHECK DISABLE ABAP Statements



Get Example source ABAP code based on a different SAP table
  


VERSION 5 OUT
ID AUTHORITY-CHECK-DISABLE
• AUTHORITY-CHECK DISABLE ABAP_STATEMENT_EML
• BEGIN CONTEXT AUTHORITY-CHECK
• END AUTHORITY-CHECK

ABAP_EML - AUTHORITY-CHECK DISABLE

ABAP_SYNTAX
AUTHORITY-CHECK DISABLE BEGIN CONTEXT bdef~context_name
...
AUTHORITY-CHECK DISABLE END.

What does it do?
AUTHORITY-CHECK DISABLE BEGIN CONTEXT ... and AUTHORITY-CHECK DISABLE END. form a statement block to activate and deactivate an authorization context. The statement can only be used in ABAP behavior pools .
AUTHORITY-CHECK DISABLE BEGIN CONTEXT ... activates the authorization context context_name that is defined in the BDEF bdef . An authorization context is active until the corresponding AUTHORITY-CHECK DISABLE END. statement is reached or until the statement block is left, for example, by a RETURN or a RAISE statement .
The authorization context is active for all methods or functions that are called between AUTHORITY-CHECK DISABLE BEGIN ... and AUTHORITY-CHECK DISABLE END.. Statements with AUTHORITY-CHECK DISABLE BEGIN ... and AUTHORITY-CHECK DISABLE END. can be nested. In this case, the superset of all authorization objects listed in all the active authorization contexts is disabled.
AUTHORITY-CHECK DISABLE END. deactivates the authorization context of the corresponding AUTHORITY-CHECK DISABLE BEGIN CONTEXT ... statement.
The statement can only be used if the BDEF that defines the authorization context is on the stack. Since release ABAP_788 , the statement can only be used in implementation classes of the BDEF that defines the authorization context.



Latest notes:

The activation of an authorization context is either done explicitly by this statement or implicitly by registering a context for a handler method in the BDEF with the notation ... for disabled ... . In the latter case, an AUTHORITY-CHECK DISABLE BEGIN CONTEXT ... AUTHORITY-CHECK DISABLE END. statement block is implicitly generated for the corresponding methods in the behavior pool. The explicit use of the statement block is not required.
ABAP_HINT_END

ABAP_FURTHER_INFO
RAP BDL - define authorization context

ABAP_EXAMPLE_ABEXA
The example ABAP EML - AUTHORITY-CHECK DISABLE demonstrates AUTHORITY-CHECK DISABLE BEGIN CONTEXT ... AUTHORITY-CHECK DISABLE END. statements with an unmanaged RAP BO.
ABAP_EXAMPLE_END

Return to menu