cancel
Showing results for 
Search instead for 
Did you mean: 

Mass adding of transports

Former Member
0 Kudos

Hi,

I am doing a "mass migration" of transports from one system to another and was wondering is there a faster way of adding transports in STMS.

I'm currently doing this : STMS -> Extras -> Other Requests -> Add

I have ftp all the cofiles and data (in /usr/sap/trans) files from System A to System B and am trying to import all the transports in System B. System A and System B cannot "see" (not connected to) each other and the transport directory (usr/sap/trans) is not "shared".

Is there an option in STMS whereby I can do a mass addition of these transports rather than having to add them one at a time?

Thanks !

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sibab,

You can add multiple request using tp command.

Create a batch file with the requests and execute it at o/s level.

Regards

Ashok Dalai

Former Member
0 Kudos

Hi Ashok,

Thanks for your reply.

How do you add ALL the transports using tp command?

Thanks

JPReyes
Active Contributor
0 Kudos

You need to first add them all to the buffer and then import..

Read,

http://help.sap.com/saphelp_nw04s/helpdata/EN/3d/ad5b744ebc11d182bf0000e829fbfe/content.htm

regards

Juan

Former Member
0 Kudos

Hi Juan,

Thanks for your reply.

As I have not used tp command before, is this what I should be doing :

tp addtobuffer <SID>K* <SID>

Some queries :

1) does the "tp addtobuffer" command accept wildcard?

2) Will the above add all the transports into tcode STMS so that I can proceed to do the import from there (click on the truck icon)?

Regards

JPReyes
Active Contributor
0 Kudos

tp addtobuffer <SID>K* <SID>

Looks good to me,

Some queries :

1) does the "tp addtobuffer" command accept wildcard?

Can't remember, haven't done it in a while... but you can try it, you can also build a script with all the transports you need and run the script. (You can always use excel to prepare tha script)

2) Will the above add all the transports into tcode STMS so that I can proceed to do the import from there (click on the truck icon)?

You could... but you could also call tp import all <sapsid>

Regards

Juan

Former Member
0 Kudos

You can use the batch file as below

1). save this as tp.scr script

  1. created by Arjun

  2. $1 = trans number

  3. $2 = SID in uppercase

  4. $3 = client number

  1. Uncomment tp ADDTOBUFFER to add transport request to SID's buffer

tp ADDTOBUFFER $1 $2 pf=/usr/sap/trans/bin/TP_DOMAIN_<SID>.PFL -Dtransdir=/usr/sap/trans

2). Save this as tp.pl script

open (TPLOG, '>>tp.list.log') or die "can not open tp.list.log for write $! ";

while (my $line = <>) {

next if ($line eq '');

chomp $line;

$tpNum = $line;

my ($sid, $client) = ( 'CMD',300 );

print " Processing tp# $tpNum ...\n";

$tpOutput = `./tp.CMD.scr $tpNum $sid $client`;

print TPLOG "###\n$tpNum $sid\n$tpOutput\n\n";

if ($tpOutput !~ m/tp finished with return code: 0/i) {

print "$tpNum:\n$tpOutput\ncont?: ";

<STDIN>;

}

}

close TPLOG;

3). Execute the script as follows

./tp.scr <SID>

Former Member
0 Kudos

Thanks, Juan

Former Member
0 Kudos

Thank you very much, Arjun.

The script is most helpful !

Answers (0)