ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / SAP functions
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
SAPConnect (Function)
In french: SAPConnecte
Connects a SAP R/3 system from the information given in the SAP structure.
Example
SAP.Address = "MINISAP.test.com"
SAP.SystemNumber = "0"
SAP.ClientNumber = "000"
SAP.User = "BCUSER"
SAP.Password = "MINISAP"
SAP.Language = ""
IDSAP is int = SAPConnect()
Syntax
<Result> = SAPConnect()
<Result>: Integer
  • Connection identifier,
  • -1 if an error occurred. ErrorInfo returns more information on the error.
Remarks
SAPConnect returns -1 only if the server cannot be accessed. If an error occurred (wrong login, wrong password or client account not found), SAP accepts the connection and returns an error during a call to a procedure.
Component: wd290mess.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
SAP HANA?
This connection work with SAP HANA???
Enoc777
18 May 2022

Last update: 05/26/2022

Send a report | Local help