SAP R/3 Correction and Transport System

Operating system level files in the transport process:

The SAP C program TP, requires a special file structure for the transport process. The file system is operating system dependent. TP uses a transport directory or file system, which is called /usr/sap/trans.
The /usr/sap/trans file system is generally NFS mounted form the development system to other systems unless a system is defined as a single system in the CTS pipeline. All the sub directories should have <SID>adm as the owner and sapsys as the group; and proper read, write and execute access should be given to owner and the group. The TP imports are always performed by <SID>adm.

The following are the subdirectories in /usr/sap/trans:

/data
/cofiles
/bin
/log
/actlog
/buffer
/sapnames
/tmp

/usr/sap/trans/data: holds the data of transport objects after they are released . The example of a data file is R904073.DEV. The extension DEV means the data file was released from the DEV or development system.

/usr/sap/trans/cofiles: The cofiles directory holds the command files for all change requests. These files are like a command or control files used to import the data files. The common directory for CTS system is /usr/sap/trans. After a change request is released from the source system , the data is exported immediately to the file system of the operating system. The SAP transport utility TP uses the cofile to transport a data file. The example of a file in cofiles directory is K904073.DEV.

/usr/sap/trans/bin: holds the most important file TPPARAM in the CTS system. TPPARAM file has all the information about the CTS systems in the CTS pipeline. TPPARAM file is the parameter file for the transport program TP and it is the common file for all the systems in the CTS pipeline. As you know already that /usr/sap/trans should be NFS mounted to all the systems in a CTS pipeline, TP program has access to the TPPARAM file from all the systems. The following is an example of typical TPPARAM file for five SAP systems in the CTS pipeline:

#@(#) TPPARAM.sap 20.6 SAP 95/03/28
######################################################################
# Template of TPPARAM for UNIX #
######################################################################
# First we specify global values for some parameters, #
# later the system specific incarnation of special parameters #
######################################################################

######################################################################
# global Parameters #
######################################################################
transdir = /usr/sap/trans/
dbname = $(system)
alllog = ALOG$(syear)$(yweek)
syslog = SLOG$(syear)$(yweek).$(system)

######################################################################
# System spezific Parameters #
######################################################################

#################################################
# Beispiel T11 #

DEV/dbname = DEV
DEV/dbhost = sap9f
DEV/r3transpath = /usr/sap/DEV/SYS/exe/run/R3trans

QAS/dbname = QAS
QAS/dbhost = sap8f
QAS/r3transpath = /usr/sap/QAS/SYS/exe/run/R3trans

TRN/dbname = TRN
TRN/dbhost = sap17
TRN/r3transpath = /usr/sap/TRN/SYS/exe/run/R3trans

PRE/dbname = PRE
PRE/dbhost = sap19f
PRE/r3transpath = /usr/sap/PRE/SYS/exe/run/R3trans

PRD/dbname = PRD
PRD/dbhost = sap18f
PRD/r3transpath = /usr/sap/PRD/SYS/exe/run/R3trans

/usr/sap/trans/log: holds the entire log files, trace files and statistics for the CTS system. When the user goes to SE09 (workbench organizer) or SE10 (customizing organizer) transaction and opens the log for a transport, the log file for that transport will be read from /usr/sap/trans/log directory. Each change request should have a log file. Examples of log files are DEVG904073.QAS, DEVI904073.QAS and DEVV904073.QAS. The name of a log file consists of the names of the change request, the executed step, and the system in which the step was executed:

<source system><action><6 digits>.<target system>

Now we can analyze the above example DEVG904073. QAS. The <source system> = DEV, <action> = G or report and screen generation, <6 digits> = 904073 (these six digits numbers are exactly the same number as the six digits of the transport) and the <target system> = QAS

Possible values for <action> are:

A: Dictionary activation
D: Import of application-defined objects
E: R3trans export
G: Report and screen generation
H: R3trans dictionary import
I: R3trans main import
L: R3trans import of the command files
M: Activation of the enqueue modules
P: Test import
R: Execution of reports after put (XPRA)
T: R3trans import of table entries
V: Set version flag
X: Export of application-defined objects.

