ABAP OO Class Methods

CONSTRUCTOR SAP Constructor Method of CX_EHPRC_I5SESSION_FAULT_EXCEP







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

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


AUTOMATIC_RETRY " TYPE PRX_AUTOMATIC_RETRY
CONTROLLER " TYPE PRXCTRLTAB
ERROR_CODE " TYPE EHPRC_I5SESSION_ERROR_CODE
ERROR_MESSAGE " TYPE STRING
NO_RETRY " TYPE PRX_NO_RETRY
PREVIOUS " TYPE PREVIOUS
TEXTID " TYPE TEXTID
WF_TRIGGERED " TYPE PRX_WORKFLOW_TRIGGERED

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_AUTOMATIC_RETRY TYPE PRX_AUTOMATIC_RETRY ,
ld_CONTROLLER TYPE PRXCTRLTAB ,
ld_ERROR_CODE TYPE EHPRC_I5SESSION_ERROR_CODE ,
ld_ERROR_MESSAGE TYPE STRING ,
ld_NO_RETRY TYPE PRX_NO_RETRY ,
ld_PREVIOUS TYPE PREVIOUS ,
ld_TEXTID TYPE TEXTID ,
ld_WF_TRIGGERED TYPE PRX_WORKFLOW_TRIGGERED.

" ld_AUTOMATIC_RETRY = "
" ld_CONTROLLER = "
" ld_ERROR_CODE = "
" ld_ERROR_MESSAGE = "
" ld_NO_RETRY = "
" ld_PREVIOUS = "
" ld_TEXTID = "
" ld_WF_TRIGGERED = "

DATA: lo_EXCEP TYPE REF TO CX_EHPRC_I5SESSION_FAULT_EXCEP .
CALL METHOD lo_EXCEP->CONSTRUCTOR(
EXPORTING
AUTOMATIC_RETRY = ld_AUTOMATIC_RETRY
CONTROLLER = ld_CONTROLLER
ERROR_CODE = ld_ERROR_CODE
ERROR_MESSAGE = ld_ERROR_MESSAGE
NO_RETRY = ld_NO_RETRY
PREVIOUS = ld_PREVIOUS
TEXTID = ld_TEXTID
WF_TRIGGERED = ld_WF_TRIGGERED ).