View previous topic :: View next topic
|
Author |
Message |
nirmal.poikaikumaran
New User
Joined: 29 Nov 2005 Posts: 66 Location: Bangalore
|
|
|
|
Hi,
My application has many DBnames like
1)forecast
2)inventry
3)distribu
but all the 3 db access the same MAPS/DIALOGS .... its set using a CList command
CLIST FORECAST.... while doing this ... I directly get into Common Map with this db enabled.
Like wise it happens for the other 2 tooo.
Query,
Is there any way that I can switch the DBNAME ... runtime?
for instance
1If i have enabled Forecast dbname and in one of the option I want to go to Inventory Database.... how can it be achieved?
Plz help
Thanks |
|
Back to top |
|
|
tgortner Warnings : 1 New User
Joined: 02 Jun 2006 Posts: 4
|
|
|
|
I hope I understand your question right. You would use DCUF SET DBNAME XXXXX at the CV prompt before executing the dialog. It will then be using that DB. |
|
Back to top |
|
|
nirmal.poikaikumaran
New User
Joined: 29 Nov 2005 Posts: 66 Location: Bangalore
|
|
|
|
Hey
The query is to do it in run time.... like i want to enable it via selecting some menu... not thru the national task code
DCUF SET DBNAME XXXXX... may be it shud be called via some kick offs...... |
|
Back to top |
|
|
tgortner Warnings : 1 New User
Joined: 02 Jun 2006 Posts: 4
|
|
|
|
You can issue a DCUF command from inside a dialog by linking to RHDCUF00. See manual "Callable Services." You could then invoke a different DB by menu option. |
|
Back to top |
|
|
nirmal.poikaikumaran
New User
Joined: 29 Nov 2005 Posts: 66 Location: Bangalore
|
|
|
|
Tim,
Thanks for the help. may i know which manual you are referrign to?
my code says
LINK PROG 'RHDCUF00' USING (RHDCUF00-INREC,
RHDCUF00-OUTREC).
Is this what you are referring? Please let me know how this works |
|
Back to top |
|
|
tgortner Warnings : 1 New User
Joined: 02 Jun 2006 Posts: 4
|
|
|
|
The manual I am referring to is called "Callable Services." Chapter 4 is titled "Invoking DCMT and DCUF Commands from Programs." Your code looks correct. I will attempt to attach the manual to this post.
Attachment Removed. The distriution of copyrighted material is both against the policy of this forum and is illegal. |
|
Back to top |
|
|
|