‎2011 Jan 04 5:51 PM
Hi Experts,
I want to develop a program :
If the RFC doesnu2019t respond as it should, then an e-mail goes out to alert people that an RFC is down ( This is helpful when we had some third party software that was having trouble ) .
But I don't know how to start, can any one please guide me on this...
Thanks
Karthik
‎2011 Jan 04 6:00 PM
Use function RFC_PING to test the connection prior to performing a call or in a job step prior to the job step that requires the destination to be up.
‎2011 Jan 05 5:38 AM
Hi Brad,
Thank u for your valueble input!! But it does'nt meet my requirement
My requirement is : Program that goes out and performs a test on RFCu2019s for responses ( Particularly any third party s/w) .
If any RFc is down an email should trigger.
Please advice.
Karthik
Edited by: Karthik R on Jan 5, 2011 11:16 AM
‎2011 Jan 05 3:11 PM
The 3rd party software should handle most 'down' situations then. You only need to program for the destination being down, a timeout error, any other exception or explicit error message returned by the call (in the SAP application iteself). You should already have this type of error handling and alert processing implemented in your application code. I'm not sure that a functionality test from the SAP side makes sense if that's what you're asking for but it should mimic the actual process with dummy data if that's the case.
‎2011 Jan 05 3:34 PM
As wrote use a report with code like
* RFCTAB type table of RFCTEST
GET RUN TIME FIELD T1.
CALL FUNCTION 'RFC_PING' DESTINATION DEST
TABLES RFCTAB40 = RFCTAB
EXCEPTIONS SYSTEM_FAILURE = 1
MESSAGE RFC_MESS
COMMUNICATION_FAILURE = 2
MESSAGE RFC_MESS.
GET RUN TIME FIELD T2.
This program should accept a list of destinations, and will react to failure or too long delay with a call to SO_NEW_DOCUMENT_SEND_API1 or similar FM.
Regards,
Raymond