Ready to get started?

Learn more about the CData SSIS Components for SAP Netweaver Gateway or download a free trial:

Download Now

Export Data from SQL Server to SAP Netweaver Gateway through SSIS

Easily push SQL Server data to SAP Netweaver Gateway using the CData SSIS Tasks for SAP Netweaver Gateway.

SQL Server databases are commonly used to store enterprise records. It is often necessary to move this data to other locations. The CData SSIS Task for SAP Netweaver Gateway allows you to easily transfer SAP Netweaver Gateway data. In this article you will export data from SQL Server to SAP Netweaver Gateway.

Add Source and Destination Components

To get started, add a new ADO.NET Source control and a new SAP Netweaver Gateway Destination control to the data flow task.

Configure the ADO.NET Source

Follow the steps below to specify properties required to connect to the SQL Server instance.

  1. Open the ADO.NET Source and add a new connection. Enter your server and database information here.
  2. In the Data access mode menu, select "Table or view" and select the table or view to export into SAP Netweaver Gateway.
  3. Close the ADO NET Source wizard and connect it to the destination component.

Create a New Connection Manager for SAP Netweaver Gateway

Follow the steps below to set required connection properties in the Connection Manager.

  1. Create a new connection manager: In the Connection Manager window, right-click and then click New Connection. The Add SSIS Connection Manager dialog is displayed.
  2. Select CData SAPGateway Connection Manager in the menu.
  3. Configure the connection properties.

    SAP Gateway allows both basic and OAuth 2.0 authentication. You can use basic authentication to connect to your own account, or you can use OAuth to enable other users to retrieve data from your service with their accounts. In addition to authenticating, set the following connection properties to access SAP Gateway tables.

    • Url: Set this to the URL of your environment, or to the full URL of the service. For example, the full URL might appear as: https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/. In this example, the environment URL would just be: https://sapes5.sapdevcenter.com.
    • Namespace: Set the appropriate Service Namespace. In the example above, IWBEP is the namespace. It is optional if the full URL to the service is specified.
    • Service: Set this to the service you want to retrieve data from. In the example above, the service is GWSAMPLE_BASIC. It is not required if the full URL is specified.

    Authenticate via Basic Authentication

    In basic authentication, you use your login credentials to connect. Set the following properties:

    • User: This is the username you use to log in to SAP Gateway.
    • Password: This is the password you use to log in to SAP Gateway.

    Authenticate via OAuth Authentication

    You can connect to SAP Gateway using the embedded OAuth connectivity (without setting any additional authentication connection properties). When you connect, the OAuth endpoint opens in your browser. Log in and grant permissions to complete the OAuth process. See the OAuth section in the online Help documentation for more information on other OAuth authentication flows.

Configure the SAP Netweaver Gateway Destination

In the destination component Connection Manager, define mappings from the SQL Server source table into the SAP Netweaver Gateway destination table and the action you want to perform on the SAP Netweaver Gateway data. In this article, you will insert SalesOrderLineItems entities to SAP Netweaver Gateway.

  1. Double-click the SAP Netweaver Gateway destination to open the destination component editor.
  2. In the Connection Managers tab, select the connection manager previously created.
  3. In the Use a Table, menu, select SalesOrderLineItems. In the Action menu, select Insert.
  4. On the Column Mappings tab, configure the mappings from the input columns to the destination columns.

Run the Project

You can now run the project. After the SSIS Task has finished executing, data from your SQL table will be exported to the chosen table.