Hi there,
I have just downloaded the latest version of the SAP NW RFC SDK (NWRFC_7-20004565.SAR) for Linux 64 bit from the Service Marketplace and am trying to run the demo programs.
NOTE: I removed the "sapnwrfc.ini" from the current directory so that it would not be used at all..
Also note that I can use the OLD RFC SDK and connect happily to the same SAP system I am trying to connect to below using the SAP NW RFC SDK....so I definetly have the cirrect settings.....
So I compiled a CLIENT test program like:
gcc -m64 -Wall -g ./sflightClient.c -I/home/lynton/Desktop/nwrfcsdk/include -L/home/lynton/Desktop/nwrfcsdk/lib -lsapnwrfc -lsapucum -o ./sflightClient
And then passed in VALID paramters to an SAP system I have access to and I keep getting RFC_INVALID_PARAMETER even though I have not touched the code below in the sflightClient.c program
loginParams[0].name = cU("ashost"); loginParams[0].value = argc > 1 ? argv[1] : cU("hostname"); loginParams[1].name = cU("sysnr"); loginParams[1].value = argc > 2 ? argv[2] : cU("50"); loginParams[2].name = cU("user"); loginParams[2].value = argc > 3 ? argv[3] : cU("user"); loginParams[3].name = cU("passwd"); loginParams[3].value = argc > 4 ? argv[4] : cU("******"); loginParams[4].name = cU("client"); loginParams[4].value = argc > 5 ? argv[5] : cU("800"); loginParams[5].name = cU("lang"); loginParams[5].value = cU("EN");
I have also tried the stfcDeepTableServer.c program....and there I put in VALID settings....(and made the parameters UPPERCASE just like the settings in the "sapnwrfc.ini" file....
serverCon[0].name = cU("PROGRAM_ID"); serverCon[0].value = cU("TEST_SERVER"); serverCon[1].name = cU("GWHOST"); serverCon[1].value = cU("test.server"); serverCon[2].name = cU("GWSERV"); serverCon[2].value = cU("sapgw00"); repoCon[0].name = cU("CLIENT"); repoCon[0].value = cU("000"); repoCon[1].name = cU("USER"); repoCon[1].value = cU("BCUSER"); repoCon[2].name = cU("PASSWD"); repoCon[2].value = cU("minisap"); repoCon[3].name = cU("LANG"); repoCon[3].value = cU("EN"); repoCon[4].name = cU("ASHOST"); repoCon[4].value = cU("test.server"); repoCon[5].name = cU("SYSNR"); repoCon[5].value = cU("00"); repoCon[6].name = cU("TRACE"); repoCon[6].value = cU("3");
I have the UUIDD daemon running perfectly on my box, but yet I keep getting this RFC_INVALID_PARAMETER regardless if I just test the SERVER REGISTRATION or a simple client connection.
I am connecting to a NON unicode system but that would not make a difference.....
Any idea what would cause this? Any help would be greatly appreciated ....
Thanks
Lynton