INIT_OBJECT_USAGE SAP Method of class CL_ABAP_COMP_PROCS









Below is documentation, parameters and attributes of ABAP Method INIT_OBJECT_USAGE within SAP class CL_ABAP_COMP_PROCS. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_ABAP_COMP_PROCS into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

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.

The following technical details of method INIT_OBJECT_USAGE can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method INIT_OBJECT_USAGE

.

NameTypeData TypeDescriptionDefault Value
P_OBJECT_NAMEImportingTYPE
SOBJ_NAME
P_OBJECT_TYPEImportingTYPE
TROBJTYPE
P_PROGRAM_NAMEImportingTYPE
PROGRAMM
P_SRCIDImportingTYPE
SCR_SOURCE_ID
P_SYMB_REFImportingTYPE REF TO
CL_ABAP_SYMBOL
P_RESULTReturningTYPE REF TO
CL_ABAP_COMP_PROCS_OBJ_USAGE



Exceptions of Method INIT_OBJECT_USAGE

This method does not have any exceptions

Example ABAP coding

This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.

DATA: lo_class TYPE REF TO CL_ABAP_COMP_PROCS.
DATA: lv_P_OBJECT_NAME TYPE SOBJ_NAME,
lv_P_OBJECT_TYPE TYPE TROBJTYPE,
lv_P_PROGRAM_NAME TYPE PROGRAMM,
lv_P_RESULT TYPE CL_ABAP_COMP_PROCS_OBJ_USAGE,
lv_P_SRCID TYPE SCR_SOURCE_ID,
lv_P_SYMB_REF TYPE CL_ABAP_SYMBOL,
lv_other TYPE c.

CALL METHOD lo_class=>INIT_OBJECT_USAGE(
EXPORTING
P_OBJECT_NAME = lv_P_OBJECT_NAME
P_OBJECT_TYPE = lv_P_OBJECT_TYPE
P_PROGRAM_NAME = lv_P_PROGRAM_NAME
P_SRCID = lv_P_SRCID
P_SYMB_REF = lv_P_SYMB_REF
RECEIVING
P_RESULT = lv_P_RESULT )



"Alternate coding for Method Call with returning parameter
lv_P_RESULT = lo_class=>INIT_OBJECT_USAGE(
EXPORTING
P_OBJECT_NAME = lv_P_OBJECT_NAME
P_OBJECT_TYPE = lv_P_OBJECT_TYPE
P_PROGRAM_NAME = lv_P_PROGRAM_NAME
P_SRCID = lv_P_SRCID
P_SYMB_REF = lv_P_SYMB_REF ).

Links to Related Class(s)

CL_ABAP_...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!