Nicole
30th May 2008, 09:33
Hi all,
I have the following problem with AFS.
I have created a session which creates and update items in tiitm001. Afterwards I want to execute session ticpr2210m000. All actions will be done with AFS.
I execute the session ticpr2210m000 as follows:
stpapi.put.field("ticpr2210m000", "item.f", item)
stpapi.put.field("ticpr2210m000", "item.t", item)
stpapi.put.field("ticpr2210m000", "cntr.f", " ")
stpapi.put.field("ticpr2210m000", "cntr.t", " ")
stpapi.put.field("ticpr2210m000", "citg.f", " ")
stpapi.put.field("ticpr2210m000", "citg.t", " 630")
stpapi.put.field("ticpr2210m000", "calc.cd", " 1")
stpapi.put.field("ticpr2210m000", "calc.meth",
str$(etol(tcccmt.top.down)))
stpapi.put.field("ticpr2210m000", "calc.date", str$(date.num()))
stpapi.put.field("ticpr2210m000", "actualize.copr",
str$(etol(tcyesno.yes)))
stpapi.set.report("ticpr2210m000", "rticpr221001000", "D1", msg.calc)
stpapi.continue.process("ticpr2210m000", calc.err)
stpapi.get.mess.code("ticpr2210m000", msg1)
stpapi.end.session("ticpr2210m000")
The problem is that no cost price will be calculated. When I start the session ticpr2210m000 with the same ranges manually --> cost price will be calculated.
After a lot of debugging I found out that following happens in the script ticpr2220 (which will be started from script ticpr2210):
By starting session ticpr2210m000 with AFS the script ignores section "choice.print.data/on.choice" in the script ticpr2220 and executes directly section "choice.print.data/AFTER.choice".
Can somebody explain why this happens and how I can solve it?
Thanks in advance.
Nicole
I have the following problem with AFS.
I have created a session which creates and update items in tiitm001. Afterwards I want to execute session ticpr2210m000. All actions will be done with AFS.
I execute the session ticpr2210m000 as follows:
stpapi.put.field("ticpr2210m000", "item.f", item)
stpapi.put.field("ticpr2210m000", "item.t", item)
stpapi.put.field("ticpr2210m000", "cntr.f", " ")
stpapi.put.field("ticpr2210m000", "cntr.t", " ")
stpapi.put.field("ticpr2210m000", "citg.f", " ")
stpapi.put.field("ticpr2210m000", "citg.t", " 630")
stpapi.put.field("ticpr2210m000", "calc.cd", " 1")
stpapi.put.field("ticpr2210m000", "calc.meth",
str$(etol(tcccmt.top.down)))
stpapi.put.field("ticpr2210m000", "calc.date", str$(date.num()))
stpapi.put.field("ticpr2210m000", "actualize.copr",
str$(etol(tcyesno.yes)))
stpapi.set.report("ticpr2210m000", "rticpr221001000", "D1", msg.calc)
stpapi.continue.process("ticpr2210m000", calc.err)
stpapi.get.mess.code("ticpr2210m000", msg1)
stpapi.end.session("ticpr2210m000")
The problem is that no cost price will be calculated. When I start the session ticpr2210m000 with the same ranges manually --> cost price will be calculated.
After a lot of debugging I found out that following happens in the script ticpr2220 (which will be started from script ticpr2210):
By starting session ticpr2210m000 with AFS the script ignores section "choice.print.data/on.choice" in the script ticpr2220 and executes directly section "choice.print.data/AFTER.choice".
Can somebody explain why this happens and how I can solve it?
Thanks in advance.
Nicole