sap_client()

Read(4301) Label: create, sap server connection,

Description:

Connect to an SAP server.

Syntax:

sap_client@f(filename)

sap_client@f(filename:charset)

sap_client@f(FileObject) 

sap_client(user, passwd, hostname, sysnc, client, lang)

Note:

This external library function (See External Library Guide) creates a connection to an SAP server.

Parameter:

filename

Connection configuration file.

charset

Character set of the connection configuration file.

fileObject

Connection configuration file object handle.

user

SAP user name.

passwd

SAP password.

hostname

SAP server’s IP.

sysnc

System number.

client

Client number.

lang

Language.

Return value:

SAP connection handle

Example:

 

A

 

1

=sap_client@f ("C:/sap/ABAP_AS_WITH_POOL.jcoDestination")

SAP server connection.

2

=sap_client@f("C:/sap/ABAP_AS_WITH_POOL.jcoDestination":"UTF-8")

SAP server connection.

3

=file("C:/sap/ABAP_AS_WITH_POOL.jcoDestination")

 

4

=sap_client@f(A3)

Connect to an SAP server.

via configuration file handle.

5

=sap_client("TEST","UN513031","192.168.0.188","00","000",”E")

SAP server connection.