Kingsto88
22nd March 2005, 07:35
Hi everyone out there,

Can someone try this code on their baan v system.

I am getting the "command disable" error but don't know how to solve it.

stpapi.put.field("whina1210m000","cwar.f","")
stpapi.put.field("whina1210m000","cwar.t","ZZZZZZ")
stpapi.put.field("whina1210m000","item.f",item.f)
stpapi.put.field("whina1210m000","item.t",item.t)
stpapi.put.field("whina1210m000","cifg.f","")
stpapi.put.field("whina1210m000","citg.t","ZZZZZZ")
stpapi.put.field("whina1210m000","stoc.date",sprintf$("%D002 23:59",age.date))
stpapi.put.field("whina1210m000","suppr.zero.stoc","2")
stpapi.put.field("whina1210m000","spec.by.item","1")
stpapi.set.report("whina1210m000","rwhina121001100",spool.device,msg)

stpapi.continue.process("whina1210m000",msg)
|stpapi.form.command("whina1210m000",5,"exec.continue.process",msg)
stpapi.end.session("whina1210m000")


Appreciate if someone can help me solve this one.

thanks and regards,

kmcinc
24th March 2005, 20:22
What package and module is "whina"? We're running IVc4 and it's not on our system.

mark_h
24th March 2005, 20:24
It is Baan V, not 4c4. The coding looks correct and my first guess would be to update the stpapi objects and the session code. Since I am on 4c4 I can not test the code.