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

Cascading exceptions through calling chain

Former Member
0 Likes
420

Debbuging SAP code over the years, I often witnessed a situation where exceptions were cascading automatically between successive nested function calls. I try to reproduce the same without success

If I do not declare the exception at the call, I end up with a short dump(classic), if I do declare it, then I get the requested subrc but it does not casade back to the calling function.

How the hell SAP manages this

1 REPLY 1
Read only

hadiman_ngoei
Product and Topic Expert
Product and Topic Expert
0 Likes
355

I don't exactly understand the situation, but if in the calling program, you put something like:

CALL FUNCTION abc

EXPORTING

IMPORTING

TABLES

EXCEPTIONS

error_message = 1.

Any A,E errors in the called FM will be handled/cascaded to the calling program.

For more information, check out the online documentation (t-code ABAPDOCU) for 'CALL FUNCTION'

Thanks & regards,

Hadiman