How to Import SAP Netweaver Gateway Data into SQL Server using SSIS



Easily back up SAP Netweaver Gateway data to SQL Server using the SSIS components for SAP Netweaver Gateway.

Using SQL Server as a backup for critical business data provides an essential safety net against loss. Backing up data to SQL Server enables business users to more easily connect that data with features like reporting, analytics, and more.

This example demonstrates how to use the CData SSIS Tasks for SAP Netweaver Gateway inside of a SQL Server SSIS workflow to transfer SAP Netweaver Gateway data into a Microsoft SQL Server database.

Add the Components

To get started, add a new SAP Netweaver Gateway source and SQL Server ADO.NET destination to a new data flow task.

Create a New Connection Manager

Follow the steps below to save SAP Netweaver Gateway connection properties in a connection manager.

  1. In the Connection Manager window, right-click and then click New Connection. The Add SSIS Connection Manager dialog is displayed.
  2. In the Connection Manager type menu, select SAPGateway. The CData SAP Netweaver Gateway Connection Manager is displayed.
  3. Configure 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 Source

Follow the steps below to specify the query to be used to extract SAP Netweaver Gateway data.

  1. Double-click the SAP Netweaver Gateway source to open the source component editor.
  2. In the Connection Manager menu, select the connection manager previously created.
  3. Specify the query to use for the data extraction. For example: SELECT ProductID, Quantity FROM SalesOrderLineItems WHERE Quantity < 15
  4. Close the SAP Netweaver Gateway Source control and connect it to the ADO.NET Destination.

Configure the SQL Server Destination

Follow the steps below to specify the SQL server table to load the SAP Netweaver Gateway data into.

  1. Open the ADO.NET Destination and add a New Connection. Enter your server and database information here.
  2. In the Data access mode menu, select "table or view".
  3. In the Table Or View menu, select the table or view to populate.
  4. Configure any properties you wish to on the Mappings screen.

Run the Project

You can now run the project. After the SSIS Task has finished executing, your database will be populated with SAP Netweaver Gateway data.

Ready to get started?

Download a free trial of the SAP Netweaver Gateway SSIS Component to get started:

 Download Now

Learn more:

SAP Netweaver Gateway Icon SAP Netweaver Gateway SSIS Components

Powerful SSIS Source & Destination Components that allows you to easily connect SQL Server with SAP Netweaver Gateway through SSIS Workflows.

Use the SAP Netweaver Gateway Data Flow Components to synchronize with SAP Netweaver Gateway Entities, and more. Perfect for data synchronization, local back-ups, workflow automation, and more!