Satish Nandeti
14th August 2002, 07:32
Hi Guys,
Thru' AFS is it possible to handle a session which gives 2 reports when we click 'Continue' button. For each report it will ask the device also.

But when I am executing this thru' AFS, how to set those 2 reports (IS IT POSSIBLE??) ? And one more thing is I want to write each report into a different file by specifying the device type 'ASCIF' and will give file name also.

I know how to handle a single report sessions in AFS, sample code is here,


stpapi.set.report("trdrp0230m000","rtrdrp022001000", "ASCIF", error.mess)
filename = bse.dir$() & "/" & "transferRPLOrders-" & dte$()
stpapi.put.field("trdrp0230m000","spool.fileout", filename)
stpapi.continue.process("trdrp0230m000",error.mess)


BUT, my question is how to set 2 reports & how to specify 2 file names which will have the 2 reports outputs...

Looking forward for your suggestions.

Thanks,
:confused:

mark_h
14th August 2002, 15:44
The one time I tried it the AFS session kept failing with an error on the device. I have heard they have since fixed the problem. I do not know this for a fact since I solved my problem using another method. The error I was getting was "null pointer on device" or something like that. If you give it a try please let us know what happens and possibly how you solved the problem.

Thanks

Mark