You are on page 1of 26

tp & R3trans

Roland Hamm SAP AG

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 1

AcceleratedSAP

Advanced Transport Management

Contents:

Transport directory naming conventions Transport tools and communication mechanisms Import process and troubleshooting

Objectives:
At the end of this unit you will be able to:

Outline the files in the transport directory Explain transport tools and their intercommunication Perform imports and troubleshooting with tp Clean-up the transport directory

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 2

AcceleratedSAP

Transport Directory File Name Conventions

Development System (DEV)

Quality Assurance System (QAS)

User SMITH creates change request DEVK900073

DEVK900073 is released and exported to QAS

Transport Directory

actlog
DEVZ900073 DEVZ900074

data
R900073.DEV

log
ULOG 98_1 SLOG9803.DEV ALOG9803 DEVE900073.DEV DEVP900073.DEV DEVI900073.QAS N980215.QAS

cofiles
K900073.DEV

sapnames
SMITH

buffer
QAS

..
SAP AG 2000 O14
Upgrade WS 4.6B (Roland Hamm) / 3

AcceleratedSAP

Introducing tp

Export

Import

Development

Quality Assurance
tp ABAP communication

R/3 Operating system


Insert table entries into control tables

Release and export calls tp

database DEV

Insert table entries into control tables

tp
Calls Buffer, logs, cofile, TPPARAM Buffer, logs, cofile, TPPARAM

tp
Calls

database QAS

R3trans

R3trans Transport Directory


Upgrade WS 4.6B (Roland Hamm) / 4

SAP AG 2000 O14

AcceleratedSAP

Helpful tp Commands

tp help tp <command>

Display help on tp functionality Display help on specific tp-command Check the database destination

tp go <SID>
tp connect <SID> tp showinfo <request> tp count <SID> tp checkimpdp <SID> tp showparams <SID> tp status <SID>

Check the database connection


Display info on a transport request Display number of registered requests Display scheduling type of import dispatcher

Display current setting of parameters


Display status of serialization

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 5

AcceleratedSAP

tp Import Commands

DEV

QAS

database

database

Release and Export

Import

Transport Directory
DEVK900004 DEVK900008 DEVK900016 DEVK900013

tp import all QAS client=200


tp import DEVK900016 QAS client=200 u0

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 6

AcceleratedSAP

tp Commands for Accessing Buffers

tp showbuffer <SID> tp addtobuffer <request> <SID> [u<digit(s)>] tp delfrombuffer <request> <SID> tp cleanbuffer <SID> tp setstopmark <SID> tp delstopmark <SID>

Buffer for QAS


TASK UMODE ---------------------------------------------------------------------------------------------DEVK900048 8 DEVK900057 DEVK900053 STOPMARK Is a special entry (not a change request) DEVK900069 2

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 7

AcceleratedSAP

Introducing R3trans

Export

Import

Development R/3 Operating system

Quality Assurance

database DEV
exit code connect, read

database tp tp
exit code write data files, logs read data files, write logs connect, update, delete and insert

QAS

R3trans

Transport Directory

R3trans

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 8

AcceleratedSAP

ABAP Programs used in Performing Transports

Export

Import

RDDMASGL RDDGENBB RDDVERSL

Development

RDD*Jobs

...

Quality Assurance RDDIMPDP

starts

schedules write logs

R/3 Operating system TRBAT Transport Directory


SAP AG 2000 O14
Upgrade WS 4.6B (Roland Hamm) / 9

RDDNEWPP
triggers

TRJOB

tp

database QAS
AcceleratedSAP

tp Processing Sequence

tp collectively processes each import step for all requests before proceeding with the next import step.

tp does NOT process all import steps for only a single request before proceeding to the the next request.

1st

2nd

3rd

4th

5th

6th

7th

8th

9th

