Hi all,
I'm trying to develop a C program using RFCSDK in order to monitor whether RFC R/3 connections (as listed in SM59) are working or not. I've been reading the sample codes under .../rfcsdk/text such as sapinfo.c and srfctest.c but I've not made any good progress about it.
How can I modify the existing code in order to suit my needs?
Regards,
Chipi.
Chipi:
Best way to start for testing connection is to find the default connection values defined in RFC_OPT structure in sapinfo.c (in my file it is on line 38) and replace the current values with those suitable for your SAP system. See code below:
======================================================
/* -
Defaults
---------------------------------------------*/
rfc_opt.client = "000";
rfc_opt.user = "SAP*";
rfc_opt.language = "E";
rfc_opt.password = "PASS";
rfc_opt.trace = 0;
rfc_opt.mode = RFC_MODE_R3ONLY;
=======================================================
Alternatively, simply compile the existing file, then execute "./sapinfo" with no arguments. You will be given a command usage message; follow the instructions to specify the logon parameters on the command line.
Regards,
D.
This doesn't make sense to me. The RFC destinations defined in SM59 are there to allow ABAP programs to reach out to external programs. The destinations have no meaning to an RFC client outside of SAP.
You need to write an ABAP program that looks up and pings the relevant RFC destinations, best done by something like:
CALL FUNCTION 'RFC_PING' DESTINATION xxx.
I wouldn't be surprised if such a program already exists. Check programs beginning with RSRFC*.
Scott
Add a comment