klixy23
28th May 2002, 10:23
I develope a session, from wich the session tdpur0510s000 is called by an user button. The session starts and the form is visible for a very short time, than the session is closed. The session starts normally from the menubrowser and from the session tdpur4105s000 via the zoom menu. What can I do that the session starts normally? Is there some test in the before.program section or do I have to declare or initialize some special variables?
There are no error messages or logs.
Here is my code:
choice.user.6: | Preise und Rabatte simulieren
on.choice:
ret_code = zoom.to$("tdpur0510s000", Z.SESSION, "timrp1521m000", "", 0)
NPRao
28th May 2002, 11:58
1. Can you verify if the check box - main session is checked on or not ?
2. Is there any BW error ?
3. Try to put that script in debugger and check up...
klixy23
28th May 2002, 12:07
Thanks for reply.
1. I tested with tdpur0510m000 too and have the same effect.
2. No errors.
3. I havn't the source for the script tdpur0510.
isimeon
28th May 2002, 13:44
Sessions tdpur0510m000 and tdpur0510s000 can be zoomed only from tdpur4102s000 and tdpur4105s000. The program script check variable background (1 if session is zoomed) and search purchase order line where zoom process is started. If cannot find it, the session is aborted. Try to use wait.and.activate function. But I think the result will be the same. Cusomization of tdpur0510 is needed.
Regards
klixy23
29th May 2002, 09:28
Thanks for reply.
I tried wait.and.activate and the result is the same.
I will try the following:
zoom.to$("tdpur0510s000", Z.SESSION, "tdpur4105s000", "", 0)
The same result.
zoom.to$("tdpur0510s000", Z.SESSION, "tdpur4102s000", "", 0)
The same result.
Is it possible to simulate the order lines (or the variables) to give the correct input to the session tdpur0510s000 so that the check don't fail?
isimeon
29th May 2002, 10:08
Try this in your script:
table tdpur041
....
tdpur041.orno=<existing purchase order>
tdpur041.pono=<exisiting purchase order line>
zoom.to$(....)
klixy23
29th May 2002, 11:17
tdpur041.orno=<existing purchase order>
tdpur041.pono=<exisiting purchase order line>
zoom.to$(....)
That works fine! Thank You!