Ansicht
Dokumentation

ABAPGET_PERMISSIONS_LONG - GET PERMISSIONS LONG

ABAPGET_PERMISSIONS_LONG - GET PERMISSIONS LONG

ABAP Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

GET PERMISSIONS OF, Long Form

GET PERMISSIONS $[PRIVILEGED$] $[ only_clause$] OF bdef
     ENTITY bdef1 $[FROM keys$] REQUEST request RESULT result
    $[ENTITY bdef2 $[FROM keys$] REQUEST request RESULT result$]
    $[...$]
    $[response_param$].


Additions

1. ... PRIVILEGED

2. ... only_clause

3. ... FROM keys

4. ... response_param.

Effect

The long form of the GET PERMISSIONS statement is used for collecting multiple queries on multiple entities of a RAP BO. However, it can also be used for querying from a single entity.

Syntax Details

Syntax Part Details
bdef Specifies the name of root entity following the keyword OF.
ENTITY bdef1, ENTITY bdef2, ... bdef1, bdef2, ..., specify the names of the entities that are part of the composition tree of bdef. They follow the keyword ENTITY. \lbr \lbr A list of queries follows OF bdef. Each query (ENTITY bdef1 ... RESULT result_tab) of the list has the same syntax as the short form. At least one query must be specified. The root entity itself can also be inserted in the position of bdef1, for example. bdef1, and so on, should be the entity alias names if provided in the BDEF. Using the full entity name causes a warning. If the root entity is used in the list of operations, its alias name, if defined in the BDEF, should be used as well.

Addition 1

... PRIVILEGED

Effect

Addition 2

... only_clause

Effect

Addition 3

... FROM keys

Effect

Addition 4

... response_param.

Example

The following source code section taken from DEMO_RAP_EML_GET_PERMISSIONS demonstrates the long form of the GET PERMISSIONS statement in the context of checking access restrictions for certain data fields.

  • The example - GET PERMISSIONS, Variants demonstrates the long form of the GET PERMISSIONS statement with a simple managed RAP BO. It also includes the short and dynamic form.





CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.

Length: 4156 Date: 20240616 Time: 110033     sap01-206 ( 57 ms )