avishay
15th March 2005, 16:13
Hi
I create AFS for the “Purchase Invoice” form (tfacp1110s000)
I succeed to create new Header – and this look to work fine.
Then (and before closing the session) …..
I try to simulate the “Lines” button pushing by:
.
.
.
f1120s000.put.Debit_Credit( ltoe(invoice.dbcr) )
.
.
f1110s000.handle.sub.process( "exec.cont.process", "add" )
f1120s000.insert( 1, error.string )

I put all the value and I get error: “Batch Number not allowed”
It’s seem that the child form Purchase Invoice Transactions (tfacp1120s000)
Don’t have the value from the Parent!!!!!!

Any suggestion

Avishay Rotshtain

=======================
My Email is : avirot@gmail.com
Phone Number : 0 (972) 4-83106324
Icq Number : 13-753-183
MSN Messenger : hi2you@hotmail.com
Yahoo Messenger : avishayrotshtain@yahoo.com
AOL Screen Name : avishayrot
Skype : avishayrot
=======================

mark_h
15th March 2005, 16:21
Did a quick search of the forum(looking for tfacp1110s000) and found this post (http://www.baanboard.com/baanboard/showthread.php?t=14084&highlight=tfacp1110s000). Check out the post by dstroud and see if it helps.

Mark

avishay
17th March 2005, 11:20
the thred didnt help

when i open the sub session tfacp1120s000 by the follow code it bring error - Command disabled
the code:
.....
stpapi.handle.subproc("tfacp1110s000","tfacp1120s000","add")
stpapi.continue.process("tfacp1110s000", gapi.error.code)
....

the error log show:


17-03-2005
259->get.fields
259<-get.fields0tfacp200.ttyp0tfacp200.ninv1tfacp200.appr1
tfacp200.docd1tfacp200.orno1tfacp200.shpm1tfacp200.ifbp
1tfacp200.dued1tfacp200.isup1tfacp200.refr1tfacp200.lvat
1tfacp200.vatc1tfacp200.cvat1tfacp200.vaty1tfacp200.vatp
1tfacp200.ccur1tfacp200.rade1form.rate1screen.amnt
1screen.vata1tfacp200.cpay1tfacp200.ccrs1tfacp200.paym
1tfacp200.reas1tfacp200.ptbp1tfacp200.bank1
tfacp200.otbp1tfacp200.subc1tfacp200.otyp1tfacp200.oinv
1tfacp200.bloc1tfacp200.bref1tfacp200.bdat1

>tfacp1110s000 put.field:tfacp200.ninv 0
>tfacp1110s000 put.field:tfacp200.appr 1
>tfacp1110s000 put.field:tfacp200.docd 731718
>tfacp1110s000 put.field:tfacp200.orno
>tfacp1110s000 put.field:tfacp200.dued 731792
>tfacp1110s000 put.field:tfacp200.shpm
>tfacp1110s000 put.field:tfacp200.ifbp 20300728
>tfacp1110s000 put.field:tfacp200.isup 999999
>tfacp1110s000 put.field:tfacp200.refr 999999/9845/0441473485
>tfacp1110s000 put.field:tfacp200.lvat 2
>tfacp1110s000 put.field:tfacp200.ccur NIS
>tfacp1110s000 put.field:tfacp200.vatc
>tfacp1110s000 put.field:tfacp200.cvat
>tfacp1110s000 put.field:tfacp200.rade 6
>tfacp1110s000 put.field:tfacp200.vaty 2006
>tfacp1110s000 put.field:tfacp200.vatp 3
>tfacp1110s000 put.field:screen.amnt 2667
>tfacp1110s000 insert
259->add.set
259<-add.set01
<tfacp1110s000
>tfacp1110s000 save
259->update.db
259<-update.db0
<tfacp1110s000
>tfacp1110s000 get.field:tfacp200.ninv
<tfacp1110s000 get.field:tfacp200.ninv=10469
>tfacp1110s000 handle.subproc tfacp1120s000 add
>tfacp1110s000 continue.process
259->cont.process
259<-cont.process1
<tfacp1110s000 Command disabled
260->get.fields
260<-get.fields0tfgld102.cono0tfgld102.year0tfgld102.btno0
tfgld102.ttyp0tfgld102.docn0tfgld102.lino1tfgld102.srno0
tfgld102.serl0tfgld102.tcom1tfgld102.leac1tfgld102.dim11
tfgld102.dim21tfgld102.dim31tfgld102.dim41tfgld102.dim51
tfgld102.ccty1tfgld102.cvat1amount1tfgld102.dbcr1
tfgld102.vamt1tfgld102.refr1tfgld102.qty11tfgld102.qty2
1tfgld102.fyer1tfgld102.fprd1tfgld102.ryer1tfgld102.rprd1
>tfacp1120s000 put.field:tfgld102.leac 40213143
>tfacp1120s000 put.field:tfgld102.dim1 5520
>tfacp1120s000 put.field:tfgld102.dim2
>tfacp1120s000 put.field:tfgld102.dim3 RTHC05
>tfacp1120s000 put.field:tfgld102.ccty ISR
>tfacp1120s000 put.field:tfgld102.cvat
>tfacp1120s000 put.field:amount 2667
>tfacp1120s000 put.field:tfgld102.dbcr 1
>tfacp1120s000 put.field:tfgld102.vamt 0
>tfacp1120s000 put.field:tfgld102.refr /9845
>tfacp1120s000 put.field:tfgld102.fyer 2006
>tfacp1120s000 put.field:tfgld102.fprd 3
>tfacp1120s000 insert
260->add.set+save
260<-add.set+save1
<tfacp1120s000 Batch Number not allowed

mark_h
17th March 2005, 14:35
I would try to get an updated object for this session. The continue command should work.

Mark