jhargett
26th January 2006, 19:07
I am trying to automate a GL transaction using AFS.
I have successfully created the batch in session tfgld1101m000 and I have successfully created the document in session tfgld1115s000. However, when I create a document of type Recurring/Reversing, I need to fill out session tfgld1107s000. So, in the AFS I handle this subsession and fill out the data and insert it. But when called from AFS, the insert fails with the message "Reversal of Transactions not allowed". This data works fine when inserted manually in Baan.
Here is the AFS Log for this series of updates:
>tfgld1115s000 handle.subproc tfgld1107s000 add
>tfgld1115s000 application.option 1 of form:1
5->application.option^A1^A49
5<-application.option^A0
<tfgld1115s000
>tfgld1107s000 change.view
6->get.fields
6<-get.fields^A0^Atfgld103.year^A1^Atfgld006.ydsc^A0^Atfgld103.btno^A1^Atfgld103.ttyp^A1^Atfgld011.desc^A0^Atfgld103.trdt^A1^A
tfgld103.nyer^A1^Atfgld103.fprd^A1^Atfgld103.rprd^A1^Atfgld103.tyer^A1^Atfgld103.vprd^A1^Atfgld103.revt^A1
6->start.set
6<-start.set^A0^A1
<tfgld1107s000 1 view found
>tfgld1107s000 put.field:tfgld103.trdt 732283
>tfgld1107s000 put.field:tfgld102.nyer 2005
>tfgld1107s000 put.field:tfgld102.fper 12
>tfgld1107s000 put.field:tfgld102.tyer 2005
>tfgld1107s000 put.field:tfgld102.vprd 12
>tfgld1107s000 put.field:tfgld102.revt 2
>tfgld1107s000 insert
6->add.set+save
6<-add.set+save^A1
<tfgld1107s000 Reversal of Transactions not allowed
>tfgld1107s000 end.session
I have successfully created the batch in session tfgld1101m000 and I have successfully created the document in session tfgld1115s000. However, when I create a document of type Recurring/Reversing, I need to fill out session tfgld1107s000. So, in the AFS I handle this subsession and fill out the data and insert it. But when called from AFS, the insert fails with the message "Reversal of Transactions not allowed". This data works fine when inserted manually in Baan.
Here is the AFS Log for this series of updates:
>tfgld1115s000 handle.subproc tfgld1107s000 add
>tfgld1115s000 application.option 1 of form:1
5->application.option^A1^A49
5<-application.option^A0
<tfgld1115s000
>tfgld1107s000 change.view
6->get.fields
6<-get.fields^A0^Atfgld103.year^A1^Atfgld006.ydsc^A0^Atfgld103.btno^A1^Atfgld103.ttyp^A1^Atfgld011.desc^A0^Atfgld103.trdt^A1^A
tfgld103.nyer^A1^Atfgld103.fprd^A1^Atfgld103.rprd^A1^Atfgld103.tyer^A1^Atfgld103.vprd^A1^Atfgld103.revt^A1
6->start.set
6<-start.set^A0^A1
<tfgld1107s000 1 view found
>tfgld1107s000 put.field:tfgld103.trdt 732283
>tfgld1107s000 put.field:tfgld102.nyer 2005
>tfgld1107s000 put.field:tfgld102.fper 12
>tfgld1107s000 put.field:tfgld102.tyer 2005
>tfgld1107s000 put.field:tfgld102.vprd 12
>tfgld1107s000 put.field:tfgld102.revt 2
>tfgld1107s000 insert
6->add.set+save
6<-add.set+save^A1
<tfgld1107s000 Reversal of Transactions not allowed
>tfgld1107s000 end.session