ABAP OO Class Methods

GET_USER_TYPE SAP Method - Get User Type







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

GET_USER_TYPE

Method Type

Instance Method:   This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.







Exporting Parameters:


EV_IS_APPROVER " Boolean TYPE GRFN_BOOLEAN
EV_IS_OWNER " Boolean TYPE GRFN_BOOLEAN
EV_IS_REVIEWER " Boolean TYPE GRFN_BOOLEAN

Exceptions:


CX_GRFN_EXCEPTION - Generic GRC API exception



Example ABAP coding


DATA:
ld_EV_IS_APPROVER TYPE GRFN_BOOLEAN ,
ld_EV_IS_OWNER TYPE GRFN_BOOLEAN ,
ld_EV_IS_REVIEWER TYPE GRFN_BOOLEAN.


DATA: lo_POLICY TYPE REF TO IF_GRFN_API_POLICY .
CALL METHOD lo_POLICY->GET_USER_TYPE(
IMPORTING
EV_IS_APPROVER = ld_EV_IS_APPROVER
EV_IS_OWNER = ld_EV_IS_OWNER
EV_IS_REVIEWER = ld_EV_IS_REVIEWER
EXCEPTIONS
CX_GRFN_EXCEPTION = 1 ).