How to Bulk ADD TRs to buffer sap

Create THREE files file with below file name Systems.lst and transport.txt  and ADDBUFFER.sh

Systems.Lst

SID.200


ADDBUFFER.sh

#!/bin/csh

foreach sysline (`cat Systems.lst`)

        set sid = `echo $sysline | awk '{split($0,a,"."); print a[1]}'`

        set clnt = `echo $sysline | awk '{split($0,a,"."); print a[2]}'`

        echo ""

        echo "System ID=$sid  Client=$clnt"

        echo ""

        foreach trline (`cat Transports.lst`)

                echo "Adding transport to buffer"

                echo "Executing tp ADDTOBUFFER $trline $sid client=$clnt pf=/usr/sap/trans/bin/TP_DOMAIN_CDD.PFL"

                tp ADDTOBUFFER $trline $sid client=$clnt pf=/usr/sap/trans/bin/TP_DOMAIN_CDD.PFL

#       tp IMPORT $trline $sid client=$clnt U128 pf=/usr/sap/trans/bin/TP_DOMAIN_GAD.PFL

        end

end


Transport.txt

add trs to this file 


at last run this file ADDBUFFER.sh

Comments

Popular posts from this blog

SAP PSE generation in java stack

SAP SUM (Software Update Manager) Upgrade Phases

Troubleshooting issues with TREX indexing