ABAP OO Class Methods

INIT_DATA SAP Method - init data







Below is documentation, parameters and attributes of ABAP Method INIT_DATA within SAP class IF_GRPC_AOD_WD. 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_GRPC_AOD_WD 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_GRPC_AOD_WD

Method Name

INIT_DATA

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_REGULATION_ID " Object ID TYPE GRFN_API_OBJECT_ID
I_WORKITEM " Work item ID TYPE SWW_WIID

Returning Parameters:


RV_CODE " Return code TYPE ABAP_BOOL

Exceptions:



Example ABAP coding


DATA:
ld_IV_REGULATION_ID TYPE GRFN_API_OBJECT_ID ,
ld_I_WORKITEM TYPE SWW_WIID ,
ld_RV_CODE TYPE ABAP_BOOL.

" ld_IV_REGULATION_ID = "
" ld_I_WORKITEM = "

DATA: lo_WD TYPE REF TO IF_GRPC_AOD_WD .
CALL METHOD lo_WD->INIT_DATA(
EXPORTING
IV_REGULATION_ID = ld_IV_REGULATION_ID
I_WORKITEM = ld_I_WORKITEM
RECEIVING
RV_CODE = ld_RV_CODE ).

"Alternate coding for Method Call with returning parameter



ld_RV_CODE = lo_WD->INIT_DATA(
EXPORTING
IV_REGULATION_ID = ld_IV_REGULATION_ID
I_WORKITEM = ld_I_WORKITEM ).


ld_RV_CODE = lo_WD->INIT_DATA(
EXPORTING
IV_REGULATION_ID = ld_IV_REGULATION_ID
I_WORKITEM = ld_I_WORKITEM ).