SAP HANDLER METH GLOBAL AUTH ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• FOR GLOBAL AUTHORIZATION METHODS
• REQUEST FOR GLOBAL AUTHORIZATION
• RESULT FOR GLOBAL AUTHORIZATION

FOR GLOBAL AUTHORIZATION, RAP Handler Method

ABAP_SYNTAX
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 $] .

What does it do?
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.