newbie007
24th August 2010, 21:51
Hi,
I have created a session with stpapi functions for tfacr2240m000 and tfacp2230m000. When I fill in all the field values and execute the stpapi.cont.process, it looks like it is running but nothing happens. I get an error message " <Ctrl>[A]: Simulate Write Off Payment Differences" while execute the stpapi.cont.process. I don't have the source code to look debug.
Here is the code
stpapi.put.field("tfacr2240m000","cuno.f",tfacr900.scuno)
stpapi.put.field("tfacr2240m000","cuno.t",tfacr900.scuno)
stpapi.put.field("tfacr2240m000","ttyp.f",tfacr900.ttyp)
stpapi.put.field("tfacr2240m000","ttyp.t",tfacr900.ttyp)
stpapi.put.field("tfacr2240m000","ninv.f",str$(tfacr900.ninv))
stpapi.put.field("tfacr2240m000","ninv.t",str$(tfacr900.ninv))
stpapi.put.field("tfacr2240m000","iyer.f",str$(1999))
stpapi.put.field("tfacr2240m000","iprd.f",str$(1))
stpapi.put.field("tfacr2240m000","iyer.t",year.s)
stpapi.put.field("tfacr2240m000","iprd.t",month.s)
stpapi.put.field("tfacr2240m000","ccur.f","USD")
stpapi.put.field("tfacr2240m000","ccur.t","USD")
stpapi.put.field("tfacr2240m000","user.ccur","USD")
stpapi.put.field("tfacr2240m000","max.amount",str$(999999999.00))
stpapi.put.field("tfacr2240m000","max.perc",str$(100.00))
stpapi.put.field("tfacr2240m000","doc.date",str$(date.num()))
stpapi.put.field("tfacr2240m000","fin.year",year.s)
stpapi.put.field("tfacr2240m000","fin.prod",month.s)
stpapi.put.field("tfacr2240m000","vat.year",year.s)
stpapi.put.field("tfacr2240m000","vat.prod",month.s)
stpapi.put.field("tfacr2240m000","rep.year",str$(0))
stpapi.put.field("tfacr2240m000","rep.prod",str$(0))
stpapi.put.field("tfacr2240m000","tfacr000.pdif",tfacr000.pdif)
stpapi.put.field("tfacr2240m000","tfgld003.psep","/")
stpapi.put.field("tfacr2240m000","tfacr200.cuno",tfacr900.scuno)
stpapi.put.field("tfacr2240m000","documnet",str$(document))
stpapi.put.field("tfacr2240m000","print.details",str$(etol(tcyesno.no)))
stpapi.put.field("tfacr2240m000","sim.pay.difference",str$(0))
|stpapi.set.report(tfacr2240m000","rtfacr2240110002",device.f,error.msg)
stpapi.continue.process("tfacr2240m000",error.msg)
stpapi.get.mess.code("tfacr2240m000", error.msg)
if (strip$(error.msg) <> "" and strip$(error.msg) <> "Process is gone") then
message("Write of ACR Payment Process = %s",error.msg) endif
stpapi.end.session("tfacr2240m000")
here is the AFS log;
LOGGING STARTED
08-24-2010
8->get.fields
8<-get.fields 0 cuno.f 1 user.ccur 0 cuno.t 1 ttyp.f 1 ttyp.t 1 ninv.f 1 ninv.t 1 iyer.f 1 tfgld003.psep 0 iprd.f 1 iyer.t 1 tfgld003.psep 0 iprd.t 1 ccur.f 1 ccur.t 1 max.amount 1 max.perc 1 doc.date 1 fin.year 1 tfgld003.psep 0 fin.prod 1 rep.year 1 tfgld003.psep 0 rep.prod 1 vat.year 1 tfgld003.psep 0 vat.prod 1 document 1 print.details 1 tfacr000.pdif 0 batch 0 tfacr200.cuno 0
>tfacr2240m000 put.field:cuno.f LBS101
>tfacr2240m000 put.field:cuno.t LBS101
>tfacr2240m000 put.field:ttyp.f SIV
>tfacr2240m000 put.field:ttyp.t SIV
>tfacr2240m000 put.field:ninv.f 20027683
>tfacr2240m000 put.field:ninv.t 20027683
>tfacr2240m000 put.field:iyer.f 1999
>tfacr2240m000 put.field:iprd.f 1
>tfacr2240m000 put.field:iyer.t 2010
>tfacr2240m000 put.field:iprd.t 08
>tfacr2240m000 put.field:ccur.f USD
>tfacr2240m000 put.field:ccur.t USD
>tfacr2240m000 put.field:user.ccur USD
>tfacr2240m000 put.field:max.amount 999999999
>tfacr2240m000 put.field:max.perc 100
>tfacr2240m000 put.field:doc.date 734008
>tfacr2240m000 put.field:fin.year 2010
>tfacr2240m000 put.field:fin.prod 08
>tfacr2240m000 put.field:vat.year 2010
>tfacr2240m000 put.field:vat.prod 08
>tfacr2240m000 put.field:rep.year 0
>tfacr2240m000 put.field:rep.prod 0
>tfacr2240m000 put.field:tfacr000.pdif ARP
>tfacr2240m000 put.field:documnet 20
>tfacr2240m000 put.field:print.details 2
>tfacr2240m000 put.field:sim.pay.difference 0
>tfacr2240m000 continue.process
8->cont.process
8<-cont.process 1
<tfacr2240m000 <Ctrl>[A]: Simulate Write Off Payment Differences
>tfacr2240m000 get.mess.code
<tfacr2240m000 tfacrs0176
>tfacr2240m000 end.session
8->end.program
9<-exit.child 0
8<-end.program 1
8<-exit.child
>tfacr2240m000 end.session
12->end.program
13<-exit.child 0
12<-end.program 1
12<-exit.child
Can anyone suggest what might be the issue ?. Any suggestion are appreciated.
Thanks
Newbie07
I have created a session with stpapi functions for tfacr2240m000 and tfacp2230m000. When I fill in all the field values and execute the stpapi.cont.process, it looks like it is running but nothing happens. I get an error message " <Ctrl>[A]: Simulate Write Off Payment Differences" while execute the stpapi.cont.process. I don't have the source code to look debug.
Here is the code
stpapi.put.field("tfacr2240m000","cuno.f",tfacr900.scuno)
stpapi.put.field("tfacr2240m000","cuno.t",tfacr900.scuno)
stpapi.put.field("tfacr2240m000","ttyp.f",tfacr900.ttyp)
stpapi.put.field("tfacr2240m000","ttyp.t",tfacr900.ttyp)
stpapi.put.field("tfacr2240m000","ninv.f",str$(tfacr900.ninv))
stpapi.put.field("tfacr2240m000","ninv.t",str$(tfacr900.ninv))
stpapi.put.field("tfacr2240m000","iyer.f",str$(1999))
stpapi.put.field("tfacr2240m000","iprd.f",str$(1))
stpapi.put.field("tfacr2240m000","iyer.t",year.s)
stpapi.put.field("tfacr2240m000","iprd.t",month.s)
stpapi.put.field("tfacr2240m000","ccur.f","USD")
stpapi.put.field("tfacr2240m000","ccur.t","USD")
stpapi.put.field("tfacr2240m000","user.ccur","USD")
stpapi.put.field("tfacr2240m000","max.amount",str$(999999999.00))
stpapi.put.field("tfacr2240m000","max.perc",str$(100.00))
stpapi.put.field("tfacr2240m000","doc.date",str$(date.num()))
stpapi.put.field("tfacr2240m000","fin.year",year.s)
stpapi.put.field("tfacr2240m000","fin.prod",month.s)
stpapi.put.field("tfacr2240m000","vat.year",year.s)
stpapi.put.field("tfacr2240m000","vat.prod",month.s)
stpapi.put.field("tfacr2240m000","rep.year",str$(0))
stpapi.put.field("tfacr2240m000","rep.prod",str$(0))
stpapi.put.field("tfacr2240m000","tfacr000.pdif",tfacr000.pdif)
stpapi.put.field("tfacr2240m000","tfgld003.psep","/")
stpapi.put.field("tfacr2240m000","tfacr200.cuno",tfacr900.scuno)
stpapi.put.field("tfacr2240m000","documnet",str$(document))
stpapi.put.field("tfacr2240m000","print.details",str$(etol(tcyesno.no)))
stpapi.put.field("tfacr2240m000","sim.pay.difference",str$(0))
|stpapi.set.report(tfacr2240m000","rtfacr2240110002",device.f,error.msg)
stpapi.continue.process("tfacr2240m000",error.msg)
stpapi.get.mess.code("tfacr2240m000", error.msg)
if (strip$(error.msg) <> "" and strip$(error.msg) <> "Process is gone") then
message("Write of ACR Payment Process = %s",error.msg) endif
stpapi.end.session("tfacr2240m000")
here is the AFS log;
LOGGING STARTED
08-24-2010
8->get.fields
8<-get.fields 0 cuno.f 1 user.ccur 0 cuno.t 1 ttyp.f 1 ttyp.t 1 ninv.f 1 ninv.t 1 iyer.f 1 tfgld003.psep 0 iprd.f 1 iyer.t 1 tfgld003.psep 0 iprd.t 1 ccur.f 1 ccur.t 1 max.amount 1 max.perc 1 doc.date 1 fin.year 1 tfgld003.psep 0 fin.prod 1 rep.year 1 tfgld003.psep 0 rep.prod 1 vat.year 1 tfgld003.psep 0 vat.prod 1 document 1 print.details 1 tfacr000.pdif 0 batch 0 tfacr200.cuno 0
>tfacr2240m000 put.field:cuno.f LBS101
>tfacr2240m000 put.field:cuno.t LBS101
>tfacr2240m000 put.field:ttyp.f SIV
>tfacr2240m000 put.field:ttyp.t SIV
>tfacr2240m000 put.field:ninv.f 20027683
>tfacr2240m000 put.field:ninv.t 20027683
>tfacr2240m000 put.field:iyer.f 1999
>tfacr2240m000 put.field:iprd.f 1
>tfacr2240m000 put.field:iyer.t 2010
>tfacr2240m000 put.field:iprd.t 08
>tfacr2240m000 put.field:ccur.f USD
>tfacr2240m000 put.field:ccur.t USD
>tfacr2240m000 put.field:user.ccur USD
>tfacr2240m000 put.field:max.amount 999999999
>tfacr2240m000 put.field:max.perc 100
>tfacr2240m000 put.field:doc.date 734008
>tfacr2240m000 put.field:fin.year 2010
>tfacr2240m000 put.field:fin.prod 08
>tfacr2240m000 put.field:vat.year 2010
>tfacr2240m000 put.field:vat.prod 08
>tfacr2240m000 put.field:rep.year 0
>tfacr2240m000 put.field:rep.prod 0
>tfacr2240m000 put.field:tfacr000.pdif ARP
>tfacr2240m000 put.field:documnet 20
>tfacr2240m000 put.field:print.details 2
>tfacr2240m000 put.field:sim.pay.difference 0
>tfacr2240m000 continue.process
8->cont.process
8<-cont.process 1
<tfacr2240m000 <Ctrl>[A]: Simulate Write Off Payment Differences
>tfacr2240m000 get.mess.code
<tfacr2240m000 tfacrs0176
>tfacr2240m000 end.session
8->end.program
9<-exit.child 0
8<-end.program 1
8<-exit.child
>tfacr2240m000 end.session
12->end.program
13<-exit.child 0
12<-end.program 1
12<-exit.child
Can anyone suggest what might be the issue ?. Any suggestion are appreciated.
Thanks
Newbie07