ABAP OO Class Methods

QUERY_VERSIONS SAP Method - query versions for a policy







Below is documentation, parameters and attributes of ABAP Method QUERY_VERSIONS 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_VERSIONS

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_IS_INCLUDE_VOID_VER " Single-Character Flag TYPE GRFN_BOOLEAN
IV_POLICYVER_ID " Object ID TYPE GRFN_API_OBJECT_ID
IV_POLICY_ID " Object ID TYPE GRFN_API_OBJECT_ID

Exporting Parameters:


ET_POLICY_VERSION " 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_IS_INCLUDE_VOID_VER TYPE GRFN_BOOLEAN ,
ld_IV_POLICYVER_ID TYPE GRFN_API_OBJECT_ID ,
ld_IV_POLICY_ID TYPE GRFN_API_OBJECT_ID ,
ld_ET_POLICY_VERSION TYPE GRFN_T_API_POLICY_LIST.

" ld_IO_SESSION = "
" ld_IV_IS_INCLUDE_VOID_VER = "
" ld_IV_POLICYVER_ID = "
" ld_IV_POLICY_ID = "

CALL METHOD IF_GRFN_API_POLICY=>QUERY_VERSIONS(
EXPORTING
IO_SESSION = ld_IO_SESSION
IV_IS_INCLUDE_VOID_VER = ld_IV_IS_INCLUDE_VOID_VER
IV_POLICYVER_ID = ld_IV_POLICYVER_ID
IV_POLICY_ID = ld_IV_POLICY_ID
IMPORTING
ET_POLICY_VERSION = ld_ET_POLICY_VERSION
EXCEPTIONS
CX_GRFN_EXCEPTION = 1 ).