cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using TP Import in Command Line

Former Member
0 Likes
44,289

Hi All,

I need to import number of transport requests in Quality Assurance System all at once so I decided to use TP Import in command line.

The main issue is I don't know how to handle Error and Warning. I don't want to continue import process if one transport request encounter Error or Warning. I don't know how to use TP return code to handle this situation

Any idea regarding this issue will be appreciated,

Sanaz.

View Entire Topic
Former Member
0 Likes

Hi,

You can do transports via command line and can use below command:

1) First add all transports in the buffer with below command:

tp addtobuffer <transport number> <SID> pf=/usr/sap/trans/bin/<transport profile>

2) Then use below tp command to import all requests:

tp import <transport number> <SID> CLIENT=<client number> u128 pf=/usr/sap/trans/bin/<transport profile>

Make a .sh script and include all transport requests with add to buffer and import commands. Then when you will run it, it will show you the output of each and every transport with return codes as well.

Also, when it will finish all the transports, you can login into the system and check resulting return codes and logs in STMS.

But it is always advisable that do transports from STMS.

Thanks

Sunny

Former Member
0 Likes

Thanks for the reply Sunny,

The main issue is to handle error and warning during import process in command line. I want to stop importing requests if Error or Warning occurred using batch

Sanaz.

Former Member
0 Likes

Hi,

I don't think so, it is possible. Once you will do the import then later on you can check import logs in STMS. Then you can take step if some transports is in the error.

Thanks

Sunny

Former Member
0 Likes

Hi Sunny ..what is the u code for ignoring component versions in e.g

tp pf=/usr/sap/trans/bin/TP_DOMAIN_SID.PFL import TASK901105 SID  U128 client=002;

it this case i have used 128

shouvik
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Ntsako,

Thanks a lot this works. However, can you please clarify on what basis you select the u code as U128?

BR,
Shouvik

Former Member
0 Likes

http://premkolipaka.blogspot.co.za/2012/08/requests-do-not-match-component-version.html?view=magazin...

in the command on the OS level the U128 option seems to be the ignore component version option as seen in stms . I normally use this option because in the command line on the os level while using TP IMPORT the system does not warn you when the transport was developed in a system with a different component version you can only see this in stms

If you are sure that you landscape is consistent then there no need to use this code but there are many codes

Former Member
0 Likes

Hi I also think this will come in handy

while I was trying to process a solution manger request using charm the transport failed due to the component version option not being flagged and you will not be able to do the transport manualy in the managed system where the transport lies.in simple terms when you go the stms the and try to transport you get the error " you cannot import and transports for Project <SID><project number> at the moment.

Please try this to try and resolve the main problem in question

The work around the inconsistent component version is to add the parameter SP_TRANS_SYNC = OFF in the transport tool tab and this is done on the domain controller for SID PP1


goto


Tcode stms>overview>systems>


double click on the target system

got to the "transport tool '' tab


click on the pencil(edit mode)


click on insert row


then add


SP_TRANS_SYNC = OFF



make sure SP_TRANS_SY and then OFF must go under Value