SapConnection Type
Describes a connection to the SAP system.
Remarks
The fields in this type are used when connecting to a SAP R/3 server. At the minimum, you must supply the Client, Host, User, and Password to connect and authenticate to a server.
Fields
Client String |
The client authenticating to the SAP system. Client, User, and Password are needed for authentication to the R/3 server. | ||||||||||||||||||
ConnectionType ConnectionTypes |
Specifies how the connection is made to the SAP server. This field specifies how the connection is made to the SAP server. The default value is ctNetWeaver (0). Not all values are applicable on all platforms. Please see the table below to determine which are applicable in your edition.
Dependency Notes If the component is not configured to use the SOAP interface, it will use the sapnwrfc.dll, librfc32.dll, librfc32u.dll, or the Java Connector (JCo) to connect to the SAP system. Although the Java Connector is only available when programming in Java on Windows. The NetWeaver RFC SDK (sapnwrfc.dll) offers both a 32 bit and 64 bit version. Likewise, the SAP RFC SDK offers as 32 bit and 64 bit version of both a unicode (librfc32u.dll) and non-unicode (librfc32.dll) library. The NetWeaver RFC SDK will be used if the ConnectionType is set to ctNetWeaver (0). The following libraries from the NetWeaver RFC SDK must be available at runtime:
The non-unicode library will be used if the ConnectionType is set to ctClassic (1). This simply requires that the librfc32.dll be placed in a location that is accessible at runtime. (0). The unicode library will be used if the ConnectionType is set to ctClassicUnicode (2). The following libraries from the SAP RFC SDK must be available at runtime:
The Java Connector (JCo) will be used if the ConnectionType is set to ctJavaConnector (4). In order to use this, you must first add the sapjco3.jar file to your project. The 32 bit and 64 bit versions do not require any special settings within the components. The only requirement is that your application target the same platform as the DLL. | ||||||||||||||||||
Destination String |
Reference to an existing destination that is specified in a local saprfc.ini file. If the connection is not described completely by the remaining SapConnection fields, this field is used as a key into an ini file where the connection should then be described. See the SAP Rfc Sdk for more information about using ini files with the Rfc library. | ||||||||||||||||||
GatewayHost String |
The gateway host you wish to connect to. If not specified, the SAP system will assume to run at Host. | ||||||||||||||||||
GatewayService String |
The gateway service you wish to connect to. If not specified, the SAP system will use the default "sapgw##" where the "##" is the SystemNumber. | ||||||||||||||||||
Host String |
Host name of the target system. Host names can be regular host names defined in a "hosts" file, an IP address like "123.123.123.123", or a saprouter address such as "/H/hostname/S/port/H/host/S/port/..." | ||||||||||||||||||
Language String |
The language value to be used when connecting SAP system. This should be set to the ISO 639-1 for the language the SAP system uses. By default this is set to "EN". | ||||||||||||||||||
Password String |
The password used to authenticate to the SAP system. Client, User, and Password are needed for authentication to the R/3 server. | ||||||||||||||||||
SoapURL String |
The URL of the SOAP service on the SAP system. When ConnectionType is set to ctSOAP (3) this field specifies the URL of the SOAP service. Please note that the ParamType ctTable is not supported when using SOAP. | ||||||||||||||||||
SystemNumber Integer |
The number by which the target system is defined. The valid range is 0 to 99, but in general, this is 0. | ||||||||||||||||||
User String |
The user that is authenticating to the SAP system. Client, User, and Password are needed for authentication to the R/3 server. |
Constructors
[VB.NET] Public SapConnection() [C#] public SapConnection();
[VB.NET] Public SapConnection(ByVal Destination As String, ByVal Client As String, ByVal User As String, ByVal Password As String) [C#] public SapConnection(string destination, string client, string user, string password);