Ansicht
Dokumentation

ABAPAUTHORITY-CHECK_DISABLE - AUTHORITY-CHECK DISABLE

ABAPAUTHORITY-CHECK_DISABLE - AUTHORITY-CHECK DISABLE

rdisp/max_wprun_time - Maximum work process run time   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

- AUTHORITY-CHECK DISABLE

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


Effect

AUTHORITY-CHECK DISABLE BEGIN CONTEXT ... and AUTHORITY-CHECK DISABLE END. form a statement block to activate and deactivate an authorization context.

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 , the statement can only be used in implementation classes of the BDEF that defines the authorization context.

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.

CDS BDL - define authorization context

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






Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3435 Date: 20240616 Time: 102510     sap01-206 ( 59 ms )