29
How to extract an SAP Query in SSIS.

Click-Through Demo SAP Queries

  • Upload
    hakiet

  • View
    229

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Click-Through Demo SAP Queries

How to extract an

SAP Query in SSIS.

Page 2: Click-Through Demo SAP Queries

Before we begin, let‘s have a look at the SAP GUI to find out more about how a query looks like in SAP.

www.theobald-software.com 2

Page 3: Click-Through Demo SAP Queries

SAP Queries are created in SAP with Transaction SQ01.Insert the name of an existing query (1)

Execute the query (2)

www.theobald-software.com 3

Page 4: Click-Through Demo SAP Queries

This is the Selection Screen of the SAP Query.Fill in selection parameters (1)

Execute the query (2)

www.theobald-software.com 4

Page 5: Click-Through Demo SAP Queries

The result of the query.

www.theobald-software.com 5

Page 6: Click-Through Demo SAP Queries

www.theobald-software.com 6

Let‘s go back to Visual Studio and see how to integrate the query with an SSIS package.

Page 7: Click-Through Demo SAP Queries

We have to create a new SSIS project.Start Visual Studio. Click „File“ „New“ „Project…“(1)

Select „Integration Services“ “Integration Services Project“ (2)Enter a project name (3) and click OK to create the project (4)

www.theobald-software.com 7

Page 8: Click-Through Demo SAP Queries

Now we have a blank Control Flow. Drag and drop a Data Flow Task item into the Control Flow (1)

Double-click on the task to switch to the data flow view (2)

www.theobald-software.com 8

Page 9: Click-Through Demo SAP Queries

In the Data Flow Task we need a new Xtract connection.Right-click (1) and select „New Connection“ (2)

www.theobald-software.com 9

Page 10: Click-Through Demo SAP Queries

Select „XTRACT“ (1) Click „Add…“ to add the Xtract connection manager (2)

www.theobald-software.com 10

Page 11: Click-Through Demo SAP Queries

Double-click to open the Xtract IS Connection Manager(1) Fill in logon credentials (2) and host information (3)Test the connection (4) and Click OK to confirm (5)

www.theobald-software.com 11

Page 12: Click-Through Demo SAP Queries

Drag and drop the Xtract IS Query component (1) Double-click to automatically assign the connection manager to

the Xtract IS Query component (2) Click OK to confirm (3)

www.theobald-software.com 12

Page 13: Click-Through Demo SAP Queries

The Data Source dialog opens. Click to open the Look Up Query dialog (1)

Fill in the query name (2) and click to search (3)

www.theobald-software.com 13

Page 14: Click-Through Demo SAP Queries

Select your query (1)Click OK to confirm the selection (2)

www.theobald-software.com 14

Page 15: Click-Through Demo SAP Queries

The Select Options are automatically fetched from SAP (1)Now you can edit Select Options (2)

www.theobald-software.com 15

Page 16: Click-Through Demo SAP Queries

In the Select Options dialog fill in the desired values (1)You can also use SSIS variables (2)

Click OK to confirm the Select Options (3)

www.theobald-software.com 16

Page 17: Click-Through Demo SAP Queries

You can also apply a variant from SAP (recommended).Click to open the Look Up Variant dialog (1)

Select one of the variants (2)Click OK to confirm the selection (3)

www.theobald-software.com 17

Page 18: Click-Through Demo SAP Queries

Click for preview (1)

www.theobald-software.com 18

Page 19: Click-Through Demo SAP Queries

Now you can have a look at the preview.

www.theobald-software.com 19

Page 20: Click-Through Demo SAP Queries

Drag and drop a Data Flow Destination. In our example we use the OLE DB Destination (1)

www.theobald-software.com 20

Page 21: Click-Through Demo SAP Queries

We need another connection manager for the Destination.Right-click in this area and select „New OLE DB Connection…“ (1)

Set up the connection manager in the dialog to an SQL Server.

www.theobald-software.com 21

Page 22: Click-Through Demo SAP Queries

Drag the Xtract output flow path to the OLE DB Destination (1)Double-click to open the OLE DB Destination Editor (2)

www.theobald-software.com 22

Page 23: Click-Through Demo SAP Queries

Select an existing table from the dropdown list (1)or create a new one (2)

www.theobald-software.com 23

Page 24: Click-Through Demo SAP Queries

If you decide to create a new table, the „Create“ statement is automatically generated from the meta data (1)

Click OK to create the table and return to the previous screen (2)

www.theobald-software.com 24

Page 25: Click-Through Demo SAP Queries

Click on Mappings and the mapping between source and destination elements is generated automatically (1)

Click OK to confirm the mapping (2)

www.theobald-software.com 25

Page 26: Click-Through Demo SAP Queries

Now let‘s execute the package (1)

www.theobald-software.com 26

Page 27: Click-Through Demo SAP Queries

Xtract IS is fetching the data from SAP

www.theobald-software.com 27

Page 28: Click-Through Demo SAP Queries

The extraction of the data finished succesfully.26 rows are sent to the OLE DB Destination (1)

The output windows contains the log details (2)

www.theobald-software.com 28

Page 29: Click-Through Demo SAP Queries

If you have any questions or comments, please write at: [email protected]

www.theobald-software.com 29