send2srinibas
16th October 2007, 14:18
Hi,

Here i got some problem related to Backflush session.

My requirement is that i want to run Backflush Session(tisfc0220m000) in a program script in the background.For that i used AFS.

In that the problem i'm able to open that session,but im not able open the device page and i'm not able to continue from that.

If i'm using the code like follows

stpapi.put.field("tisfc0220m000","pdno.f",prod.ord1)
stpapi.put.field("tisfc0220m000","pdno.t",prod.ord2)
stpapi.put.field("tisfc0220m000","man.backfl.date","completion.date")
ret = stpapi.find("tisfc0220m000",err.msg)
if ret = 1 then
ret1 = stpapi.update("tisfc0220m000",true,err.msg)
endif
stpapi.form.command("tisfc0220m000",5,"proc.backflush",err.msg)
stpapi.end.session("tisfc0220m000")


then it is showing that the session is opening but that is not reflecting the tables related to that Backflush session(ex: whwmd215 - Inventory by Warehouse).

So,if u know the solution to my problem or if u know the AFS code related to this Please send me as early as possible.It is urgent.

mark_h
16th October 2007, 14:47
Here are a couple of links to threads that may help:
http://www.baanboard.com/baanboard/showthread.php?t=15041&highlight=tisfc0220m000

http://www.baanboard.com/baanboard/showthread.php?t=9891&highlight=tisfc0220m000

I think the second link is more relevant to your situation. I have not done one for this session, but I suspect you might need to setup the report before running the form.command statement.