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' 카테고리의 다른 글

Change SNOTE Interface  (0) 2023.05.12
Create self-signed SSL certificate in SAP ABAP  (0) 2022.07.21
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