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

Handling Exceptions

Former Member
0 Likes
1,210

Hi,

How to catch the exception in the FM.i am call the proxy in the FM, but proxy raise two exceptions and i need to catch in the try and endtry, can any please tell me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
538

based on the SUBRC u can find out what kind of Exceptions u got.

Regards

Prabhu

3 REPLIES 3
Read only

Former Member
0 Likes
539

based on the SUBRC u can find out what kind of Exceptions u got.

Regards

Prabhu

Read only

Former Member
0 Likes
538

hi,

Just check the sy-sybrc value, but u should uncomment the Exceptions in the function module.

The value of the sy-subrc is the exception in the FM.

Read only

Former Member
0 Likes
538

Hi kiran,

depend on your retun code you can catch exception or check the sy-subrc value and catch exception with RAISE statement

~john