TASK DDIC | ACTIV | MAIN I | MC ACT | ADO I | LOG I | VERS F | XPRA | GENERA | UMODE -----------------------------------------------------------------------------------------------------------------------------------------------------------DEVK900048 | | 1 | | | | 1793 | | | DEVK900057 | | 1 | | | | 25 | | 23 | DEVK900053 | | 1 | | | | 5 | | | DEVK900069 1 | 1 | 1 | | | | 1 | | 1 | DEVK900078 | | 1 | | | | 197 | | | DEVK900083 | | 1 | | | | 25 | | 23 | DEVK900087 | | 1 | | | | 5 | | | DEVK900092 1 | 1 | 1 | | | | 1 | | 1 |

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 10

AcceleratedSAP

Steps during Import

DDIC I

Import process

ACTIV

MAIN I
MC ACT MC CONV ADO I LOG I VERS F XPRA GENERA

ABAP Dictionary import ABAP Dictionary activation Distribution Structure conversion(*) Move nametabs(*) Main import Activation of the enqueue definitions Enqueue conversion (*) Import of application defined objects (ADOs) Logical import Versioning Execution of user defined activities (XPRAs) Generation of ABAP programs and screens
(*) = generic steps not dependent on requests

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 11

AcceleratedSAP

Appendix: Log Files for Importing DEVK900021


DEVH900021.QAS DEVA900021.QAS DS980605.QAS N980605.QAS P980625.QAS DEVI900021.QAS

Dictionary import Dictionary activation Distribution(*) Structure conversion(*)

DDIC I

ACTIV

DEVMS900021.QAS
N980625.QAS DEVD900021.QAS DEVU900021.QAS DEVV900021.QAS DEVR900021.QAS DEVG900021.QAS

Move nametabs(*) Main import Activation of the enqueue definitions Enqueue conversion(*) Import of application defined objects (ADOs) Logical import Versioning Execution of user defined activities (Xpra) Generation of ABAP programs and screens
Upgrade WS 4.6B (Roland Hamm) / 12

MAIN I MC ACT

MC CONV
ADO I LOG I VERS F XPRA GENERA
AcceleratedSAP

SAP AG 2000 O14

Import Process: tp and the Import Buffer


Import dispatcher

ABAP

RDDIMPDP

DDIC activation

Conversion Generation

...

Database

TRBAT database

TRJOB

OS Level

../tmp - Log file(s)

R3trans

tp

Buffer

../log - Log file(s)

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 13

AcceleratedSAP

Import Process: R3trans


Import dispatcher

ABAP

RDDIMPDP

DDIC activation

Conversion Generation

...

Database

TRBAT
database

TRJOB

DD import

Main import
../tmp - Log file(s)

OS Level

R3trans

tp

Buffer

../log - Log file(s)

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 14

AcceleratedSAP

Import Process: tp / ABAP Communication (1)


Import dispatcher

ABAP

RDDIMPDP

DDIC activation

Conversion Generation

...

Database

TRBAT

TRJOB

database
Triggers Inserts entries

OS Level

../tmp - Log file(s)


Reads

R3trans

tp

Buffer

../log - Log file(s)

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 15

AcceleratedSAP

Import Process: tp / ABAP Communication (2)


Import dispatcher

starts RDD*-jobs

ABAP

RDDIMPDP

DDIC activation

Conversion Generation

...

Checks and writes table

Writes status

Database

Inserts job number

TRBAT database

TRJOB

OS Level

../tmp - Log file(s)

R3trans

tp

Buffer

../log - Log file(s)

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 16

AcceleratedSAP

Import Process: tp / ABAP Communication (3)


Import dispatcher

restarts RDD*-jobs

ABAP

RDDIMPDP

DDIC activation

Conversion Generation
Writes status

...

Checks tables

Database

Deletes entries

TRBAT

TRJOB
Writes logs

database
Restarts Deletes entries Monitors tables

OS Level

../tmp - Log file(s)

Buffer R3trans

tp
Moves logs

../log - Log file(s)

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 17

AcceleratedSAP

Monitoring and Analysis: tp Log Files

tp

Transport subdirectory log

ULOG SLOG
ALOG

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 18

AcceleratedSAP

Monitoring and Analysis: Transport Tool Log Files

Directory tmp

