on 11-26-2015 10:42 AM
Dear Experts,
I want to automate th transport of sap request in windows batch file, i have created this one :
tp cleanbuffer MBL pf=C:\usr\sap\trans\bin\TP_DOMAIN_MBL.PFL
tp showbuffer MBL pf=C:\usr\sap\trans\bin\TP_DOMAIN_MBL.PFL > liste_OTs.txt
for /F "tokens=*" %%A in (liste_OTs.txt) do (
ECHO Processing OT %%A
echo "tp import %%A MBL pf=E:\usr\sap\trans\bin\TP_DOMAIN_MBL.PFL "
)
Hi,
The problem with showbuffer command is it will take all the request that in buffer regardless of whether there are imported or not.
You can have the list of TRs that needs to imported copied in text file manually.
Also the correct For loop would be like...
for /F "tokens=*" %%A in (liste_OTs.txt) do (
ECHO Processing OT %%A
cdexe
tp import %%A MBL client=100 u0 pf=E:\usr\sap\trans\bin\TP_DOMAIN_MBL.PFL"
)
Regards,
Prithviraj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem with showbuffer command is it will take all the request that in buffer regardless of whether there are imported or not.
if
tp cleanbuffer
is executed before
tp showbuffer
the buffer should only contain not yet or unsuccessfull imported requests.
but to be honest
echo "tp import %%A MBL pf=E:\usr\sap\trans\bin\TP_DOMAIN_MBL.PFL "
is performs nothing except producing output. tp will not be called.
regards
Peter
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.