Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

ABAP Object Exception handling

Former Member
0 Kudos

Hi all,

I would very much like some links to learn how to create Exception objects, and how to use them in my ABAP Object apps.

Thanks in advance!


Former Member
0 Kudos

Hi Thomas,

there is a nice tutorial from Thomas Weiss:

<a href="/people/thomas.weiss/blog/2005/03/22/the-new-class-based-exception-handling-in-abap--part-1 New Class-Based Exception Handling in ABAP - Part 1</a>

<a href="/people/thomas.weiss/blog/2005/04/04/the-new-class-based-exception-handling-in-abap--part-2 New Class-Based Exception Handling in ABAP - Part 2</a>

<a href="/people/thomas.weiss/blog/2005/04/13/the-new-class-based-exception-handling-in-abap--part-3 New Class-Based Exception Handling in ABAP - Part 3</a>

<a href="/people/thomas.weiss/blog/2005/04/26/the-new-class-based-exception-concept-in-abap--part-4 New Class-Based Exception Concept in ABAP - Part 4</a>

<a href="/people/thomas.weiss/blog/2005/05/08/the-new-exception-handling-concept-in-abap--part-5 New Exception Handling Concept in ABAP - Part 5</a>



Former Member
0 Kudos


Object Services classes work exclusively with Class-Based Exceptions. The exception classes are predefined in the system. They always start with CX_OS_.

Exceptions of the CX_DYNAMIC_CHECK category are passed to the caller using the RAISING clauses of interface methods; class-specific methods of the class actor; attribute access methods of persistent classes; in the transaction object; and the system actors. Such exceptions must be handled here by the user, (in contrast to the general rule that exceptions should be handled within a procedure, not passed along the hierarchy). Thus semantically, the above exceptions of the CX_DYNAMIC_CHECK category belong more to the CX_STATIC_CHECK category. However, they could not be defined as such, due to their incompatibility with existing Object Services applications.

Check out the link.