cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with RFCOpenConnection in NW RFC SDK

Former Member
0 Kudos

Dear All,

          I need to call a FM in another SAP system from a linux(fedora 17) server, and I'm using NW RFC SDK. Below is the C++ code piece:

    RFC_RC rc;

    RFC_CONNECTION_PARAMETER repoCon[6], serverCon[3];

    RFC_CONNECTION_HANDLE repoHandle, serverHandle;

    RFC_ERROR_INFO errorInfo;

   

   

    repoCon[0].name = cU("client"); repoCon[0].value = cU("800");

    repoCon[1].name = cU("user"); repoCon[1].value = cU("<MY_USER_NAME>");

    repoCon[2].name = cU("passwd"); repoCon[2].value = cU("<MY_PASSWORD>");

    repoCon[3].name = cU("lang"); repoCon[3].value = cU("EN");

    repoCon[4].name = cU("ashost"); repoCon[4].value = cU("<THE_IP_ADDRESS_OF_THE_SAP_SYSTEM");

    repoCon[5].name = cU("sysnr"); repoCon[5].value = cU("12");

    repoHandle = RfcOpenConnection (repoCon, 6, &errorInfo);

    However, RfcOpenConnection keeps failing with error RFC_INVALID_PARAMETER in errorinfo. And next to this error code, this is nothing else in errorinfo.

    The connection parameters are fine. I'm new to this, and I searched for a while in SDN and didn't find any clue.

    Please help!

Thanks a lot!

Shu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shu,

please check the following notes Note 1056696 - Compiling and Linking RFC Programs with the SAP NW RFC SDK and Note 763741 - Skript for string literal support for Unicode RFC SDK. You need to correctly compile program with unicode support.

Regards

Roman

Answers (0)