Shell scripting for Bulk transports in unix


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Shell scripting for Bulk transports in unix
# 1  
Old 05-22-2008
Shell scripting for Bulk transports in unix

Hi friends,

I would like to trasnport a bulk request in hp-ux for SAP ECC6.0 system, would request you to please send shell script for this.

tp addtobuffer <request nos.> sid

i want a shell script to run at unix level.

Regards

XXXXXXXXX
# 2  
Old 05-22-2008
to get you started, try building on this:
Code:
#!/bin/sh
DESTINATION="host.to.send.to"
for file list in $*
do
    <file transfer mechanism> $file
done

# 3  
Old 05-23-2008
#! /usr/bin/sh
for i in `cat /usr/sap/trans/bin/xyz.txt'
do
echo 'Adding to Buffer - ' $i '-------'
tp addtobuffer $i <sid> CLIENT=<Number> u128 pf=/usr/sap/trans/bin/TP_DOMAIN_QE1.PFL
# 4  
Old 05-23-2008
#! /bin/ksh
#
SName=tp_buffer_sid_ # Script Name
#--------------------------- Purpose: ----------------------
# Populates sid buffer with list from input file
# To execute, as sidadm, cd /usr/sap/trans/bin, then tp_buffer_sid {input_file}
#---------------------------------------------------------------------
sid=sid
SID=sid
Clients="090"
Mode=u01236
#--------------------
cd /usr/sap/trans/bin
# If a parameter was passed, then redirect the standard in to the passed file
# else prompt for the name of the transport.
#
if [ "$#" -gt 0 ]; then
if [ -f "$1" ]; then
echo File read is: $1
exec 0<$1
else
echo $1 is not a file!!
exit 15
fi
else
echo Please enter the transport number for $SID
# read transid junk
fi
while read transid; do
for Cln in $Clients
do
echo populate buffer entry $transid to $Cln
tp addtobuffer $transid $SID pf=TP_DOMAIN_SID.PFL client=$Cln $Mode
echo ----------------------------------------
done
echo '>>>>>>>>>>>>>>>>>>>' buffer population for $transid finished
if [ "$#" = "0" ]; then break; fi
done
echo
echo ================== $SName finished ====================
# 5  
Old 05-23-2008
#! /usr/bin/sh
cd /usr/sap/trans/bin

for i in `cat /usr/sap/trans/bin/xyz.txt`
do
echo 'Adding to Buffer - ' $i '-------'
tp addtobuffer $i ERP CLIENT=200 u128 pf=/usr/sap/trans/bin/TP_DOMAIN_QE1.PFL
done



if you want to run at root level.
but change text file per your requirement and client number and TP_DOMAIN_<SID>.PFL
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

UNIX shell scripting

Hi Guys, I suppose I have a file with these values 1 2 3 4 5 6 and I want to count how many values do I have. I know is I had the values in lines I will use wc -l How can I do that ? Thanks in advance... (2 Replies)
Discussion started by: Phuti
2 Replies

2. Shell Programming and Scripting

UNIX shell scripting

I am new to Unix.. Can someone please help me to understand the concept of Login shell and non login shell ? what exactly the difference between them :confused: (1 Reply)
Discussion started by: lokita jain
1 Replies

3. Shell Programming and Scripting

Need help in UNIX Shell Scripting

Requirement is :- 1. there will be daily monthly and on demad flat files coming in SourceDir folder in unix. I want that if daily files are copied in the folder then my script shd check that if files are copied and are correct then process to load files trigger otherwise send a mail to... (1 Reply)
Discussion started by: Ruchi A
1 Replies

4. UNIX for Dummies Questions & Answers

Unix Shell Scripting( Calling from Unix to PLSQL)

Hello Experts, I have the following questions to be discussed here at this esteemed discussion forum. I have two Excel sheets which contain Unix Commands llike creating directory the structure/ftp/Copy/Zip etc to basically create an environment. I need help in understanding some of... (1 Reply)
Discussion started by: faizsaadq
1 Replies

5. Shell Programming and Scripting

$# in unix shell scripting what does it mean

Hi can some one let me know what is the meaning of $# $@ $_ @_ in unix shell scripting. I really appreciate your time for replying to my post. Thanks In Advance (4 Replies)
Discussion started by: einsteinBrain
4 Replies

6. UNIX for Advanced & Expert Users

Need your Help on Unix Shell Scripting.........

Hi Friends, 1. Bash Shell Scrpt to take backup at evening 2. I need a bash shell script for killing all processes. (5 Replies)
Discussion started by: vinayraj
5 Replies

7. Shell Programming and Scripting

Shell Scripting (Unix)

Hello Guys, Pls wot command can i use to veiw the configuration and usage of the Unix file systems T.T (3 Replies)
Discussion started by: tt1ect
3 Replies

8. Shell Programming and Scripting

Unix shell scripting

Hi, we are writing this fields dynamically retrieved from database and writing into the file. $bmpRec = $bmpRec.'|'.$cust_id; # sp4 $bmpRec = $bmpRec.'|'.$serv_id; # sp5 $bmpRec = $bmpRec.'|'.$site_id; # sp6 $bmpRec = $bmpRec.'|'.$loc_id; # sp7 ... (4 Replies)
Discussion started by: Maruthi Kunnuru
4 Replies

9. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

10. UNIX for Dummies Questions & Answers

Unix shell scripting

I need to write a script which analyses an invoice file, counting the amount of pages in the file to be printed per account number and per invoice. The account numbers are stored in another file which has instructions on what do with ach customers invoice as per their account number. please... (6 Replies)
Discussion started by: la_burton
6 Replies
Login or Register to Ask a Question