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: SAP AG 2000 O14 Outline the files in the transport directory Explain transport tools and their intercommunication Perform imports and troubleshooting with tp Clean-up the transport directory Upgrade WS 4.6B (Roland Hamm) / 2 AcceleratedSAP Transport Directory File Name Conventions Quality Assurance System (QAS) Development System (DEV) User SMITH creates change request DEVK900073 DEVK900073 is released and exported to QAS Transport Directory actlog data log DEVZ900073 DEVZ900074 R900073.DEV sapnames K900073.DEV ULOG 98_1 SLOG9803.DEV ALOG9803 DEVE900073.DEV DEVP900073.DEV DEVI900073.QAS N980215.QAS SMITH cofiles buffer QAS ….. SAP AG 2000 O14 Upgrade WS 4.6B (Roland Hamm) / 3 AcceleratedSAP Introducing tp Export Import Quality Assurance Development Release and export calls tp R/3 tp ABAP communication Operating system database Insert table entries into control tables Insert table entries into control tables tp DEV Calls tp Buffer, logs, cofile, TPPARAM QAS Calls R3trans R3trans SAP AG 2000 O14 Buffer, logs, cofile, TPPARAM Transport Directory Upgrade WS 4.6B (Roland Hamm) / 4 database AcceleratedSAP Helpful tp Commands tp help Display help on tp functionality tp <command> Display help on specific tp-command tp go <SID> Check the database destination tp connect <SID> Check the database connection tp showinfo <request> Display info on a transport request tp count <SID> Display number of registered requests tp checkimpdp <SID> Display scheduling type of import dispatcher tp showparams <SID> Display current setting of parameters tp status <SID> 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 tp import all QAS client=200 DEVK900004 DEVK900008 DEVK900016 DEVK900013 SAP AG 2000 O14 tp import DEVK900016 QAS client=200 u0 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 Quality Assurance Development R/3 Operating system database database tp tp DEV QAS exit code exit code write data files, logs connect, read R3trans SAP AG 2000 O14 read data files, write logs Transport Directory Upgrade WS 4.6B (Roland Hamm) / 8 connect, update, delete and insert R3trans AcceleratedSAP ABAP Programs used in Performing Transports Export Import RDDMASGL Quality Assurance RDDGENBB RDDVERSL ... RDD*Jobs Development RDDIMPDP starts schedules write logs RDDNEWPP R/3 triggers Operating system TRBAT Transport Directory SAP AG 2000 O14 TRJOB tp database QAS Upgrade WS 4.6B (Roland Hamm) / 9 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 Import process DDIC I 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 DEVMS900021.QAS N980625.QAS DEVD900021.QAS DEVU900021.QAS DEVV900021.QAS DEVR900021.QAS DEVG900021.QAS SAP AG 2000 O14 • • • • Dictionary import 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 (Xpra) • Generation of ABAP programs and screens Upgrade WS 4.6B (Roland Hamm) / 12 DDIC I ACTIV MAIN I MC ACT MC CONV ADO I LOG I VERS F XPRA GENERA AcceleratedSAP Import Process: tp and the Import Buffer OS Level Database ABAP Import dispatcher RDDIMPDP DDIC activation Conversion Generation TRBAT ... TRJOB database ../tmp - Log file(s) R3trans SAP AG 2000 O14 tp Upgrade WS 4.6B (Roland Hamm) / 13 Buffer ../log - Log file(s) AcceleratedSAP Database ABAP Import Process: R3trans Import dispatcher RDDIMPDP Conversion Generation TRBAT ... TRJOB database DD import OS Level DDIC activation Main import ../tmp - Log file(s) R3trans SAP AG 2000 O14 tp Upgrade WS 4.6B (Roland Hamm) / 14 Buffer ../log - Log file(s) AcceleratedSAP Import Process: tp / ABAP Communication (1) Database ABAP Import dispatcher RDDIMPDP DDIC activation TRBAT ... TRJOB database Inserts entries Triggers OS Level Conversion Generation ../tmp - Log file(s) Reads R3trans SAP AG 2000 O14 tp Upgrade WS 4.6B (Roland Hamm) / 15 Buffer ../log - Log file(s) AcceleratedSAP Import Process: tp / ABAP Communication (2) ABAP Import dispatcher starts RDD*-jobs RDDIMPDP DDIC activation Conversion Generation OS Level Database Checks and writes table Writes status TRBAT ... Inserts job number TRJOB database ../tmp - Log file(s) R3trans SAP AG 2000 O14 tp Upgrade WS 4.6B (Roland Hamm) / 16 Buffer ../log - Log file(s) AcceleratedSAP Import Process: tp / ABAP Communication (3) ABAP Import dispatcher restarts RDD*-jobs RDDIMPDP DDIC activation Conversion Generation ... Writes status Database Checks tables TRBAT TRJOB Writes logs database Deletes entries Restarts OS Level Deletes entries Monitors tables ../tmp - Log file(s) Buffer R3trans tp Moves logs SAP AG 2000 O14 Upgrade WS 4.6B (Roland Hamm) / 17 ../log - Log file(s) 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 R3trans DEVI900073.QAS DEVI900073.QAS DEVV900073.QAS RDD* Directory log ... 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 4 8 12 0 Successful transport Warning Error Fatal error < rc < 16 16 < rc < 100 Combination of tool-rc and tp warning 100 < rc < 200 tp warning 200 > rc tp error File system SAP AG 2000 O14 rc = max (tool-rc) Upgrade WS 4.6B (Roland Hamm) / 20 Database AcceleratedSAP Troubleshooting (1) System Log (SLOG) Alert Monitor • View all tp return • View tp connection errors codes • Locate permission problems Action Log (ALOG) • Locate what change request or generic phase produced a warning or error • 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 TRJOB V 000047 V 000048 C11K900003 N 0000 ... TRBAT C11K900008 N 8888 ... 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 R/3 Operating System Transport Directory tp R3trans log actlog sapevt File system SAP AG 2000 O14 Upgrade WS 4.6B (Roland Hamm) / 22 sapnames buffer AcceleratedSAP Appendix: tp Steps Mnemonic Step Program Environment E main export R3trans OS P test import R3trans OS H DD objects: import R3trans OS A DD objects: activation RDDMASGL R/3 S DD objects: distribution RDDGENBB R/3 N DD objects: conversion RDDGENBB R/3 6 DD objects: move nametabs pgmvntabs OS I main import R3trans OS T import of table entries R3trans OS M enqueue activation RDDGENBB R/3 G repository objects: generation RDDIC03L R/3 V version update R/3 SAP AG 2000 O14 Upgrade WS 4.6B (Roland Hamm) / 23 RDDIC 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 SAP AG 2000 O14 T V W X < > 1 2 3 4 5 6 7 8 ( ) { | } ? Upgrade WS 4.6B (Roland Hamm) / 24 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 AcceleratedSAP Appendix: TRBAT Function Codes Header JOBNAME Report Explanation ===================================================================== Function codes X RDDDIC0L RDDDIC0L ADO export J RDDMASGL RDDMASGL Mass activator (new) B RDDTACOL RDDTACOL TACOB activator S RDDDIS0L RDDGENBB Distributor N RDDGEN0L RDDGENBB Import converter M RDDMASGL RDDMASGL Mass activator (Enqueue) Y(n) RDDGEN0L RDDGENBB Matchcode converter O RDDGEN0L RDDGENBB Batch converter (not in Upgrade) D RDDDIC1L RDDDIC1L ADO import V RDDVERSL RDDVERSL Create version R RDDEXECL RDDEXECL XPRA execution G 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