patwanirav
14th July 2011, 07:31
Hi,
I am writting the afs code for the ticpr2210m000 as below.
ret = stpapi.find("ticpr2210m000", error.msg)
if ret = 1 then
stpapi.put.field("ticpr2210m000","item.f",str$(item.f))
stpapi.put.field("ticpr2210m000","item.t",str$(item.f))
stpapi.put.field("ticpr2210m000","cntr.f"," ")
stpapi.put.field("ticpr2210m000","cntr.t","ZZZ")
stpapi.put.field("ticpr2210m000","citg.f"," ")
stpapi.put.field("ticpr2210m000","citg.t","ZZZZZZ")
stpapi.put.field("ticpr2210m000","calc.cd","ACT")
stpapi.enum.answer("ticpr2210m000", "calc.meth", tcccmt.top.down)
stpapi.put.field("ticpr2210m000","calc.date",str$(date.num()))
stpapi.enum.answer("ticpr2210m000", "actualize.copr", tcyesno.yes)
stpapi.set.report("ticpr2210m000", "rticpr221001000", "D", error.msg)
if isspace(error.msg) then
stpapi.continue.process("ticpr2210m000", error.msg)
endif
stpapi.end.session("ticpr2210m000")
endif
The above code run the session ticpr2210m000 and print the report successfully, but it doesn't print the report of the session ticpr2220s000 which open from the main session (ticpr2210m000) automatically through afs.
pls help me...
I am writting the afs code for the ticpr2210m000 as below.
ret = stpapi.find("ticpr2210m000", error.msg)
if ret = 1 then
stpapi.put.field("ticpr2210m000","item.f",str$(item.f))
stpapi.put.field("ticpr2210m000","item.t",str$(item.f))
stpapi.put.field("ticpr2210m000","cntr.f"," ")
stpapi.put.field("ticpr2210m000","cntr.t","ZZZ")
stpapi.put.field("ticpr2210m000","citg.f"," ")
stpapi.put.field("ticpr2210m000","citg.t","ZZZZZZ")
stpapi.put.field("ticpr2210m000","calc.cd","ACT")
stpapi.enum.answer("ticpr2210m000", "calc.meth", tcccmt.top.down)
stpapi.put.field("ticpr2210m000","calc.date",str$(date.num()))
stpapi.enum.answer("ticpr2210m000", "actualize.copr", tcyesno.yes)
stpapi.set.report("ticpr2210m000", "rticpr221001000", "D", error.msg)
if isspace(error.msg) then
stpapi.continue.process("ticpr2210m000", error.msg)
endif
stpapi.end.session("ticpr2210m000")
endif
The above code run the session ticpr2210m000 and print the report successfully, but it doesn't print the report of the session ticpr2220s000 which open from the main session (ticpr2210m000) automatically through afs.
pls help me...