/usr/sap/trans/actlog: holds action log files. The example of an action file is DEVZ902690.DEV. The following are the contents of the file:
1 ETK220 “==================================================” “=================
=============================
1 ETK191 “04/30/1998″ Action log for request/task: “DEVK902690″
1 ETK220 “==================================================” “=================
=============================
1 ETK185 “04/30/1998 18:02:32″ “MOHASX01″ has reincluded the request/task
4 EPU120 Time… “18:02:32″ Run time… “00:00:00″
1 ETK193 “04/30/1998 18:02:33″ “MOHASX01″ owner, linked by “MOHASX01″ to “DEVK902691″
4 EPU120 Time… “18:02:33″ Run time… “00:00:00″
1 ETK190 “05/04/1998 11:02:40″ “MOHASX01″ has locked and released the request/task
1 ETK194 “05/04/1998 11:02:40″ **************** End of log *******************
*
4 EPU120 Time… “11:02:40″ Run time… “00:00:09″
~
~”DEVZ902690.DEV” 10 lines, 783 characters

/usr/sap/trans/buffer: transport buffer of the target systems; contains control information on which requests are to be imported into which systems and in what order the imports must occur. The /usr/sap/trans/buffer will have a directory for each system in the CTS pipeline. For example the buffer file for DEV system is /usr/sap/trans/buffer/DEV.

/usr/sap/trans/sapnames: holds information pertaining to transport requests for each system user. There are files for each user who released change requests from the system.

/usr/sap/trans/tmp: holds information about temporary data and log files. While the transport is occurring the Basis administrator can find a file that is related to the transport in the tmp directory; that file shows the exact status if the transport (What objects are being imported at that time).

Important SAP delivery class and table types and tables in the CTS process:
Delivery class

The delivery class defines who (i.e. the SAP system itself or the customer) is responsible for maintaining the table contents. In addition the delivery class controls how the table behaves in a client copy and an upgrade. For example when you select a SAP defined profiles to perform a client copy, certain tables are selected according to their delivery class. DD02L table can show what delevery class a table belongs to.

The following delivery classes exist:

A: Application table.
C: Customizing table, maintenance by customer only.
L: Table for storing temporary data.
G: Customizing table, entries protected against overwriting.
E: Control table.
S: System table, maintenance only by SAP.
W: System table, contents can be transported via own TR objects.

Table type
The table type defines whether a physical table exists for the logical table description defined in the ABAP/4 Dictionary and how the table is stored on the database.

The following are different table types in SAP:
Transparent Tables
There is a physical table on the database for each transparent table. The names of the physical table and the logical table definition in the ABAP/4 Dictionary are same. For every transparent table in SAP, there is a table in database. The business and application data are stored in transparent tables.
Structure
No data records exist on the database for a structure. Structures are used for the interface definition between programs or between screens and programs.
Append Structure
An Append structure defines a subset of fields which belong to another table or structure but which are treated as a separate object in the correction management. Append structures are used to support modifications.

The following table types are used for internal purposes, for example to store control data or for continuous texts:
Pooled table
Pooled tables can be used to store control data (e.g. screen sequences, program parameters or temporary data). Several pooled tables can be combined to form a table pool. The table pool corresponds to a physical table on the database in which all the records of the allocated-pooled tables are stored.
Cluster table
Cluster tables contain continuous text, for example documentation. Several cluster tables can be combined to form a table cluster. Several logical lines of different tables are combined to form a physical record in this table type. This permits object-by-object storage or object-by-object access. In order to combine tables in clusters, at least part of the keys must agree. Several cluster tables are stored in one corresponding table on the database.

Tables in CTS process:

TRBAT and TRJOB:

TRJOB and TRBAT are the major tables in the CTS process. After TP program has sent the event to the r3 system, RDDIMPDP checks table TRBAT in the target system to find out if there is an action to be performed. Mass activation, distribution, or table conversions are the examples of actions. If there is action to be performed, RDDIMPDP starts the appropriate program in the background task. RDDIMPDP then reschedules itself.

By checking table TRJOB, RDDIMPDP automatically recognizes if a previous step was aborted, and restarts this step. For each transport request , TP program inserts an entry into table TRBAT. If the return code 9999 in this table then the step is waiting to be performed. Return code 8888 indicates that the step is active and currently being processed. A return code of 12 or less indicates that the step is finished. In addition, TP inserts a header entry to let the RDDIMPDP program know to start processing. The column return code will therefore contain a B for begin. When RDDIMPDP is started, it sets the header entry to R(un), and starts the required program. When all the necessary actions are performed for all the transport requests, the column return code contains all the return codes received, and the column TIMESTAMP contains the finishing time. The header entry is set to F(inished). TP monitors the entries in TRBAT and TRJOB tables. When the header entry in TRBAT is set to finished. The entry in TRJOB is deleted.

Transport Tables SE06

