09-25-2006 1:59 PM
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!
09-25-2006 2:07 PM
09-25-2006 2:20 PM
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>
Regards,
Stefan
09-25-2006 2:32 PM
hi,
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.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/66/bc7aec43c211d182b30000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/fb/35c62bc12711d4b2e80050dadfb92b/content.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/17/f9f44295bae2499e8c56ca4f5106fb/frameset.htm
Regards,
Richa.