Quantcast
Channel: SCN : Blog List - SAP LT Replication Server
Viewing all articles
Browse latest Browse all 38

SLT - Replicate view from Non-ABAP source

$
0
0

You want to replicate view in Oracle to HANA , while the view include two tables in different tablespace.

 

Preparation:

Table in oracle:

Table 1:  SLT_DEMO , SLT_DEMO is in tablespace TEST
sltora1.png

Table 2 : SLT_DEMO1 , SLT_DEMO1 is in tablespace SLTORA


sltora2.png

sltora3.png

VIEW : VIEW_TEST

sltora4.png

sltora5.png

 

 

Go to SE16 -> Table "IUUC_DB_TAB_KEYS" -> add entry like below.

DBCON NAME:  input your db connection

DB SCHEMA: your DB schema

INT TABNAME: The View that you want to replicate

INT FIELDNAME: The key of the view

IS KEY : X

KEY POSITION : The position of the KEY

sltora9.png

P.S. If you you have several keys, you could add severy entries one by one.

 

e.g.

sltora10.png

 

 

1. Go to transaction LTRS, then we need to define the advanced settings before we replicate the view.

  •    Transaction LTRS -> Choose your Mass Transfer ID -> Right click on "Table Settings" -> Add table -> Here we add the base table "SLT_DEMO".
  •    In "Structure Template", we input the view that we want to replicate
  •    In "Deviating Table Name" , here we can define the name that you want in your target system. If you want the name in target system the same as your source system. Here you can input "VIEW_TEST" the same name as the view in your source Oracle system.
  •    For "View for Initial Load" and "View for Replication", we input the same as "Structure Template"
  •    Then click "Save" button to save the settings.

sltora6.png

 

   Click on "Table Structure" tab, you will find that the structure has already been changed to the same as the view in Oracle.

sltora7.png

 

   Right click on "Performance Options" -> Add table SLT_DEMO -> Change the "Reading Type" to "5 Sender Queue". And click on "Save" button.

sltora8.png

 

2. Go to transaction LTRC -> Table overview -> Data Provisioning -> Start replication of table "SLT_DEMO" .

sltora11.png

sltora12.png

And you will find that the view VIEW_TEST has aleady been replicated to HANA.

sltora13.png


Viewing all articles
Browse latest Browse all 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>