TDEVC – Development classes
TASYS – Details of the delivery. Systems in the group that should automatically receive requests, have to be specified in table TASYS.
TSYST – The transport layers will be assigned to the integration systems. ( Define all systems)
TWSYS – Consolidation routes ( define consolidation path)
DEVL – Transport layers are defined here

In “Configuring the CTS system” section, We will learn more about the transport tables in SE06 transaction

Programs in the CTS process:

In the CTS table section we learned about the RDDIMPDP program. RDDIMPDP program needs to be scheduled in all the clients in an instance. It is recommended to schedule the RDDIMPDP as event driven.
RDDPUTPP and RDDNEWPP programs can be used to schedule RDDIMPDP program in the background.

The ABAP/4 programs that RDDIMPDP starts are determined by the transport step to be executed that is entered in the function field of table TRBAT.

Function Job Name Description of transport Steps

J RDDMASGL Activation of ABAP/4 dictionary objects
M RDDMASGL Activation of match codes and lock objects
S RDDDISOL Analysis of database objects to be converted
N RDDGENOL Conversion of database objects
Y RDDGENOL Conversion of matchcode tables
X RDDDICOL Export of AD0 objects
D RDDDIC1L Import of AD0 objects
E RDDVERSE Version management update during export
V RDDVERSL Version management update during import
R RDDEXECL Execution of programs for post – import processing
G RDDDIC3L Generation of ABAP/4 programs and screens

Version Management:

One of the important features of Workbench Organizer is Version Management. This feature works for all the development objects. Using the version management feature the users can compare and retrieve previous versions of objects.

Version management provides for comparisons, restore of previous versions, documentation of changes and assistance in the adjustment of data after upgrading to a new release. With the release of a change request, version maintenance is automatically recorded for each object. If an object in the system has been changed N times, it will have N delta versions and one active version. To display version management, for ABAPs use transaction SE38 and for tables, domains and data elements use SE11. The path to follow is Utilities -> Display version. Using version management the users can view existing version for previously created ABAP code, make changes to the code, compare code versions and restore original version of the code. Now the users will be restore previous versions without cut and paste steps of the past.

TP and R3trans program:

The basis administrator uses TP program to transport SAP objects from one system to another. TP is a C program delivered by SAP that runs independently of the R/3 system. TP program uses the appropriate files located in a common transport directory /usr/sap/trans. TP starts C programs, ABAP/4 programs and special operating system commands to its job. R3trans is one of the most important utility program called by TP. Before using the TP program, the basis administrator needs to make sure that the CTS system is setup properly and the right version of TP is running in the system. The TP program is located in the run time directory /usr/sap/<SID>/SYS/exe/run directory. It is automatically copied in the install process. A global parameter file TPPARAM that contains the databases of the different target systems and other information for the transport process controls TP. The global parameter file determines which R3trans is used for each system. If the parameter r3transpath is not defined properly then no export and import can be done. The basis administrator should make sure that the default value “r3transpath” is properly defined. Later in this chapter we will learn more about TP and R3trans; also we are going to see how they are used.

Configuring the TPPARAM file:

Each time TP is started, it must know the location of the global parameter file. As we have seen before TPPARAM file should be in directory /usr/sap/trans/bin. The parameters in TPPARAM can either global (valid for each and every system in the cts pipeline) or local to one system. Th parameters are either operating system dependant (these parameters preceded by a keyword corresponding to the specific operating system) or database dependant (contain a keyword corresponding to a specific database system).

The global parameter file provides variables that can be used for defining parameters. The variables can be defined in format: $(xyz). The brackets can be substituted with the “\”-character if required.

The following pre-defined variables are available for the global parameter file:

$(cpu1): The CPU name can be sun or as4 for example. In heterogeneous networks this variable is very important.

$(cpu2): Acronym for the name of the operating system. The example for this variable can be
hp-ux, or sunos . This is an operating system specific variable.

$(dname): Used for the day of the week (SUN,MON,….).

$(mday): Used for the day of the current month (01-31).

$(mname): Used for the name of the month (JAN…DEC).

$(mon): Used for the Month (01-12).

$(system): R/3 System name.

$(wday): Day of the week (00-06, Sunday=00, Monday=01, Tuesday=02 and so on).

$(yday): Day of the current year (001-366). Using the number any day of the year can be chosen.

$(year): Year (Example:1998 or 1999).

$(syear): Short form of the year (two positions).

$(yweek): Calendar week (00-53). The first week begins with the first Sunday of the year.

For the database connection:

The transport environment also needs parameters to connect to the R/3 System database. As we know already the every instance in the R/3 CTS pipeline has its own database, therefore specific parameters should be defined for each database system. From dbtype parameter of RSPARAM file, TP program identifies the database system.

