ABAP OO Class Methods

QUERY SAP Method - query policy data







Below is documentation, parameters and attributes of ABAP Method QUERY within SAP class IF_GRFN_API_POLICY. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name IF_GRFN_API_POLICY into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class method belongs too

IF_GRFN_API_POLICY

Method Name

QUERY

Method Type

Static Method:  This is a Static Method so you can call it directly






Importing Parameters:

Below is a list of importing parameters associated with this method, including its name, description and data type


IO_SESSION " Session Management for GRC APIs TYPE REF TO CL_GRFN_API_SESSION
IV_SEARCH_PATTERN " API search pattern TYPE GRFN_API_SEARCH_PATTERN

Exporting Parameters:


ET_POLICY " policy list TYPE GRFN_T_API_POLICY_LIST

Exceptions:


CX_GRFN_EXCEPTION - Generic GRC API exception



Example ABAP coding


DATA:
ld_IO_SESSION TYPE REF TO CL_GRFN_API_SESSION ,
ld_IV_SEARCH_PATTERN TYPE GRFN_API_SEARCH_PATTERN ,
ld_ET_POLICY TYPE GRFN_T_API_POLICY_LIST.

" ld_IO_SESSION = "
" ld_IV_SEARCH_PATTERN = "

CALL METHOD IF_GRFN_API_POLICY=>QUERY(
EXPORTING
IO_SESSION = ld_IO_SESSION
IV_SEARCH_PATTERN = ld_IV_SEARCH_PATTERN
IMPORTING
ET_POLICY = ld_ET_POLICY
EXCEPTIONS
CX_GRFN_EXCEPTION = 1 ).