Directory log
DEVI900073.QAS

R3trans RDD*

DEVI900073.QAS DEVV900073.QAS

tp

DEVI900073.QAS ...

...

Import process

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 19

AcceleratedSAP

tp Return Codes

tp return codes (rc) Transport tool return codes 0 < rc < 16 rc = max (tool-rc) Combination of tool-rc and tp warning tp warning tp error

0 4 8 12

Successful transport Warning Error Fatal error

16 < rc < 100

100 < rc < 200 200 > rc

File system

Database

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 20

AcceleratedSAP

Troubleshooting (1)

Alert Monitor

System Log (SLOG)

Action Log (ALOG)

View tp
connection errors

View all tp return


codes

Locate what
change request or generic phase produced a warning or error

Locate
permission problems

See RFC failures


Review
individual log files at the operating system level.

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 21

AcceleratedSAP

Troubleshooting (2)

SM31 - check tables

V 000047 V 000048 C11K900003 N 0000 ... TRBAT C11K900008 N 8888 ...


R/3 Operating System

TRJOB

SM37 check protocols of RDD* jobs


Job overview

01.01.98 12:06 516 Job started 01.01.98 12:07 560 Step 001 started 01.01.98 12:07 007 Fatal Error 01.01.98 12:08 518 Job aborted

Transport Directory
tp R3trans

sapevt
File system

log actlog sapnames buffer


AcceleratedSAP

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 22

Appendix: tp Steps

Mnemonic
E P H A S N 6 I T M G V

Step
main export test import DD objects: import DD objects: activation DD objects: distribution DD objects: conversion

Program
R3trans R3trans R3trans RDDMASGL RDDGENBB RDDGENBB

Environment
OS OS OS R/3 R/3 R/3 OS OS OS R/3 R/3 R/3

DD objects: move nametabs pgmvntabs main import import of table entries enqueue activation R3trans R3trans RDDGENBB

repository objects: generation RDDIC03L version update RDDIC

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 23

AcceleratedSAP

Appendix: Complete List of tp Action Types

A B b C c D d E F G H I J L M N n P Q R S

ddic activation TACOB activation of DD objects backup corr.release of C-sources kernel copy import of selfdefined objects (SDO) remove stopmark main export export of C sources generation of repository objects DD import main import new activator symbol R3trans import commandfile enqueue activation TACOB conversion of DD objects TACOB conversion of MC objects test import execution of reports before put execution of reports after put (XPRA) distribution of DD objects

T V W X < > 1 2 3 4 5 6 7 8 ( ) { | } ?

R3trans import of table entries version update forwarding and linking K transports export of self defined objects enqueue type (SE07) dequeue type (SE07) start database stop database start SAP system stop SAP system move reports move nametabs touch all reports reset SAP buffers lock DE (development environment) unlock DE locksysX locksys unlocksys unknown action

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 24

AcceleratedSAP

Appendix: TRBAT Function Codes

Header

JOBNAME

Report

Explanation

=====================================================================

Function codes

X J B S N M

RDDDIC0L RDDMASGL RDDTACOL RDDDIS0L RDDGEN0L RDDMASGL

RDDDIC0L RDDMASGL RDDTACOL RDDGENBB RDDGENBB RDDMASGL

ADO export Mass activator (new) TACOB activator Distributor Import converter Mass activator (Enqueue)

Y(n)
O D V R

RDDGEN0L
RDDGEN0L RDDDIC1L RDDVERSL RDDEXECL

RDDGENBB
RDDGENBB RDDDIC1L RDDVERSL RDDEXECL

Matchcode converter
Batch converter (not in Upgrade) ADO import Create version XPRA execution

RDDDIC3L

RDDDIC3L

Generation

SAP AG 2000 O14

Upgrade WS 4.6B (Roland Hamm) / 25

AcceleratedSAP

tp & R3trans

Questions & Answers


SAP AG 2000 O14

Roland Hamm SAP AG


Upgrade WS 4.6B (Roland Hamm) / 26

AcceleratedSAP

You might also like