Search This Blog

Tuesday, September 23, 2008

FNDLOAD using Shell Script

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"

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

Over 10,000 visits in less than 7 months

Hurrrrrray .. There has been over 10,000 hits from around the world in less than 7 months. Thanks for your regular visit and comments.
Keep visiting. Please feel free to share with me any information/content/topic and I can post that with your name in this blog.

Thanks again.

Wednesday, September 3, 2008

Call Concurrent Program from responsibility Menu

The concurrent programs can be called in one of the following 2 ways
1) From standard concurrent request by attaching the concurrent program to a request group. The request group name can be found from the responsibility. Query for the request group and attach concurrent program to that request group. Now the program will be available from that responsibility.
2) The other option is to call request directly from the Menu.

To assign a concurrent program to a menu follow the steps. I have taken Import Bills and Routings and import items program as an example.
a) Create a new function of form type and name it as your concurrent program
Bills of Material:

Import Items:

b) In the parameter field enter the request group name(if all programs assigned to the request is to be available) or enter concurrent program name(if only one concurrent program should be available).
Bills of Material:

Import Items:

c) Assign this function to a responsibility menu from which you want to run this concurrent program.

Now go to that responsibility and click on the function. It will directly launch the concurrent program

Monday, September 1, 2008

Completed 50 Posts

Just noticed that I have posted 50 articles in the blog. Thanks for visiting and appreciating it by your responses/comments. That does gives a lot of encouragement and boost in posting more topic, so keep peeking the site as there is lot more to come.

Any ideas or suggestions are more than welcome. If you have any article that needs to be shared, please feel free to share with me and I can post them in the blog with your name/photo.


Copyright (c) All rights reserved. Presented by Suresh Vaishya