The two parameters “dbname” and “dbhost” are required for ORACLE databases.
DBHOST: is the name of the computer on which the database processes execute. TCP/IP name of the host if NT is being used.
DBNAME: is the name of the database instance.
As of Release 3.0E, two new parameters have been introduced.
DBLOGICALNAME: The default value is $(system). The logical name that was used to install the database.
DBCONFPATH: The default value is $(transdir).

The parameters “dbname” and “dbhost” are also used for INFORMIX databases in an installation:
DBHOST: Same as Oracle.
DBNAME: Name of the database instance, uppercase and lowercase are distinguished here.
INFORMIXDIR : “/informix/<SAPSID>” is the default value. Defines the directory namewhere the database software can be found.
INFORMIXSQLHOSTS: “$(informixdir)/etc/sqlhosts[.tli|.soc]“is default value under Unix. The name of the SQLhosts file with its complete path is defined with this parameter.
INFORMIX_SERVER: “$(dbhost)$(dbname)shm” is the default value. The name of the database server may be specified for a local connect.

INFORMIX_SERVERALIAS: “$(dbhost)$(dbname)tcp”is the default vlue. The name of the database server can be specified for a remote connect.

For Microsoft SQL Server database the two parameters “dbname” and “dbhost” are also required. DBHOST: The TCP/IP name of the host on which the database is running.
DBNAME: The database instance name.

For DB2 in AS/400 only “dbhost” is required.
DBHOST: System name of the host on which the database is running.
If the”OptiConnect” is used, the following line should be specified:
OPTICONNECT 1

For DB2/ AIX

The two parameters “dbname” and “dbhost” are required
DBHOST: The host on which the database processes are running. It is the TCP/IP name of the host for Windows NT (As we have seen in the earlier examples).
DBNAME: Database instance name.
The DB2 for AIX Client Application Enabler Software must also be installed on the host on which tp is running.
ALLLOG: “ALOG” $(syear) $(yweek)”is the default value. This variable can be used in TPPARAM file to specify the name of a file in which tp stores information about every transport step carried out for a change request anywhere in the transport process. The file always resides in the log directory.

SYSLOG: “SLOG $(syear) $(yweek).$(system)” is the default value. This variable can be used to name a file in which tp stores information about the progress of import actions in a certain R/3 System. The file does not store information for any particular change request. The file always resides in the log directory.

tp_VERSION: Zero is the default value. If this parameter is set to not equal to zero, a lower version of tp may not work with this TPPARAM file. If the default value (zero) is set, the parameter has no affect.

STOPONERROR: (Numeric value) The default value is 9. When STOPONERROR is set to zero, tp is never stopped in the middle of an “import” or “put” call. When STOPONERROR is set to a value greater than zero, tp stops as soon as a change request generates a return code that is equal to or greater than this value (The numeric value of the STOPONERROR parameter is stored in the variable BADRC). Change requests, which still have to be processed for the current step, are first completed. A “SYNCMARK” in the buffer of the R/3 System involved, sets a limit here. tp divides the value of this parameter between two internal variables. STOPONERROR itself is treated as a boolean variable that determines whether tp should be stopped, if the return code is too high.

REPEATONERROR (Numeric value too): The default value is 9. The REPEATONERROR parameter is similar to STOPONERROR. The difference is, REPEATONERROR specifies the return code up to which a change request is considered to be successfully processed. Return codes less than REPEATONERROR are accepted as “in Order”. Change requests that were not processed successfully stay in the buffer.

NEW_SAPNAMES: Default value is “FALSE”. A file is created for each user of the R/3 System group in the “sapnames” subdirectory of the transport directory. Except some of the operating system,the name of the user is the name of the file. It is very important to remember hat the special characters or length of the file name could cause problems. If all the R/3 Systems in the transport group have at least Release level 3.0.; TP program is efficient to handle this problem. The user names are modified to create file names that are valid in all operating systems and the real user names are stored in a corresponding file.

Though we have seen so many parameters, for the minimum configuration the following two parameters are very important.

TRANSDIR: specifies the name of the common transport directory. The following is a typical example from TPPARAM of Unix as we have seen before.

transdir = /usr/sap/trans/

DBHOST: contains the name of the database host. In Windows NT environment, this is the TCP/IP host name. The following is an example in Unix:

DEV/dbname = DEV
DEV/dbhost = sap9f
DEV/r3transpath = /usr/sap/DEV/SYS/exe/run/R3trans

