Transporting through tp command

Sometimes we come across a situation where we cannot use the normal way of transporting requests, i.e., through STMS_IMPORT. Probably there is some error in the landscape or RFC between systems. In that case we have to use the tp command, which is actually called during the whole GUI process of STMS_IMPORT.

Just for the bi-curious minds tp = transports and puts. Not toilet paper or time pass!!
So we have to login in the required server. Now we have to realize that tp is a command line program. So, in order to use it we have to telnet to the required servers IP (mostly if they are HP-UX or SUN SOLARIS)
After logging in successfully to the server,change the user id
to adm if sid = prd, then

# su - prdadm
Once in, we have to go to this directory :

cd /usr/sap/trans/bin

In this directory we find the parameter file, namely .PFL, do check if its the right one or not, it should have the domain controllers sid, in the name of the file.

You can also open the file and view its contents
Use this command : cat .PFL

From this directory we initiate all the comand.
First connect to the database instance.

tp connect PRD

We will get the output as Everything OK.

Then,
tp addtobuffer PRDK901234 PRD

We usually dont have to do this(I din't), as the request is already added to the buffer of the QAS or PRD system once it has been released from the previous system. But if you want you can go ahead anyway.

Then you can use the final command,
tp import PRDK901234 PRD client=123 u2
here the u2 is optional, this is the overwrite check we use in the STMS_IMPORT.
usually we choose two of the checks in the stms_import which are u2 and u6 according to the tp command, but I still dont know how to incorporate both of these. If anyone does, do let me know, I tried a couple of times but it gave me some syntax error.

Then we should get the output as Everything OK.

Its done.

Now in my case i was not able to do this even when i was in the /bin directory.
So after searching the net for a while, i stumbled upon this.
After logging into adm, no need to go to the directoy,
just use the commands as mentioned above and in the end add this
pf=/usr/sap/trans/bin/TP_DOMAIN_.PFL

For exmaple,
tp import PRDK901234 PRD client=123 u2 pf=/usr/sap/trans/bin/TP_DOMAIN_.PFL

All in one line.

like this , for all the commands.

I know this is very long and rough, but i tried to include most things.
Any doubt just mail me or leave a comment.

Cheers.





0 comments: