A1.4 - Transformation: Level Topic
A1.4 - Transformation: Level Topic
4 - Transformation
Level Topic
A1 (Basic One) This tutorial describes the fundamentals for executing transformations.
Transformation Cockpit is a user interface which enables TC-expert to execute
export and import for a migration according to assigned rules.
Keys
Transformation, export,
import, forerunner
Content
Estimated time:
• Export blocks
1h • Forerunners
• Imports
TC release:
XX.XX SPXX Goals
SNP provides certain environment for carve outs and fusions that use SNP
Related JIRA tests:
Transformation Cockpit. The transformation cockpit will be used for exporting
..., ... the selected data from source system as compressed files to the file system.
The data will be transferred later regards defined import rules to target system.
The data transfer by import happens on a database table transfer level per
Last changes: database direct update.
29-Jan-18 Prerequisites:
Nice to have:
Values Result
1 Switch to the Transformation area on the An empty export The detail dialog for
left-hand side of the page. block with the name transformations opens. An
Export is created overview of the available
automatically. data objects opens as well
as a tree structure to
manage transformations.
3 Select the entry Create block => Export. You can create A popup opens:
multiple export
Create transformation
blocks.
block
6 Click the green tick and save your entries. You have created the block.
You can view it in the
transformation tree.
8 Drag & drop the data objects onto the export This process can
block. Another option is to select both the data take some time
object and the block. depending on the
size of the data
Click Apply to add the table.
objects.
9 Save and expand the export block. The data object and table
are appended in the tree.
10 Delete the empty export block that was After the deletion, the tree
created automatically by the system. displays only one remaining
export block. This export
block contains the
previously created data
object and its table.
Values Result
1 Right-click the export block and select A dialog with the heading
Properties. Edit transformation block
appears.
3 Save by clicking the green tick. Make sure that the name of
the export block has
changed and that the
number of processes (table
column: Proc.) corresponds
to the executed change.
Values Result
Values Result
2 Execute the export by confirming the During this time, Success message: “The
message “Do you really want to start the the syntax check is transformation block …
block in the background” with Yes. executed and the was started”.
3 Click Refresh to display the progress of the The export can The status of the block, the
export. take some time. data object and the table
changes to Complete. For
the Progress of the table,
100.00% is indicated. The
Runtime and Start time
columns are filled with
appropriate data.
6 Right-click the table and select Display A window with the heading
export files to view the exported data File display opens.
records.
7 In the file display, you can change the number You can use the The exported data is
of displayed data records and add filters to the Configure fields displayed according to the
displayed results. button to add filters filters used.
to other table fields
Click Start search to display the files.
in addition to
MANDT
(Mandant/client)
and MATNR
(Materialnummer/m
aterial number).
8 Switch to the target system and use The data on the source
transaction SE16. Select the table MARA and system is exactly the same
click execute to view the data records of the as the exported data.
table. Compare the data of the table on the
source system with the exported data.
Information
If an error in a table occurs during the export, this table is skipped and a corresponding message appears.
You can fix the error and start the export block again. When you start a new block that contains successfully
exported tables, these tables will be not be exported again.
Values Result
4 Change the Number of processes. You can parallelize the Reasonable Number of
execution of the export processes: 1 – 4.
block by using more than
one batch process.
Values Result
1 Right-click the forerunner block and select A popup appears with the
Properties. heading “Edit
transformation block”
3 Save by clicking the green tick. Check that The new Name and the
the applied changes have been saved Number of processes
correctly. (table column: Proc.) have
been saved according to
your adjustments.
Values Result
1 Right-click the forerunner block and select A dialog with the following
Start block in background. message appears: “Do you
really want to start the
block in the background?”
3 Click Refresh to display the progress of the The execution can The status of the forerunner
execution. take some time. block, the data object and
the table changes to
Complete. For the
Progress of the table,
100.00% is indicated. The
Records in total column
must equal the number of
previously exported data
records.
Imports
Import blocks are the basis for inserting, updating and deleting data records from a table of the target
system. This tutorial explains how to create, adjust and execute import blocks.
All tables to be imported must have previously exported data available. A target system has been assigned
in the system maintenance.
Values Result
2 Right-click Run to open the context You can create multiple A dialog window appears:
menu. Select Create block => blocks. “Create transformation
Import/Delete. block”
3 Enter a Name. The type of block “IMP” A Name has been entered.
indicates that it is an
import.
4 Enter the Number of processes. You can parallelize the Reasonable Number of
execution of the export processes: 1 – 4.
block by using more than
one batch process.
5 Use the value help (F4) for the Block Five modes are listed. The
mode text field. default block mode INSERT
is mainly used. This mode
leads to the termination of
the import if a data record is
imported whose primary key
values already exist.
Duplicate key fields are not
allowed in SAP tables.
6 Choose if you want to use the rule Two options: The import Without rule
base or not. base allows you to execute
- With rule base
an import that ignores all
- Without rule base Events, Rules, Functions,
Mappings and Offsets.
7 Save by clicking the green tick. The block has been created
and is displayed in the tree.
8 Select a data object to import and You cannot add a After expanding the import
assign it to the import block. You can forerunner to an import block, the created table
do this by using drag & drop or by block. should appear in the tree.
clicking the Apply button.
9 Expand the import block and check that This process might take The data object and table
the data object with its table has been some time depending on are displayed in the tree.
added. the size of the data
objects.
Values Result
Values Result
1 Right-click the import block and select You can only use Message: “Do you really
Simulate block in background. tables for which want to simulate the block
you have executed in the background?”
an export
successfully.
3 Click Refresh to display the progress of the The import can The status of the block, the
import simulation. take some time. data object and the table
changes to Complete. For
the Progress of the table,
100.00% is indicated. The
Runtime and Start time
columns are filled with
appropriate data. The
Records in total and the
Processed records equal
the number of exported data
records because no
constraints have been
applied.
Values Result
1 Right-click the import block and select Start If the import block A dialog opens: “Do you
block in background. contains tables that really want to start the
have not been block in the background?”
exported
successfully, the
import terminates
with an error
message.
3 Click Refresh to display the progress of the The status of the block, the
import. data object and the table
changes to Complete. For
the Progress of the table,
100.00% is indicated. The
Runtime and the Start time
4 Check the table log for messages. If the import aborts No messages appear. The
with warning number of Records in total
messages, the and Processed records
error occurred due must equal the number of
to duplicate keys in exported data records.
the target system.
Table Mode
By using certain indicators, you can adjust the behavior of an import block. There are different modes that
can be defined in the settings of a block.
Select Properties.
INSERT_ADK Data records with double keys are inserted. If the data record is available with the
same key in the data table, this data record won't be changed in the database.
MODIFY Existing data records are updated and new data records are inserted (combination of
UPDATE and INSERT).
Use the Without rule set? option to decide if you want to execute rule sets such as field rules, global rules
or other results.
The transformation will be downloaded as a ZIP file that includes the transformation as an HTML file.
Log
The log displays all exported and imported tables. If you execute the export or import of a table multiple
times, only the last run of the table remains visible.
Prerequisites
A detail view with the two tabs Transformation and Log opens.
The Type column indicates whether the table has been assigned to an export, import or forerunner block.
When you access the log, the most current execution of the table is displayed.
Click Execute all in the upper part of the toolbar to display all executions.
Total Runtimes
The Total Runtime column displays the runtimes of the executed tables.
Select the row to sum the runtime from. If you did not select any rows, the total runtime will be displayed.
The Messages column displays whether messages are available for the recent export or import and the type
of message.
Select the rows for which you want to display messages. If you select multiple rows, the messages will be
displayed all together.
Displaying Files
The Number of records column displays how many data records were processed during an execution.
Select the row for which you want to display data records.
Select the row of an export block and click Table in System. The login screen for the respective system
opens. Please make sure that the mask always suggests the standard login client. If necessary, adjust it to
log in to the correct client.
After you log in into the target system, you can view the specified table in the selection screen of the
data browser. If you choose an import table, you will jump to the specified table of the target system.