pruthirajpahi
12th September 2007, 11:55
Hi All,

I M faceing problem in case when create a AFS of the sessoin tfcmg1240m000
In between the process , session tfcmg1260s000 is opening.After that , code is this
stpapi.continue.process("tfcmg1260s000", error)

stpapi.set.report("tfcmg1260s000", "rtfcmg126032000", spool.device, error.msg)
if isspace(error.msg) then
stpapi.print.report("tfcmg1260s000", error.msg)
endif

stpapi.set.report("tfcmg1260s000", "rtfcmg126011000", spool.device, error.msg)
if isspace(error.msg) then
stpapi.print.report("tfcmg1260s000", error.msg)
endif

Here two reports are call from one session.
It gives error in case of set report rtfcmg126032000 .
how can i solve this problem.


Regards
Pruthiraj Pahi

mark_h
15th September 2007, 21:46
I do not know anything about tfcmg1260s000, but for outbound what we do is suppress the report for the generate. Then run two different reports for generate outbound. Is this possible? Can you get the reports from another session?

ulrich.fuchs
26th September 2007, 00:39
You cannot solve it - sessions printing more than one report are not supported by AFS. If you cannot switch off the second report by "unchecking" fields on the form AFS just won't do.

Uli

_Ralph_
8th October 2007, 14:59
Here is one example:


stpapi.set.report("tctrfo401m000","rtctrfo4011100o", device.o, error.o)
if isspace(erro.o) then
stpapi.print.report("tctrfo401m000",erro.o)

endif


hope it helps!