ABAP OO Class Methods

__CONSUME_RT_FAILURE SAP Method - Handle Runtime Error in Test







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

ACL_AUNIT_RESULT

Method Name

__CONSUME_RT_FAILURE

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


SENDER " TYPE

Exceptions:



Example ABAP coding


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


DATA:
ld_SENDER TYPE .

" ld_SENDER = "

DATA: lo_RESULT TYPE REF TO ACL_AUNIT_RESULT .
CALL METHOD lo_RESULT->__CONSUME_RT_FAILURE(
EXPORTING
SENDER = ld_SENDER ).