Nick Cooley
22nd June 2010, 06:00
Hi all,
Having my first go at using AFS in the transport module. We have a customised session that is based on trtoc1184s000. An option is to zoom to maintain other lines session trtoc0560s000. A display session that lists the other line types, of which we only have invoice lines available. I can get our customised session started and inserting lines, but when I call trtoc0560s000 my AFS dies with the following
Fatal error : Illegal value for size argument (0) for sym 'baanapi_input_data'
Fatal error : Can not continue in trtoc0560s000 in DLL : ottstpstandard(<28>)
My problem seems to be as soon as I activate the display session vaiables are not set correctly. The code from the session looks like this :
if background then
fast.return = false
import("from.cpro",from.cpro)
import("from.kipo",from.kipo)
import("cont.orno",cont.orno)
import("cont.refp",cont.refp)
import("cont.kipo",cont.kipo)
import("cont.cpro",cont.cpro)
I have found unless I use the zoom.option command, the variable background is not set, so my import of variables never happens. And code further on needs the first two variables to be set.
So I need to get from.kipo and from.cpro set using a put.field. However, if I use a put.field before my zoom, then I get the background variable not set problem.
Anyone successfully called this session in AFS? I seem to be going around in circles.
Or do I need to make changes to the Baan code for trtoc0560 (which I do have).
Thanks in advance.
Having my first go at using AFS in the transport module. We have a customised session that is based on trtoc1184s000. An option is to zoom to maintain other lines session trtoc0560s000. A display session that lists the other line types, of which we only have invoice lines available. I can get our customised session started and inserting lines, but when I call trtoc0560s000 my AFS dies with the following
Fatal error : Illegal value for size argument (0) for sym 'baanapi_input_data'
Fatal error : Can not continue in trtoc0560s000 in DLL : ottstpstandard(<28>)
My problem seems to be as soon as I activate the display session vaiables are not set correctly. The code from the session looks like this :
if background then
fast.return = false
import("from.cpro",from.cpro)
import("from.kipo",from.kipo)
import("cont.orno",cont.orno)
import("cont.refp",cont.refp)
import("cont.kipo",cont.kipo)
import("cont.cpro",cont.cpro)
I have found unless I use the zoom.option command, the variable background is not set, so my import of variables never happens. And code further on needs the first two variables to be set.
So I need to get from.kipo and from.cpro set using a put.field. However, if I use a put.field before my zoom, then I get the background variable not set problem.
Anyone successfully called this session in AFS? I seem to be going around in circles.
Or do I need to make changes to the Baan code for trtoc0560 (which I do have).
Thanks in advance.