patwanirav
14th July 2011, 08:30
hallo experts,

I called the session ticpr2210m000 by AFS and had problems with the session
ticpr2220s000, called by "zoom.to" in the code.
In the session ticpr2110m000 the zoom works correct, but the choice "on.print" in the session ticpr2220s000 is not called, only the choice "after.print" was called.

becoz of this the report of the session ticpr2220s000 is not executed, and cost price of item and date is not updated.

Id would be kind of you to inform me if a solution exists.

mark_h
14th July 2011, 16:21
Can you use ticpr2220m000 instead? The problem I have always found is that if you run a session which generates multiple reports never works. If you cannot do this or something like below, then I can only recommend contacting infor. Some sessions/process were never meant to be run using this code.

Sounds like you have source code. Something I have done before is in my API code - I zoom to the session myself. So instead of ticpr2210m000 zooming to ticpr2220s000, you could set up what is needed in your api code and then zoom to ticpr2220s000 and let it run normally. I know when I generate planned orders I do that using wait.and.activate.

today = date.num()
today = today - 1100
initialize.first.prp.order.numbers()

stpapi.put.field("tpptc1230m000","cprj.f",cprj.f)
stpapi.put.field("tpptc1230m000","cprj.t",cprj.t)
spool.device = "D66" | Append to file
stpapi.set.report("tpptc1230m000","rtpptc123001000",spool.device,errmsg)
stpapi.continue.process("tpptc1230m000", errmsg)
if(strip$(errmsg)<>"") then
message(errmsg)
endif
stpapi.end.session("tpptc1230m000")
export("release.po",release.po)
export("cprj.f",cprj.f)
export("cprj.t",cprj.t)
export("remove.fpo",remove.fpo)
rc = wait.and.activate("tppss6200m000")

patwanirav
15th July 2011, 06:27
thanks mark_h for giving a wonderful suggestion.

Actually i am unaware of the main session of update cost price(ticpr2220m000).
now i am using that session and my problem is solved.

thanks a lot....

baanspider
18th November 2015, 05:52
Hi everyone

Has anyone got ticpr2210m000 to work through AFS?

ticpr2220m000 works through AFS but it does not update for all items.
Items that has economic stock present will not update the cost.


thanks n regards

benito
18th November 2015, 16:46
looks like they did. here is one link (http://www.baanboard.com/baanboard/showthread.php?t=23612&highlight=ticpr2210m000+afs).

also, try to do a dal update on the record if you don't get a good error message using AFS.

<snipped>
Has anyone got ticpr2210m000 to work through AFS?
<snipped>

shashig
19th November 2015, 04:26
Hello BaanSpider,

I assume You are on LN although same is also applicable to BaaN IV

This may happen in case the last calculate date in your item record does not match with history records, etc like if you have uploaded item with exchange, etc.

You can do below and try:

Make the 'Last Calculate Date' field ticpr007.ltcp of all such Items to Zero and then run the session. It will update. (On BaaN IV the field is tiitm001.ltcp).

Regards,
Shashikant Gupta

baanspider
15th December 2015, 19:05
Hi Mark or any one,

This session ticpr2220m000 will only work if the item has no economic stock.
If the item has economic stock, it will not update cost.
Please advise

thanks n regards

mark_h
15th December 2015, 21:47
I am not familiar enough with the cost price sessions to know a work around. I did not see anything in the help that would lead me to believe the update cost prices would not work. At least on our 4c4 system - LN is probably very different.