Sie sind auf Seite 1von 77

SLT transformation:

Transform data from ecc to hana b y using SLT.

Click on startclick on sap front endclick on sap logon.


Login to ECC. Double click on ECC_EHP7.
Enter user name as best and password as welcome123.

Press enter.

First create rfc connection.

Here I am using already created configuration. This is our RFC configuration.


Click on create session.
Enter tcode as SE11.

Press enter.
Enter table name. Here I am taking ZCOPATABLE1 in database table.

Click on display.
Here we see our table with respective columns like ZKUNNR, ZMATNR.
First, replicate ZCOPATABLE1.

Make sure the table has status. The status is table is in replicating process.

So, go to hana studio.

Click on startclick on sap hana click on SAP HANA studio.


Click on windowclick on perspectiveclick on Reset perspective.

Whenever you click on reset perspective quick view is opened.


In Quick view, will be seeing at right side of the corner.

Click on data provisioning.


Select one system.

Select systemclick on finish.


Select our source system.

Here source system is vas (sapslt_vas_20).


Select target schema also.

Here we don’t know target schema. Here we have list of target schemas are available.
So, for knowing name of the target schema we use LTRC in ecc.

Here LTRC is used to see the configuration.

For knowing target schema name go to sap logon.

Click on create session.


Enter Tcode as LTRC.

Press enter.
Here we see target connection. Which is our target schema.

This is already created configuration. I am using, this configuration. Configuration name is


SAPECC_539.

In hana studio, select that target schema. Name as SAPECC_539.


Here we select that name.

And below we see default tables. Default tables are DD02T, DD02L and DD08L.

Go back to ECChere we see what are the configurations are available.

SAPECC_539 is my configuration.
In my configuration, default tables only present.

I want to add another table.

Click on data provisioning.


Enter our table. Which table do you want to replicate.

Here I take ZCOPATABLE1.

Click on execute.

At top we see refresh button. Click on refresh.


At bottom, we see status as table scheduled with action start replication. Which mean replication
is done.

Here we see our replicated table.

Double click on our table.


Go to hana studio, here also check whether the table is replicated or not.

Click on refreshhere we see our replicated table.

We don’t have to do manually refresh here. This refresh is action and status.

At top we see interval by default it set to 60 seconds.


We can change interval to 5 seconds for auto refresh.

Click on refresh.
Go to ECC. This table with respective columns.

Go to display page. Click on display change icon.


Here we see all fields. Now I would like to add another field.

First enter the field nameclick on predefined type.


Like below, we add field.

This is activating symbol. Click on activate.


Click on execute.

Click on continue.
Click on yes.

Here we see our log display.

Click on back symbol.


Again go back.

Click on content.
Click on execute.

Here we see our newly added column.


Let’s check newly added column is available in hana studio.

Whatever name we give to configuration the same can be seen in hana studio in catalog.

Go to hana studioexpand SYSTEMexpand catalog<--filter our schemaexpand tables.


Here we see our replication table.
Right click on tableselect open definition.

Here also we see our newly added column.


Let’s go back to the data browse table in ecc.

Click on change. Change is used for inserting values.

Enter value.
Click on save.

Here we see our inserting value.


Now I want to insert another column also.

Select columnclick on change.

Enter value.
Click on save.

Here we see our inserting values.

Go back to hana studio.


Once check whether the inserted values are available in hana.

Select our tableright click on itclick on open data preview.

Here we see our recently inserted values.


We can change, insert, delete, add columns, change data types, length of a column, change
descriptions. Whatever you do except a limitation when we change the key of the table.
Go to source table.

Don’t have key for ZMATNR.

key is present only for ZKUNNR.

Click on change.
I would like to take ZMATNR also key.

Select key for ZMATNR.

Click on activate.
Click on execute.

Click on execute.
Click on yes.

Here we see log display.


Go to back. Click on back.

Here we have two keys. There are ZKUNNR, ZMATNR.


