Skip to Content
0
Former Member
May 08, 2008 at 06:33 AM

Handling RFC Calls

29 Views

Hi,

I have a program to trigger RFC call from ABAP.

Can someone help me how to handle or show error message when RFC destination(Connection) is not ON.

Currently it is going for Short dump when Connection is not ON or Connection is not establised.

Current code:

CALL FUNCTION 'RFC_PING'

DESTINATION 'JCOSAMPLE'.

CALL FUNCTION 'ZSAMPLE_JAVA_FM'

DESTINATION 'JCOSAMPLE'

EXPORTING

hostname = sy-sysid

username = uname

password = pword.

Any help will be greatly appreciated!!

Thanks,