ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / SAP functions
  • Overview
  • SAP variable
  • Example
  • Connection to a SAP server
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SAP variable
Overview
The SAP variable is used to configure the parameters of the connection to the SAP server. These parameters will be used by SAPConnect.
SAP variable
The SAP variable contains the following elements:
SAP.AddressCharacter string
Address of the SAP system.
SAP.ClientNumberCharacter string
Number of the client who connects.
SAP.ConnectionCharacter string
Description of the SAP connection. For more details, see the specific documentation about SAP.
Example:
SAP.Connexion = "TYPE=3 ASHOST=MINISAP.test.com SYSNR=00
CLIENT=000 USER=BCUSER PASSWD=minisap"
Remark: if this parameter is specified, the other SAP variables are ignored.
SAP.LanguageCharacter string
Defines the language used for the connection ("en" for English for example)
SAP.PasswordPassword of the user who connects.
SAP.SystemNumberInteger
Number of the SAP system.
SAP.UserCharacter string
Name of the user who connects.
Example

Connection to a SAP server

SAP.Address = "MINISAP.test.com"
SAP.SystemNumber = "0"
SAP.ClientNumber = "000"
SAP.User = "BCUSER"
SAP.Password = "MINISAP"
SAP.Language = ""
IDSAP is int = SAPConnect()
See also
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/06/2023

Send a report | Local help