kathuria
28th June 2007, 15:21
Lot of people have complication in batch finalization AFS becuase it's calling three different report without session and asking for deivce but they people don't want that device pop up. I have resolved that problem and putting my code in baanboard . It will help to others. I have solved this problem in SSA ERP LN. You can also change compitble to BaaN IV by only change one statement . You have to use stpapi.continue.process rather than stpapi.form.command in BaaN IV.



domain tcmcs.str6 spool.device
stpapi.put.field("tfgld1210m000", "year.f", str$(c.year))
stpapi.put.field("tfgld1210m000", "user.f", logname$)
stpapi.put.field("tfgld1210m000", "user.t", logname$)
stpapi.put.field("tfgld1210m000", "btno.f", str$(c.btno))
stpapi.put.field("tfgld1210m000", "btno.t", str$(c.btno))
stpapi.put.field("tfgld1210m000", "tedt.f", "0")
stpapi.put.field("tfgld1210m000", "tedt.t", str$(date.num()))
stpapi.put.field("tfgld1210m000", "fprd.f", "0")
stpapi.put.field("tfgld1210m000", "fprd.t", "99")
spool.device = "ASCIF"
stpapi.put.field("tfgld1210m000", "spool.device", spool.device)
stpapi.form.command( "tfgld1210m000", 5,"exec.cont.process", .err.msg )
stpapi.end.session("tfgld1210m000")



Regards,
Sanjay Kathuria