For TP, to control ‘Start and Stop’ command files and database in R/3 the following important parameters are specified in TPPARAM:

Parameters for the tp Function “PUT”: LOCK_EU (boolean) default value is “TRUE”. Though from version 3.1 onward the tp put command is used seldom in cts process still it is important to know how this parameter works. When “tp put” is used, it changes the system change option . If the parameter is set to “FALSE” nothing gets changed. If the parameter is set to “TRUE”, the system change option is set to “Objects cannot be changed” at the beginning of the call, and gets changed back to its previous value at the end of the call. The “tp put” command will give the exact status of the locking mechanism.

LOCKUSER (used as boolean value): Default value is “TRUE”. This parameter is about the user login while tp put call is executed. If this parameter is set to “FALSE”, no locking mechanism for the users takes affect. If this parameter is defined as “TRUE” then a character is set in the database level; so only DDIC and SAP* can log on to the system. Users that have already logged on are not affected (this is a reason for activating the parameters STARTSAP and STOPSAP). The charactertor is removed at the end of the call, and all the users can log on to the SAP R/3 System again.

STARTSAP: Default value is ” “.or “PROMPT” for Windows NT . This parameter is used by TP to start an R/3 System. It is not necessary for the clients to make tp start and stop R/3 system..

STOPSAP: Default value is ” “or “PROMPT” for Windows NT. TP uses this parameter to stop an R/3 System.

STARTDB: Default value is ” “. TP uses the value of this parameter to start the database of an R/3 System.
The parameter is not active under Windows NT.

STOPDB: Default value is ” “. TP uses the value of this parameter to stop the database of an R/3 System.
This parameter is not active under Windows NT.

The above parameters in UNIX can be used as following:

STARTSAP = startsap R3
STOPSAP = stopsap R3
STARTDB = startsap db
STOPDB = stopsap db

In Windows NT:

STARTSAP = \\$(SAPGLOBALHOST)\sapmnt\$(system)\sys\exe\run\startsap.exe
R3 <SID> <HOST NAME> <START PROFILE>
STOPSAP = \\$(SAPGLOBALHOST)\sapmnt\$(system)\sys\exe\run\stopsap.exe
R3 <SID> <HOST NAME> <INSTANCE> <PROFILE PATH + Instance profile>
The parameters STARTDB and STOPDB are not active under Windows NT.

Parameters for the tp function “CLEAROLD”

DATALIFETIME (Numeric): Default value is “200″. When the data file has reached a minimum age, it is moved to the subdirectory old data with tp check. tp clearold all. The life span of the data files in the data sub directory can be set in days with this all, parameter.

OLDDATALIFETIME (Numeric): Default value is “365″. When a file located in the olddata subdirectory is no longer needed for further actions of the transport system and has reached a minimum age, it is removed with tp check.all, tp clearold all. The minimum age in days can be set with this parameter.

COFILELIFETIME (Numeric): Default value is “365″. This parameter is used just like DATALIFETIME parameter.

LOGLIFETIME (Numeric): Default value is “200″. This parameter applies to the life span of the log files. When the log files in log subdirectory is no longer needed for the transport system and has reached a minimum age, it is deleted with the calls tp check.all, tp clearold all. The minimum age in days can be defined with this parameter.

The Three Key Utilities of the CTS system (TP, R3trans and R3chop):

TP: Earlier in this chapter we have seen the objectives of TP. The TP transport control program is a utility program that helps the user to transport objects from one system to another. TP program is the front-end for the utility R3trans. TP stands for “Transports and Puts”. To make the TP work successfully the CTS system needs to be correctly configured. The following steps are very important for TP to run properly.

The transport directory /usr/sap/trans must be installed and NFS mounted to all the systems in the CTS pipe line.
RDDIMPDP program must be running (event driven is recommended) in each client. RDDIMPDP can be scheduled in the background by executing RDDNEWPP or RDDPUTPP. Use the tp checkimpdp <sap sid> command in /usr/sap/trans/bin directory as <sid>adm user to check RDDIMPDP program.

Use the tp connect <sap sid> command in /usr/sap/trans/bin directory to see whether the tp program is connecting to the database successfully or not. To run TP command the user has to logon as <sid>adm in source or target system.

The R/3 Systems in the CTS pipeline must have different names.

The Global CTS Parameter File TPPARAM must be correctly configured.

The source system (for the export) and target system ( for the import) must have at least two background work processes. TP always schedules the C class job, so if all the background jobs are defined as A class job then there will be problems in transport steps.

