kiranu
23rd August 2005, 09:52
Hi,
i have a problem with afs when i want to set a report.
i am working on a session and i want to invoke session tipcf5280m000.
In this session, my script put values to the fields and then continue.
After that, in tipcf5280m000 session three question screen pop up. To answer them, i used stpapi.enum.answer() function. And then i used set.report() function and then i used continue.process() function.
But when continue.process command run, it gives a error and says "Printing canceled". I could not understand why. The spool screen should close.but not sure.
This is code:
stpapi.handle.subproc("tdsls1441m00u","tipcf5280m000","add")
stpapi.zoom.option("tdsls1441m00u",1,"tipcf5280m000",err1)
stpapi.put.field("tipcf5280m000","proj.code",str$(tdsls041.orno))
stpapi.put.field("tipcf5280m000","pvar.code","21")
stpapi.put.field("tipcf5280m000","item.code",str$(tdsls041.item))
stpapi.enum.answer("tipcf5280m000","tipcf52805",tcyesno.no)
stpapi.enum.answer("tipcf5280m000","tipcf51208",tcyesno.no)
stpapi.enum.answer("tipcf5280m000","tipcf52806",tcyesno.yes)
stpapi.set.report("tipcf5280m000","rtipcf528001000","D",err1)
stpapi.continue.process("tipcf5280m000",err1)
Thanks for your help.
i have a problem with afs when i want to set a report.
i am working on a session and i want to invoke session tipcf5280m000.
In this session, my script put values to the fields and then continue.
After that, in tipcf5280m000 session three question screen pop up. To answer them, i used stpapi.enum.answer() function. And then i used set.report() function and then i used continue.process() function.
But when continue.process command run, it gives a error and says "Printing canceled". I could not understand why. The spool screen should close.but not sure.
This is code:
stpapi.handle.subproc("tdsls1441m00u","tipcf5280m000","add")
stpapi.zoom.option("tdsls1441m00u",1,"tipcf5280m000",err1)
stpapi.put.field("tipcf5280m000","proj.code",str$(tdsls041.orno))
stpapi.put.field("tipcf5280m000","pvar.code","21")
stpapi.put.field("tipcf5280m000","item.code",str$(tdsls041.item))
stpapi.enum.answer("tipcf5280m000","tipcf52805",tcyesno.no)
stpapi.enum.answer("tipcf5280m000","tipcf51208",tcyesno.no)
stpapi.enum.answer("tipcf5280m000","tipcf52806",tcyesno.yes)
stpapi.set.report("tipcf5280m000","rtipcf528001000","D",err1)
stpapi.continue.process("tipcf5280m000",err1)
Thanks for your help.