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,