需求
总共有359个change request,要加进系统中,然后按指定顺序倒入两个不同的client。
人懒,不喜欢什么东西都是手工来进行,希望能批量进行。
操作
先整出一个列表,我把它叫list.txt,里面就是这样一行一行的东西
DEVK900004
DEVK900012
DEVK900008
...
做之前要确保你那些物理文件已经拷进usr/sap/trans下的cofiles和data里面了。
然后以<sid>adm用户登录,打开一个cmd窗口
把这些东西一个个的加进tp的buffer中(当然是让它自动加啦,手工加咱懒嘛)
for /F %i in (list.txt) do tp addtobuffer %i SID d:/usr/sap/trans/bin/TP_DOMAIN_SID.PFL
然后再把这些东西一个个的导进第一个client中
for /F %i (list.txt) do tp import %i SID U03689 client=100 d:/usr/sap/trans/bin/TP_DOMAIN_SID.PFL
总共花费了近两个小时时间,终于搞定了这些倒入的事情。唯一的好处就是少点了很多鼠标,就坐在那里看结果就行,嘿嘿。
附tp addbuffer时U选项的含义
The U stands for unconditional force, similar to the options that you can select when importing via the SAP GUI.
0: Overtaker - change requests can be imported without deleting it from the buffer. Usually, this is followed sooner or later by an import using unconditional mode 1 to import another transport in the correct sequence.
1: Import the transport again.
2: Allow transport to overwrite SAP or System originals.
3: Allow transport to overwrite system-dependant objects.
5: Allow transport to contain source systems other than the integration system (usually used only when importing into Development or Consolidation system).
6: Allow transport to overwrite objects in unconfirmed repairs.
8: Allow transport to ignore limitations caused by the table classification (see the example above).
9: Allow transport to ignore that the system is locked for this kind of transport.
再附Unix下的操作方法
同样整理一个list文件,里面每个TR一行
#su - <sid>adm
>sh
$for tr in $(cat list);do tp addtobuffer $tr <SID> U128 pf=/usr/sap/trans/bin/TP_DOMAIN_<domain controller sid>.PFL;done
$for tr in $(cat list);do tp import $tr <SID> U03689 client=<client> pf=/usr/sap/trans/bin/TP_DOMAIN_<domain controller sid>.PFL;done
又搞定