Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RFC response

Former Member
0 Likes
731

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

4 REPLIES 4
Read only

brad_bohn
Active Contributor
0 Likes
677

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.

Read only

Former Member
0 Likes
677

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

Read only

brad_bohn
Active Contributor
0 Likes
677

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.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
677

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