reyhannuray
15th September 2009, 15:46
Hi,
In Baan IVc4 ,mcr environment.
I am calling session tfacp1110s00 using AFS, like below;
stpapi.put.field("tfacp1110s000","tfacp200.suno",in.suno) stpapi.put.field("tfacp1110s000","tfacp200.ccur","YTL")
stpapi.put.field("tfacp1110s000","tfacp200.docd",str$(tfacp921.dcdt))
Program is running properly but
when tccom020.ccur (supplier's) is not equal to "YTL" , program is getting
tccom020.ccur value.
I want to send the all amounts in YTL for all suppliers.
Do you have any experince about this
Thanks in advance.
mark_h
19th September 2009, 15:06
Are you saying if you put "YTL", the program will still use whatever is in tccom020.ccur? This could be something in the session code - do you have source code?
reyhannuray
24th September 2009, 11:34
Firstly thanks your reply.
Yes ,I am putting "YTL" but program is using the data in tccom020.ccur.
tfacp200.ccur 's default value is tccom020.ccur in the form tfacp1110s0001
We have source code and I investigated the code and I saw these statements at he below.
I couldn't understand these statements , i think I am missing some functions or libraries
another else #pragma used dll ottstpapihand.
Thanks in advance .
if api.mode and boi.call = "tfboidll340004.Create" then |#163621.sn
attr.input = true
endif ****copy from source code[/COLOR]field.tfacp200.ccur:
before.input:
if not enter.ccur then
if copy.received.invoice then
tfacp200.ccur = tfacp100.ccur
else
tfacp200.ccur = tccom020.ccur
endif
if not isspace(tfacp200.ccur) then
attr.input = false
endif
enter.ccur = true
endif
if update.status = modify.set and tfacp200.stap >
tfacp.stap.transactions then
attr.input = false
endif
if not isspace(tfgld011.ccur) then
tfacp200.ccur = tfgld011.ccur
read.rate() |#91916-1.n
attr.input = false
endif
if api.mode and boi.call = "tfboidll340004.Create" then |#163621.sn
attr.input = true
endif
mark_h
24th September 2009, 15:04
Well api.mode is always true when a session is run in the background using the stpapi commands. If I recall correctly boi.call is a parameter that baan started using when they began integrating the various pieces of software they own - the one I recall was the warehouse management software. You might try setting boi.call = "tfboidll340004.Create" before starting the sessions. The only problem with that is - What else might this do? Without knowing how or where this is used in the code then it might cause some other issues. You can search on boi.call in this forum to see other places it has cropped up.
reyhannuray
25th September 2009, 07:57
Thanks very much.
Best regards.