‎2005 Nov 21 6:50 AM
Hi all,
1. In a loop on RFCDES table
im calling a Function Module
passing different RFC Destinations.
2. In any of the loop pass, if any
error comes, there is a short dump.
3. How to avoid this short dump
and continue the loop till end
using try,catch etc ?
Regards,
Amit M.
‎2005 Nov 21 8:45 AM
Hi,
1. The FM is TH_USER_LIST
2. It does not have any EXCEPTIONS
3. I m calling it thru RFC
(using destination keyword)
4. At that time it gives error.
How to solve/catch it so that short dump
does not come.
Regards,
Amit M.
‎2005 Nov 21 6:52 AM
are these exception raised by the called FM's
did you handle the sy-subrc after calling these FMs
Regards
Raja
‎2005 Nov 21 7:03 AM
i think u have commented the exceptions.
Please uncomment them. if you need explicit handling u can do that also.
if the FM is custom defined. then you have to add the error table in the tables. col. so that if any error comes you have to handle it explicitly.
hope my answers will help u.
‎2005 Nov 21 8:45 AM
Hi,
1. The FM is TH_USER_LIST
2. It does not have any EXCEPTIONS
3. I m calling it thru RFC
(using destination keyword)
4. At that time it gives error.
How to solve/catch it so that short dump
does not come.
Regards,
Amit M.
‎2005 Nov 21 9:51 AM
http://help.sap.com/saphelp_nw04/helpdata/en/13/90a594a1ab0841bbb731bdec1a7fd7/content.htm - check this link for handling exception when calling RFCs
call the function like below
data: list like UINFO occurs 0 with header line .
CALL FUNCTION 'TH_USER_LIST' destination <dest>
TABLES
list = list
exceptions
communication_failure = 1
system_failure = 2 .
if sy-subrc ne 0 .
handle error here
endif .
Regards
Raja
‎2005 Nov 21 10:47 AM