The Netweaver RFC library is distributed along with SAP GUI 7.50 and later, and can also be obtained as a standalone download from the SAP marketplace. It consists of the following files:
sapnwrfc.dllicudt34.dllicuin34.dllicuuc34.dlllibicudecnumber.dlllibsapucum.dll
If you install SAPGUI 7.50 or later, there are no additional steps to take. If using the standalone download from the link above, you must either
-
add the location of the
libfolder to thePathenvironment variable, as described in the SCN link or -
set the Rfc Connector option
nwrfc.pathto the path where you extracted thelibfolder from the .sar archive, as shown in the example below:
// create a session instance NWRfcSession session = new NWRfcSession(); session.Option["nwrfc.path"] = "C:\path\to\nwrfcfolder\lib\"; // set up system and logon data (omitted) // ... session.connect();