Important Tips :.It is always better to have the up to date TP version installed in your system. A user can ftp a current version of TP from SAPSERV4 of SAP. Though R3trans and other utility programs can be used to do the transport, it is recommended to use TP whenever possible for the following reasons..

The exports and imports are done separately using TP program. For example: when a transport is released from the system, the objects are exported from the source database to the operating system and then the import phase starts to transport those objects to the target system.

TP takes care of the order of the objects. The order, that was followed to export the objects; the same order will be followed to import them to the target database.

The TP command processes all change requests or transports in the SAP system buffer that have not yet been imported successfully. All the import steps are executed automatically after TP calls R3trans program to execute the following necessary steps:

Dictionary Import: ABAP/4 dictionary objects will be imported in this step.

Dictionary Activation: Name tabs or runtime descriptions will be written inactively. The R/3 system keeps running until the activation phase is complete. The enqueue modules are the exceptions in the running phase. After the activation of new dictionary structure the new actions are decided to get the runtime objects to the target system.

Structure conversion: If necessary the table structure is changed in this phase.

Move Nametabs: The new ABAP/4 Dictionary runtime objects which were inactive up to now are moved into the active runtime environment in this process. The database structures are adjusted accordingly. From the first step to the Main import step inconsistencies can occur to the R/3 system. After the main import phase all the inconsistency ca be solved.

Main import with R3trans: All the data are imported completely and the system comes to a consistent state.

Activation of enqueue-objects: The enqueue-objects cannot be activated in the same way as the objects of the ABAP/4 Dictionary, so they have to be activated after the main import in this step. They are then used directly in the running system.

Structure Conversion of match codes, Import application defined objects, versioning and execution of user defined activities are some of the steps after activation of enqueue-objects. The next step is generation of ABAP/4 programs and screens, where all the programs and screens associated with the change request are generated. When all the import steps are completed successfully, the transport request is removed from the import buffer.

It is recommended by SAP to schedule regular periods for imports into the target system (e.g. daily, weekly or monthly). Shorter periods between imports are not advisable. The transport to production should not be done in the off hours when the users are not working

TP can be started with different parameters. The “tp help” command can help user to generate a short description about the use of the command.
The following are the some important commands of TP:

For export:

tp export <change request>: The complete objects in the request from the source system will be transported. This command also used by SAP System when it releases a request.

tp r3e <change request>: R3trans export of one transport request.

tp sde <change request>: Application defined objects in one transport request can be exported.

tp tst <change request> <SAP system >: The test import for transport request can be done using this command.

tp createinfo <change request>: This command creates a information file that is automatically done during the export.

tp verse <request>: This command creates version creates versions of the objects in the specified request.

To Check the transport buffer, global parameter file and change requests:

tp showbuffer <sid>: Shows all the change requests ready to be imported to the target system.

tp count <sid>: Using this command users can find out the number of requests in the buffer waiting for import.

tp go <sid>: This command shows the environment variables needed for the connection to the database of the <sid> or target system.

tp showparams <sid>: All the values of modifiable tp parameters in the global parameter file. The default value is shown for parameters that have not been set explicitly.

To import the change requests or transports:

tp addtobuffer <request>.<sid>: If a change request is not in the buffer then this command is used to add it to the buffer, before the import step starts.

tp import all <sid>: This command imports all the change requests from the buffer to the target system.

tp put <sid>: The objective of this command is same as “tp import all <sid>”, but this command locks the system. This command also starts and stops the SAP system, if the parameters startsap and stopsap parameters are not set to ” “.

tp import <change request> <sid>: To import a single request from the source system to target system.

tp r3h <change request>| all <sid>: Using this command user can import the dictionary structures of one transport or all the transport from the buffer.

tp act <change request>|all <sid>: This command activates all the dictionary objects in the change request.

tp r3i <change request> | all <sid>: This command imports everything but dictionary structures of one.

tp sdi <change request>|all <sid>: Import application-defined objects.

tp gen <change request>|all <sid>: Screen and reports are generated using this command.

tp mvntabs <sid>: All inactive nametabs will be activated with this command.

tp mea <change request>|all <sid>: This command will activate the enqueue modules in the change request.
When you call this command, note the resulting changes to the import sequence.

Additional tp utility options:

tp check <sid>|all (data|cofiles|log|sapnames|verbose): User uses this command to find all the files in the transport directory that are not waiting for imports and they have exceeded the minimum time specified using the COFILELIFETIME, LOGFILELIFETIME, OLDDATALIFETIME and DATALIFETIME parameters of TPPARAM file.

