on 07-20-2009 8:03 AM
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 !
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You can use the batch file as below
1). save this as tp.scr script
created by Arjun
$1 = trans number
$2 = SID in uppercase
$3 = client number
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>
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.