‎2006 Oct 05 8:11 AM
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
‎2006 Oct 05 8:13 AM
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
‎2006 Oct 05 8:22 AM
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
‎2006 Oct 05 8:22 AM
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