tp delfrombuffer <request>.<sid>: This command removes a single change request from the buffer. In case of TMS, the request will be deleted from the import queue.

tp setstopmark <sid>: A flag is set to the list of requests ready for import into the target system. When the user uses the command tp import all <sapsid> and tp put <sapsid>, the requests in front of this mark are only processed. After all the requests in front of the mark have been imported successfully, the mark is deleted.

tp delstopmark <sid>: This command deletes the stop mark from the buffer if it exists.
tp cleanbuffer <sapsid>: Removes all the change requests from the buffer that are ready for the import into the target system.

tp locksys <sid>: This command locks the system for all the users except SAP* and DDIC. The users that have already logged on are not affected by the call.

tp unlocksys <sid>: This command unlocks the system for all the users.

tp lock_eu <sid>: This command sets the system change option to “system can not be changed” tmporarily.

tp unlock_eu <sid>: This command unlocks the system for all the changes.

tp backupall <sid>: This command starts a complete backup using R3trans command. It uses /usr/sap/trans/backup directory for the backup.

tp backup delta <sid>: Uses R3trans for a delta backup into /usr/sap/trans/backup directory.

tp sapstart <sid>: To start the R/3 system.

tp stopsap <sid>: To stop the R/3 system.

tp dbstart <sid>: To start the database.

tp dbstop <sid>: To stop the database.

Unconditional modes for TP: Unconditional modes are used with the TP program and these modes are intended for the special actions needed in the transport steps. Using unconditional mode user can manipulate the rules defined by the workbench organizer. The unconditional mode should be used when needed, otherwise it might create problems for the R/3 system database. Unconditional mode is used after the letter “U” in the TP command. Unconditional mode can be a digit between 0 to 9 and each has a meaning to it. The following is a example of a import having unconditional mode.

tp import devk903456 qas client100 U12468

0: Called a overtaker; change request can be imported from buffer without deleting it and then uncoditional mode 1 is used to allow another import in the correct location.

1: If U1 is used with the export then it ignores the correct status of the command file; and if it is used with import then it lets the user import the same change request again.

2: When used with tp export, it dictates the program to not to expand the selection with TRDIR brackets. If used in tp import phase, it overwrites the originals.

3: When used with tp import, it overwrites the system-dependant objects.

5: During the import to the consolidation system it permits the source systems other than the integration system.

6: When used in import phase, it helps to overwrite objects in unconfirmed repairs.

8: During import phase it ignores the limitations caused by the table classification.

9: During import it ignores that the system is locked for this kind of transport.

R3trans: TP uses R3trans program to transport data from one system to another in the CTS pipeline. efficient basis administrator can use R3trans directly to export and import data from and into any SAP systems. Using this utility transport between different database and operating system can e done without any problems. Different versions of R3trans are fully compatible with each other and can be used for export and import. The basis administrator has to be careful using R3trans for different release levels of R/3 software; logical inconsistency might occur if the up to date R3trans is not used for the current version of R/3 system.

The syntax for using the control file is following:

R3trans [<options>] <control file> (several options used at the same time; at least one option must be there)
For example: R3trans –u 1 –w test.log test

In the above example a unconditional mode is used, a log file “test.log” file is used to get the log result and a control file “test”, where the instructions are given for the R3trans to follow. The user needs to logon as <sid>adm to execute R3trans.

The following options are available for the R3trans program:

R3trans -d : This command is used to check the database connection .

R3trans -u <int>: Unconditional mode can be used as we have seen in the above example.

R3trans -v : This is used for verbose mode. It writes additional details to the log file

R3trans -i <file>: This command directly imports data from data file without a control file.

R3trans -l <file>: This provides output of a table of contents to the log file.

R3trans -n : This option provides a brief information about new features of R3trans.

R3trans –t: This option is used for the test mode. All modifications in the database are rolled back.

R3trans -c <f1> [<f2>]: This command is used for conversion. The <f1> file will be copied to <f2> file after executing a character set conversion to the local character set.

Important tips: Do not confuse the backup taken using R3trans with database backup. The backups taken using R3trans are logical backups of objects. In case something happens to the SAP system these backups can not be used for recovery. R3trans backups can be only used to restore a copy of a particular object that has been damaged or lost by the user.

R3trans -w <file>: As we have seen in the above example this option can be used to write to a log file. If no file is mentioned then trans.log is default directory for the log.

R3trans also can be used for the database backup.

R3trans –ba: This command is used for a complete backup. we will see in the next paragraph how to use
the control file for the backup.
R3trans –bd: This command is used for a delta backup if the user does not want a complete backup.
R3trans –bi: This option will display backup information.

