ABAP OO Class Methods

CONSTRUCTOR SAP Constructor Method of EUP_ACTION_INSTANCE







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

EUP_ACTION_INSTANCE

Method Name

CONSTRUCTOR

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


ASYNCHRONOUS " TYPE ABAP_BOOL
DESCRIPTION " TYPE STRING
ID " TYPE GUID_32
LANGUAGE " TYPE LAISO
OPTIONAL " TYPE ABAP_BOOL
PROCESSOR " TYPE SY-UNAME
STATUS " TYPE INT4
TECH_NAME " TYPE STRING
TEMPLATE_ID " TYPE GUID_32
TITLE " TYPE STRING
TYPE " TYPE INT4
VERSION " TYPE EUP_VERSION_NUMBER

Exceptions:



Example ABAP coding

This method is a Class Constructor so it is called automatically when the class is accessed for the first time. The below code doesnt really make sense as it cant be executed as a stand alone method but this is how it would look if it was a normal static method.


DATA:
ld_ASYNCHRONOUS TYPE ABAP_BOOL ,
ld_DESCRIPTION TYPE STRING ,
ld_ID TYPE GUID_32 ,
ld_LANGUAGE TYPE LAISO ,
ld_OPTIONAL TYPE ABAP_BOOL ,
ld_PROCESSOR TYPE SY-UNAME ,
ld_STATUS TYPE INT4 ,
ld_TECH_NAME TYPE STRING ,
ld_TEMPLATE_ID TYPE GUID_32 ,
ld_TITLE TYPE STRING ,
ld_TYPE TYPE INT4 ,
ld_VERSION TYPE EUP_VERSION_NUMBER.

" ld_ASYNCHRONOUS = "
" ld_DESCRIPTION = "
" ld_ID = "
" ld_LANGUAGE = "
" ld_OPTIONAL = "
" ld_PROCESSOR = "
" ld_STATUS = "
" ld_TECH_NAME = "
" ld_TEMPLATE_ID = "
" ld_TITLE = "
" ld_TYPE = "
" ld_VERSION = "

DATA: lo_INSTANCE TYPE REF TO EUP_ACTION_INSTANCE .
CALL METHOD lo_INSTANCE->CONSTRUCTOR(
EXPORTING
ASYNCHRONOUS = ld_ASYNCHRONOUS
DESCRIPTION = ld_DESCRIPTION
ID = ld_ID
LANGUAGE = ld_LANGUAGE
OPTIONAL = ld_OPTIONAL
PROCESSOR = ld_PROCESSOR
STATUS = ld_STATUS
TECH_NAME = ld_TECH_NAME
TEMPLATE_ID = ld_TEMPLATE_ID
TITLE = ld_TITLE
TYPE = ld_TYPE
VERSION = ld_VERSION ).