Whenever we use FNDLOAD at times it becomes difficult to remember the .lct name.
Here I have tried to create a shell script which can be used to DOWNLOAD or UPLOAD concurrent program definitions using FNDLOAD. The shell script prompts for necessary parameter needed to perform specific action.
Shell Script Code
-----------------
Download concurrent program definition using FNDLOAD. Create a shell script FNDCPDOWN using following code.
echo "Enter APPS Password: "
stty -echo #Turns echo off
read appspwd
stty echo #Turns echo on
echo "Enter .ldt Name: "
read ldtname
echo "Enter Application Short Name: "
read applname
echo "Enter Concurrent Program Short Name: "
read cpname
FNDLOAD apps/$appspwd O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct $ldtname PROGRAM APPLICATION_SHORT_NAME="$applname"
CONCURRENT_PROGRAM_NAME="$cpname"
echo "LDT File $ldtname created"
Upload Concurrent Program using FNDLOAD. Create a shell script FNDCPUP using following code.
echo "Enter APPS Password"
stty -echo #Turns echo off
read appspwd
stty echo #Turns echo on
echo 'Enter .ldt file name to upload'
read ldt_name
FNDLOAD apps/$appspwd O Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct $ldt_name
Test the above created shell script.
For downloading the script will prompt for APPS password, .ldt file name, application name and Concurrent program short name.
For uploading the script will prompt for APPS password and .ldt file name.
Related Post
Create Concurrent Programs using FNDLOAD
0 Comments:
Post a Comment