The following are some of the examples of control files:

We have already learned how to use a command for the logical backup of the objects in the database. To get a complete backup the following example control file can be used.

backup all
file = /usr/sap/trans/backall

The option “file = …” is the name of the directory into which the data files are to be written. If you are taking a complete backup of DEV system then the backup file is going to look like “DEV.A000.bck” the next complete

About these ads

17 Responses to “SAP R/3 Correction and Transport System”


  1. 1 nielr1 Friday, 2 March 2007 at 4:15 am

    Hi,

    Wow – great info. I have a quick question. Is it possible to transport between systems running on different version or kernel levels? Is this an acceptable practice in SAP? How would you handle moving changes from a system on one version to another system on another version otherwise without reentering them by hand?

    Thanks,
    Niel

  2. 3 Kumar Monday, 10 September 2007 at 7:50 pm

    hi,

    just read your article on cts in the site https://myadmin.wordpress.com/2007/02/19/sap-r3-correction-and-transport
    -system/ and found it very useful. I am looking for a docu on how to configure a transport system with three clients on the same system. I have 100/200/300, i want to develop in 100, 200 is for QAS and 300 for PRD. I want to transport first from 100->200, then test the program on 200 and if ok, i want to transport from 200 -> 300. Can you please help me!

    Regs.

    Kumar/Germany

  3. 4 Yogi Tuesday, 27 November 2007 at 1:35 pm

    Great post… do you know of a way by which approval’s can be handled via command line or some other scripting means in a transport route comprising of three systems ?

    Yogi

  4. 5 Deepak Monday, 4 February 2008 at 12:07 am

    thans for this it’s vary useful for me.
    i want one more things.
    how can we find the system IP from thos is use by any user to schedule
    a background jobs.
    plz reply.
    thanks in advance.

  5. 6 Jerry Sunday, 21 December 2008 at 1:15 pm

    How do you look at and deciper a cofile?

  6. 7 Rahul Friday, 20 February 2009 at 8:27 pm

    Pretty Useful and informative. Could you please elaborate on configuring the transport system in a 3 system landscape and where the DEV system has more than 1 client.

  7. 8 Ana Monday, 18 October 2010 at 9:23 am

    Hi;
    Excelent post, help me to resolve a problem with support package application.
    Thxs a lot!

  8. 9 sridhar Tuesday, 22 November 2011 at 2:40 pm

    Lot’s of Knowledge based

  9. 10 Prakash Friday, 11 January 2013 at 12:58 am

    Information given in the page is really helpful for BASIS admin’s.
    Superb document.
    Thanks for sharing a knowledge.

  10. 11 exo.at.ua Tuesday, 4 June 2013 at 8:25 am

    Howdy would you mind letting me know which webhost you’re working with? I’ve
    loaded your blog in 3 completely different browsers and I must say this blog loads a lot quicker then most.
    Can you suggest a good internet hosting provider at a honest price?
    Thanks a lot, I appreciate it!

  11. 12 raspberry ketones dosage Monday, 17 June 2013 at 5:42 pm

    Pretty section of content. I just stumbled upon your blog and in accession
    capital to assert that I acquire actually enjoyed account your
    blog posts. Anyway I will be subscribing to your feeds and even I achievement you access consistently quickly.

  12. 13 playfred Wednesday, 24 July 2013 at 6:04 pm

    Thanks to my father who stated to me regarding this blog, this blog is truly amazing.

  13. 14 Emil   Blair   Thursday, 25 July 2013 at 6:02 pm

    Asking questions are in fact pleasant thing if you
    are not understanding anything completely, except this paragraph presents fastidious understanding yet.

  14. 15 eurovision betting Wednesday, 7 August 2013 at 7:43 am

    Hi there, constantly i used to check webpage posts here early
    in the morning, since i enjoy to gain knowledge of more and more.

  15. 16 give phone number Friday, 9 August 2013 at 6:12 am

    Hi there it’s me, I am also visiting this site on a regular basis, this web site is actually pleasant and the people are genuinely sharing nice thoughts.

  16. 17 sleeping tablets Sunday, 11 August 2013 at 10:50 pm

    Do you have a spam issue on this site; I also am a blogger,
    and I was wanting to know your situation; we have developed some nice procedures and we are looking to exchange methods with other folks, please shoot me an e-mail if
    interested.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Pages

My Favorites

SAP
February 2007
S M T W T F S
« Jan   Mar »
 123
45678910
11121314151617
18192021222324
25262728  

Previous Entries


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: