Skip to main content
Skip table of contents

f$SAP_Login (f$SAP_Anmelden)


f$SAP_Login (f$SAP_Anmelden)

The SAP system is logged in to with this function. This function must always be called before using the interface. If you do not, the interface attempts to log in by itself. The data entered in the SAP tab in the ePOS settings is used for this.

If further log-in options are needed, the f$SAP_LoginEx function can also be used.

Syntax:

Status = f$SAP_Login (System,Hostname,Routerstring,Systemnumber,Client,User,Password,Language,Trace)

 

Argument

Type

Meaning

 

System

Integer

The SAP system used. 3 for R/3 2 for R/2

 

Hostname

String

Computer name or IP address of the SAP application server

 

Routerstring

String

If this application server can only be reached over a SAP gateway, a router string must be entered at this point, otherwise "

 

Systemnumber

String

System number

 

User

String

User

 

User

String

Log-in name

 

Password

String

User password

 

Language

String

System language used (e.g.: en)

 

Trace

Integer

0: no log file
1 : a log file for the interface is written in the workstation directory

  1. : like 1 plus activation of the ABAP debugger

Result:

Integer

Status of log-in process:

-2 : the object cannot be created

-1 : cannot log in with this information

0 : successfully logged in

Example:

Status = f$SAP_Login (3,'194.180.172.133','/H/194.180.172.201/H/','00','020','ACBIS','ACBIS','de',1)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.