IT/SAP

STMS Script in OS

SAP_BASIS 2022. 3. 28. 13:33

1. Add to Buffer

#!/bin/bash

SID=<SID>
TPLIST=./trns_list.txt
TPSTATUS=./${TPLIST}.log

for i in `cat ${TPLIST}`
do
/usr/sap/${SID}/SYS/exe/uc/linuxx86_64/tp addtobuffer $i ${SID} u1 pf=/usr/sap/trans/bin/TP_DOMAIN_${SID}.PFL
RC=$?
echo "`date`...Transport ${i} Status RC=${RC}" >> ${TPSTATUS}
done

 

2. Import

#!/bin/bash

SID=<SID>
TPLIST=./trns_list.txt
TPSTATUS=./trns_import.log

for i in `cat ${TPLIST}`
do
/usr/sap/$SID/SYS/exe/uc/linuxx86_64/tp import $i $SID client=100 u0126 pf=/usr/sap/trans/bin/TP_DOMAIN_$SID.PFL
RC=$?
echo "`date`...Transport ${i} Status RC=${RC}" >> ${TPSTATUS}
done

## Truncate trns_list.txt
cp /dev/null trns_list.txt;

'IT > SAP' 카테고리의 다른 글

STMS Script in OS  (0) 2022.03.28
Create systemctl service for SAPRouter  (0) 2021.11.26
Deploying the SCA Using Telnet  (0) 2021.02.19
To download the SAP Notes in wget  (0) 2020.12.10
Register AS ABAP system to SLD in RZ70 using HTTP connection  (0) 2020.08.11
Useful SAP Notes  (0) 2020.07.24