ABAP OO Class Methods

CONSTRUCTOR SAP Constructor Method of CX_WFA_TR_MNGR_ERROR







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

CX_WFA_TR_MNGR_ERROR

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


PREVIOUS " TYPE PREVIOUS
PROTOCOL " TYPE REF TO IF_WFA_PROTOCOL
TEXTID " TYPE IF_T100_MESSAGE=>T100KEY

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_PREVIOUS TYPE PREVIOUS ,
ld_PROTOCOL TYPE REF TO IF_WFA_PROTOCOL ,
ld_TEXTID TYPE IF_T100_MESSAGE=>T100KEY.

" ld_PREVIOUS = "
" ld_PROTOCOL = "
" ld_TEXTID = "

DATA: lo_ERROR TYPE REF TO CX_WFA_TR_MNGR_ERROR .
CALL METHOD lo_ERROR->CONSTRUCTOR(
EXPORTING
PREVIOUS = ld_PREVIOUS
PROTOCOL = ld_PROTOCOL
TEXTID = ld_TEXTID ).