HANDLE_EXCEPTION SAP Method Handles Exception After Reading State
Below is documentation, parameters and attributes of ABAP Method HANDLE_EXCEPTION within SAP class IF_OS_STATE. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_OS_STATE 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 HANDLE_EXCEPTION can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method HANDLE_EXCEPTION
.| Name | Type | Data Type | Description | Default Value |
| I_EXCEPTION | Importing | TYPE REF TO IF_OS_EXCEPTION_INFO | Exception | |
| I_EX_OS | Importing | TYPE REF TO CX_OS_OBJECT_NOT_FOUND | Exception |
Exceptions of Method HANDLE_EXCEPTION
CX_OS_OBJECT_NOT_FOUND - Object Services: Exceptions (Dynamic Check)Example ABAP coding
DATA: lo_class TYPE REF TO IF_OS_STATE.
DATA: lv_I_EXCEPTION TYPE IF_OS_EXCEPTION_INFO,
lv_I_EX_OS TYPE CX_OS_OBJECT_NOT_FOUND,
lv_other TYPE c.
CALL METHOD lo_class=>HANDLE_EXCEPTION(
EXPORTING
I_EXCEPTION = lv_I_EXCEPTION
I_EX_OS = lv_I_EX_OS ).
Links to Related Class(s)
IF_OS_ST...Full list of available SAP object classes
Search for further information about these or an SAP related objects