Connect to SAP Business One DI Data from PowerBuilder

詳細情報をご希望ですか?

無償トライアル:

ダウンロードへ

製品の詳細情報へ:

SAP Business One DI ODBC Driver

SAP Business One DI ODBC Driver を使って、ODBC 接続をサポートするあらゆるアプリケーション・ツールからSAP Business One DI にデータ連携。

SAP Business One DI データにデータベースと同感覚でアクセスして、SAP Business One DI のAccounts、Activities、Orders、Customers データに使い慣れたODBC インターフェースで双方向連携。



This article demonstrates how to use the CData ODBC Driver for SAP Business One DI to connect to SAP Business One DI data and execute queries in PowerBuilder.

The CData ODBC Driver for SAP Business One DI can be used from any platform or development technology that supports ODBC, including Sybase PowerBuilder. This article shows how to connect to SAP Business One DI data and execute queries from the Database Painter and controls such as the DataWindow.

※製品について詳しい情報をご希望の方は以下からお進みください。

Create a Profile for the ODBC Driver for SAP Business One DI

Follow the steps below to use the Database Painter tool to create a database profile based on an ODBC DSN (data source name) for SAP Business One DI. In the Database Painter, you can use wizards and the UI to work with SAP Business One DI data.

  1. If you have not already done so, create an ODBC DSN for SAP Business One DI. The DSN contains the connection properties required to connect to SAP Business One DI data. You can use the Microsoft ODBC Data Source Administrator to create and configure DSNs. This is the last step of installing the driver. Required connection properties are the following:
    • Server
    • DBServerType
    • CompanyDB
    • User
    • Password

    SAP Business One DI への接続には以下の接続プロパティを設定します:

    • DBServerType: 接続されているサーバーのタイプ。
    • Server: 接続先のSAP Business One サーバー。
    • CompanyDB: 接続先の会社。
    • User: LicenseServer に接続するときに使用されるユーザー名。
    • Password: LicenseServer に接続するときに使用されるパスワード。
    • LicenseServer (optional): Server と異なる場合。
    • UseTrusted (optional): TRUE に設定した場合、Windows 資格情報を介してSQL Server への接続を確立していることを示します。
    See the help documentation for a guide to creating a SAP Business One DI DSN.
  2. In PowerBuilder, click Tools -> Database Painter.
  3. In the Objects window in the Database Painter, right-click the ODBC node and click New Profile.
  4. On the Connection tab, enter a name for the profile and select the SAP Business One DI DSN in the Data Source menu.
  5. To view and modify a table, right-click a table and then click Edit Data -> Grid.

Using SAP Business One DI Data with PowerBuilder Controls

You can use standard PowerBuilder objects to connect to ODBC data sources and execute queries. The following example shows how to retrieve SAP Business One DI data into a DataWindow. You can add the following code to the open method:

SQLCA.DBMS = "ODBC" SQLCA.DBParm = "ConnectString='DSN=CData SAP Business One DI Source'" CONNECT USING SQLCA; dw_oact.SetTransObject(SQLCA); dw_oact.Retrieve();