Ansicht
Dokumentation
ABAPHANDLER_METH_GLOBAL_AUTH - HANDLER METH GLOBAL AUTH
RFUMSV00 - Advance Return for Tax on Sales/Purchases rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
FOR GLOBAL AUTHORIZATION
Handler method definition:
METHODS meth $[FINAL$]
FOR GLOBAL AUTHORIZATION
$[IMPORTING$]
${ REFERENCE(im_par_gl_auth) $| im_par_gl_auth $}
REQUEST ${ REFERENCE(req_gl_auth) $| req_gl_auth $}
FOR bdef
RESULT ${ REFERENCE(res_gl_auth) $| res_gl_auth $}
$[CHANGING reported
TYPE data$].
Effect
Handler method that is used for global authorization checks for accessing RAP BO entities. It must be defined and implemented in a handler class of an ABAP behavior pool. The method name meth can be chosen freely. bdef is the name or the alias of the BDEF.
Method Parameters
- IMPORTING parameters:
- req_gl_auth: Request parameter on which the information retrieval for instance-based authorization is based on. It is a structure of type TYPE STRUCTURE FOR GLOBAL AUTHORIZATION REQUEST.
- CHANGING parameters:
- res_gl_auth: Used to store the result of the permission information retrieval. It is a structure of type TYPE STRUCTURE FOR GLOBAL AUTHORIZATION RESULT.
- The changing parameter reported is implicitly available. It is used to return messages. It is possible to specify the parameter with the predefined name reported explicitly following the ABAP word CHANGING. In this case, the generic type DATA is used. At runtime, the typed parameter implicitly has the BDEF derived type TYPE RESPONSE FOR REPORTED.
BDEF Requirements
See the required BDEF notations for both variants in the topic CDS BDL - authorizations.
Examples
Example for a RAP handler method definition. Find demonstrations of method implementations in the executable examples further down.
METHODS get_global_authorizations FOR GLOBAL AUTHORIZATION
IMPORTING REQUEST requested_authorizations FOR bdef
RESULT result.
- Example for RAP Handler Methods: Demonstrates this RAP handler method within a RAP handler class using a simple unmanaged RAP BO that is draft-enabled.
CL_GUI_FRONTEND_SERVICES - Frontend Services Addresses (Business Address Services)
This documentation is copyright by SAP AG.
Length: 4726 Date: 20240425 Time: 132244 sap01-206 ( 55 ms )