pramod
24th September 2008, 19:06
I have a maintain session on main table tipcf530 and start the session from Sales Order Lines with Product Variant code from Sales Order Line. Below is the code I wrote to import the values. This works fine when the script is compiled in Debug. Regular compilation does not show the desired record and the session starts with the first record in tipcf530. Anyone experienced like this? Any clue how can it be solved?
zoom.from.all:
on.entry:
import("tdsls401.orno",save.orno)
import("tdsls401.pono",save.pono)
import("tdsls401.cpva",tipcf530.cpva)
save.cpva = tipcf530.cpva
Thanks in advance.
Hitesh Shah
24th September 2008, 19:53
Though u may have checked probably, something u can check like
1. put a message in zoom.from.all section to c if that section is really executed . Sometimes when zoom names are absent zoom.from on.entry / exit sections are not executed.
2. Check the return values of import to c if its successful . If the parent does not have these symbols it returns error value .
pramod
24th September 2008, 20:30
Thanks Hitesh. I was looking for something from somebody. I tried your suggestions.
Message shows return value 1 and return cpva correctly if compiled in debug.
In normal compilation the return value = 1 and cpva=0. Also, I'm trying to import the table field which is always extern.
I noticed that the tdsls401.cpva has domain tcobid and tipcf530.cpva has domain tccpva. So to avoid the confusion I'm doing like this:
imp.ret = get.var(parent,"tdsls401.cpva",imp.cpva)
Still the same problem.
Hitesh Shah
25th September 2008, 18:51
Have never seen such a problem . This happens only if the parent child rellations among programs change in both runs (which is highly unlikely ) .
Also try declariing tdsls401 in ur own program also and use the same in import .
_Ralph_
25th September 2008, 23:23
You can try something like
zoom.from.all:
on.entry:
suspend(2000)
import(...
if works well it's just reduce the time..
sometimes the application gets lost it happened to me twice... one of the solutions(the other it's as such ugly as this one) is this one....
hope it helps!:D
pramod
26th September 2008, 16:29
It worked. Thanks Ralph.