ABAP OO Class Methods

CAN_LOCALIZE SAP Method - Check if the Policy can be localized







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

CAN_LOCALIZE

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.






Importing Parameters:

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


IV_ORGUNIT_ID " Object ID TYPE GRFN_API_OBJECT_ID

Returning Parameters:


RV_CAN_LOCALIZE " Boolean TYPE GRFN_BOOLEAN

Exceptions:


CX_GRFN_EXCEPTION - Generic GRC API exception



Example ABAP coding


DATA:
ld_IV_ORGUNIT_ID TYPE GRFN_API_OBJECT_ID ,
ld_RV_CAN_LOCALIZE TYPE GRFN_BOOLEAN.

" ld_IV_ORGUNIT_ID = "

DATA: lo_POLICY TYPE REF TO IF_GRFN_API_POLICY .
CALL METHOD lo_POLICY->CAN_LOCALIZE(
EXPORTING
IV_ORGUNIT_ID = ld_IV_ORGUNIT_ID
RECEIVING
RV_CAN_LOCALIZE = ld_RV_CAN_LOCALIZE
EXCEPTIONS
CX_GRFN_EXCEPTION = 1 ).

"Alternate coding for Method Call with returning parameter



ld_RV_CAN_LOCALIZE = lo_POLICY->CAN_LOCALIZE(
EXPORTING
IV_ORGUNIT_ID = ld_IV_ORGUNIT_ID ).


ld_RV_CAN_LOCALIZE = lo_POLICY->CAN_LOCALIZE(
EXPORTING
IV_ORGUNIT_ID = ld_IV_ORGUNIT_ID ).