Lab - Qlik Replicate SAP To SQL
Lab - Qlik Replicate SAP To SQL
SAP to MS SQL
TABLE OF CONTENTS
Overview ..................................................................................................................................................... 3
Introduction ............................................................................................................................................... 3
Creating Replicate Task ............................................................................................................................. 4
Managing Endpoint Connections .............................................................................................................. 6
Creating Source Connections 6
Introduction
Before data can be sourced into Qlik’s Data Warehouse Solution, you must define a Replicate Task to
manage Source data change-data/capture from Source System, into the Database Landing Zone. A
Replicate task can only manage one source and one target system, but within a project, multiple Replicate
Tasks can be used – one for each Source System.
In this Lab, you will define and configure a Qlik Replicate task, which will extract data from SAP ERP System,
by way of SAP Extractors, loading them into Microsoft SQL Database. Below are the steps to accomplish this
task.
3. Enter your Username and Password as provided by provided by your System Administrator.
- This will take you to the Replicate Console.
- Log Stream - Log Stream Staging enables a dedicated Replicate task to save data changes from the transaction
log of a single source database and apply them to multiple targets, without the overhead of reading the logs for
each target separately.
- Full Load: Select to enable or disable Full Load options for this task. When full load is enabled, Qlik
Replicate loads the initial source data to the target endpoint. By default, a full load is carried out for this task. If
you want to change this setting after you begin working with this task, you make the change in the Task
Settings.
- Apply Changes: Select to enable or disable Apply Changes (Change Processing). When this option is
enabled, Qlik Replicate processes the changes. By default, change processing is carried out for this task. You can
view the change processing in the Monitor view. If you want to change this setting after you begin working with
this task, you make the change in the Task.
8. Select OK.
- This closes the New Task dialog box.
The Replicate Task is now ready for the creation of Endpoints.
Qlik Replicate delivers a number of Endpoints types for various Source and Target Systems.
Steps
1. In the Replication Console, Select Manage Endpoint Connections.
Working
SAP to MS SQL | Managing with
Endpoint SAP Data in Qlik Replicate Environment
Connections 6
6
2. To create Endpoints, Select + New Endpoint Connections.
3. Enter a meaningful Endpoint Name and Description for the Endpoint Connector.
4. With Source button selected, Select dropdown arrow to select appropriate Source.
Name:
Description:
Role: Source
Server Name:
Instance Identifier: 0
Client identifier:
Username:
Password:
Number Format:
Working
SAP to MS SQL | Managing with
Endpoint SAP Data in Qlik Replicate Environment
Connections 7
7
6. Select Test Connection.
Look for the “Test Connection succeeded” message. Any other message means something may be
incorrect with your Server/Database definitions, or the Server/Database is unavailable.
7. Select Save.
Working
SAP to MS SQL | Managing with
Endpoint SAP Data in Qlik Replicate Environment
Connections 8
8
Creating Target Connections
Steps
1. Select New Endpoint Connection.
2. Enter a meaningful Endpoint Name and Description for the Endpoint Connector.
Name:
Description:
Role: Target
Server:
• SQL Server Authentication
Username:
Password:
Database name:
Again, look for the “Test Connection succeeded” message. Any other message means something may be
incorrect with your Server/Database definitions, or the Server/Database is unavailable.
7. Select Save.
Steps
1. On the left of the Replicate Console panel, Select Source.
2. Locate the Source Endpoint created above or one which meets your Source definitions.
5. Locate the Target Endpoint created above or one which meets your Target definitions.
7. Select Save.
WorkingConnections
SAP to MS SQL | Assign Endpoint with SAP Data in Qlik Replicate Environment 10
10
Here is a “before” and “after” Endpoint assignments:
WorkingConnections
SAP to MS SQL | Assign Endpoint with SAP Data in Qlik Replicate Environment 11
11
Managing Target Database
Steps
1. Log into the target Microsoft SQL Database via Microsoft SQL Server Management Studio.
2. Ensure that login credentials are the same as that defined in the Target Endpoint.
3. Select Connect.
Working
SAP to MS SQL | Managing with SAP Data in Qlik Replicate Environment
Target Database 12
12
Managing SAP Extractors
Steps
1. Log into the SAP Server as defined in Source Endpoint.
2. Run Transaction Code RSA5 (SAP Transaction codes are not case-sensitive).
1The Activation process is a one-time process. Extractors stay active once activation takes place unless enhancements are done. Reactivation is
needed in this case.
Working
SAP to MS SQL | Managing with SAP Data in Qlik Replicate Environment
SAP Extractors 13
13
5. Enter Transaction Code /n/qtqvc/extrep.
Working
SAP to MS SQL | Managing with SAP Data in Qlik Replicate Environment
SAP Extractors 14
14
Managing Replicate Global Transformation
Steps
1. In Replicate Console, select Global Transformation.
5. Select Next.
6. Select Next.
Working
SAP to MS SQL | Managing with
Replicate SAPTransformation
Global Data in Qlik Replicate Environment 15
15
9. Select Finish.
Working
SAP to MS SQL | Managing with
Replicate SAPTransformation
Global Data in Qlik Replicate Environment 16
16
Managing Data Extraction
Replicate is ready to extract the data into SQL Database.
Steps
1. In the Qlik Replicate Console, Select Table Selection.
2. Select Search.
A list of available files/tables will appear.
Working
SAP to MS SQL | Managing with SAP Data in Qlik Replicate Environment
Data Extraction 17
17
4. Select > icon to transfer data to the Selected Tables column.
5. Select OK.
Working
SAP to MS SQL | Managing with SAP Data in Qlik Replicate Environment
Data Extraction 18
18
8. Select Yes to reload Data Target.
Once data load is completed, log into the Target Microsoft SQL Database and validate data.
Working
SAP to MS SQL | Managing with SAP Data in Qlik Replicate Environment
Data Extraction 19
19
Advanced Replicate Information
Bidirectional
Note: Bidirectional Replication Profile is limited to certain RDBMS (more of an Oracle EBS
or dynamics system in the Microsoft Environment. SAP Environment will not be support).
Setting up Bidirectional
When setting up bi-directional Replication - be aware that schema names, table names and column names are very
case-sensitive.
In Task settings
Rules to adhere to
1. Schemas should be specified exactly as they are in the database with the correct case-sensitivity.
2. The Bidirectional Source Schema should be equal to the Target Schema in the second Task,
and the case-sensitivity should be correct.
3. If the metadata is different (field names), they should be mapped correctly taking into account the
"correct" case-sensitivity of both databases.
Working
SAP to MS SQL | Advanced with
Replicate SAP Data in Qlik Replicate Environment
Information 20
20
The following issues are indicative of incorrectly configured Tasks
1. If you have a Primary and you get a warning about the PK.
2. If the loopback_prevention table is added to the UI capture list (attrep_loopback_prevention).
3. If you update Oracle and you see that the SQL to Oracle Task's statistics got updated, or the opposite
direction.
When you do an operation, you want to ignore then include an operation against this table:
Downside Every transaction applied to the target will update the attrep_loopback_prevention table.
Working
SAP to MS SQL | Advanced with
Replicate SAP Data in Qlik Replicate Environment
Information 21
21
About Qlik
Qlik’s vision is a data-literate world, where everyone can use data and analytics to improve decision-making and solve their most challenging
problems. Qlik provides an end-to-end, real-time data integration and analytics cloud platform to close the gaps between data, insights and action.
By transforming data into active intelligence, businesses can drive better decisions, improve revenue and profitability, and optimize customer
relationships. Qlik does business in more than 100 countries and serves over 50,000 customers around the world.
qlik.com
© 2021 QlikTech International AB. All rights reserved. All company and/or product names may be trade names, trademarks and/or registered trademarks of the respective owners with which they are
associated. CODE NEEDED FOR PUBLISHING
Working
SAP to MS SQL | Advanced with
Replicate SAP Data in Qlik Replicate Environment
Information 22
22