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

Exception Handler

Former Member
0 Likes
403

Hello Guyz!

Hope this post finds you all high on spirit. I am having a serios problem of exception handling. I am just giving scenario of my situation. Let say one standard SAP function module is there, where no exception handling logic has been provided. Rite now while executing my program it is going to dump as I am using that function module. So what best I can do to avoid this situation without modifying standard SAP function module. Neither I want to search for any note for the particular function module. All I need from you guyz is, something that I can do from my application program or in the customer namespace to avoid this bottleneck.

Thanks

Manas

3 REPLIES 3
Read only

Former Member
0 Likes
378

Hi,

Check for SY-SUBRC once Standard function Module is Executed. If SY-SUBRC <> 0. then EXIt or STOP (As per your Requirement). This could avoid from Dump.

Hope this helps out.

Cheers,

Prashanth

Read only

Former Member
0 Likes
378

Hi Manas,

Try to execute the Function module in SE37 with the parameters you are passing through the program. If it is's giving a dump then you need to debug & check with parameter is problematic. I think there is some problem with export/table/changing parameters.

Regards,

Dharitree

Read only

Former Member
0 Likes
378

Hi

When u use call the fm try to use the excptions OTHER and ERROR_MESSAGES

..................

EXCEPTIONS

ERROR_MESSAGE = 1

OTHERS = 2.

Anyway if the dump is raised by another fm called by your fm probably u should check your enviroment because some data are missing.

Max