Establishing a Connection
The objects available within our connector are accessible from the "cdata.sapbusinessone" module. To use the module's objects directly:
- Import the module as follows:
import cdata.sapbusinessone as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("Url=http://localhost:50000/b1s/v1;User=username;Password=password;CompanyDB=dbname;")
Connecting to SAP Business One APIs
To connect to data, specify the following:- Url: Set this to your SAP Business One Service Layer root URL.
- CompanyDB: Set this to your SAP Business One company database.
Authenticating to SAP Business One APIs
To authenticate to SAP Business One, you must provide the User and Password connection properties.