jhansirani
16th February 2004, 13:58
Dear Friends,
Can any body help me? In Distribution "tdpur4501m00" they called one subsession "tdpur4501s000" and in that subsession they called "tdpur440101000". then the purchase order report is coming as a display.
The same way i want to purt "tipcs2451m000 -- Customized BOM(mulitilevel)" as a display. Otherwise i need for some print sessions should have default device "D" only . should not change by any user. How to do this.

-- Jhansi

mark_h
16th February 2004, 15:50
Do you have the source for this session? If so then just set the spool.device to d and use brp.open with mode 0.

Mark

lakoon
16th February 2004, 15:54
hello jhansirani

you have to open the report by yourself. Create a report an connect it to the session. enter the following code in the choice section.

the following code will do so:


#include "itccom0010"

choice.cont.process:
before.choice:
spool.device = "D" |maybe D66 as defined on your system
open.mode = 0

on.choice:
if open.report(1,spool.device, open.mode, language$,1)
... do your things
else
choice.again()
endif


/lakoon

jhansirani
17th February 2004, 05:53
hello lakoon

Actually, i didn't have the script of tipcs2451m000. where i have to do the code which is given by you.
i give what steps i had written.
1. Created one display session.
2. In that i added the tipcs2451m000 report to the display session.
Here it should open as display that is my aim.
The code given by you where i have to write. In tipcs2451m000 session am i right?. but i didn't have the script.

thankyou -- Jhansi

lakoon
17th February 2004, 08:59
hello jhansirani

you need to enter the code in the script. if you do not have the standard script, you can generate your own display session. the code can then be entered in the script.
of course, you have to programm all the stuff, which is also in the script tipcs2451.
I think the best way would be to get the source.....

/lakoon

jhansirani
20th February 2004, 14:21
i doesn't have the tipcs2451 script then what to do?
any body help me?

mark_h
20th February 2004, 16:41
One way to do this is to create a news session. Use the form from tipcs2451m000. In the script for this new session what you do is call the tipcs2451m000 using the stpapi commands as described in the AFS forum. And in the new session the user will not get to select a print device. You can hard code it to always send the report to the display.


Mark

jhansirani
23rd February 2004, 11:07
you are specified, stpapi command where they will be available. and you given AFS forum how to login to that forum.

thankyou.

mark_h
23rd February 2004, 12:17
Here is a link (http://www.baanboard.com/baanboard/forumdisplay.php?s=&forumid=59) to the forum. It is part of baanboard itself, so you should not have to login again.

Mark