This time I am making one of the column as key.

Go to hana studioselect tableright click on itclick on open definition.


Before refresh we see only one key.

Click on refresh.
Only ZKUNNR has key. ZMATNR doesn’t update with key.

Click on refresh. Doesn’t change anything.


If you want to change the key. Even ZMATNR get as key in sap hana.

Why MATNR is not changing as key? Because, on ecc system, source table we have logging
table. If we see logging table for this table.

Here we see logging table and trigger status is inconsistent because in source table has key but
target table don’t have key.

If you want to see error.


Click on view errors.

Click on this symbol.


Solution for above problem is shown below. Here the solution is Entire answer is reload the
table.

Click on continue.
Select our table.

Copy the logging table.

Paste on notepad.

Again copy the logging table.


Create session. Click on create session.
Enter Tcode as SE11.

Press enter.
Here paste the logging table.

Click on display.
Let’s go ecc. In change table, ZCOPATABLE1. ZKUNNR and ZMATNR has a key.

In display table we see ZKUNNR has only a key but ZMATNR has not key in logging table.
Click on content.

Here we see ZKUNNR only.


First, we change the logging table. By using stop.

Once we use stop logging tables will be deleted.

And again replicate. Logging tables are regenerated.

Click on data provisioning.

Enter table nameselect stop load/replication.

Click on execute.
Click on refresh.

Here we can’t see our table. Table name as ZCOPATABLE1.This table is stopped.
Again replicate table.

Click on data provisioning.

Enter table name and select replication.

Here don’t click on execute. Because first check whether the table is exist or not in ECC.
Go back to data browse. Click on back.

Again click on back.


Click on back.

Enter Tcode as SE11.


Enter logging table name<--click on display.
At bottom we see logging table does not exist.

Let us go back to LTRC.

Click on execute.
Click on Refresh.

Here table is scheduled.

At previously trigger status is inconsistency. Now table is activated.


Go back to ABAP dictionary.

Enter logging table.

Click on display.

Now here we see both ZKUNNR and ZMATNR are keys..


Click on content.

Now here we see ZKUNNR and ZMATNR both.


Now check in sap hana.

Expand tablesselect tableright click on itclick on open definition.


Before refresh it shows only one refresh. When we click on refresh it shows two. So click on
refresh.

Here we see two keys.

So, the limitation is when we replicate the table whatever the changes that you make data type,
length anything that we make changes in the base table will automatically change in the sap
hana.

When you make changes to key of the table. We have to stop and again replicate. Sometimes this
also may not work. Because trigger status is inactive. Sometimes we delete logging tables it’s not
deleted because inconsistency is occurred. At that time go to se11 delete it manually again re-
replicate.

Now, I am trying to change tables in ecc. Sometimes it not possible on ecc because one table has
lot of references. So, we can change on SLT server.

We take a copy of ecc table; maintain this copy of table in SLT.
By using a Tcode IUUC_REPL_CONTENT.

IUUC_REPL_CONTENT is used take ecc table and put it in SLT server

Let us go to tcode IUUC_REPL_CONTENT.

Go to change table.

Click on back.
Click on back.

Enter Tcode as IUUC_REPL_CONTENT. This Tcode will use only on SLT.


Here we see our configuration.

At left side we see table settings.

Select table settings.


Right click on itclick on add.

Enter table nameclick on execute.


Click on table structure.
Now this table is maintained on SAPSLT.

This Tcode is work on only SLT.

This is copy of the table.


Left side is original table and right side is modification overview.

If you want to delete or if you want to minimal projection.

Minimal projection is a selection of required columns.

If you want to delete VKORG.


Select field. Click on remove field.

At right side we see our removed field.

If you want to change length then click on change field.


Give any value for length.

Click on execute.

In modification view, we see modified value.

If you want to add a new column then click on add field and fill all fields click on ok.
Click on view modified table structure.

Here we see our modified structure

Das könnte Ihnen auch gefallen