rohan_rege
10th October 2002, 00:36
hi ,
i am reading a ascii record and then zooming to tfacp1120s000 from tfacp1110s000
and then inserting a record ...
i then get another record from the ascii file...
and then try to insert another record in the already open tfacp1120s000...
but it gives a error on the ledger account field...saying that
Ledger Account not allowed....even when its correct..
i have checked this by inserting the two records in tfacp1120s000
manually...but it doesnot give me any error .
following is the code :
stpapi.put.field( "tfacp1120s000", "tfgld102.leac", read.leac)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim1", read.dim1)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim2", read.dim2)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim3", read.dim3)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim4", read.dim4)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim5", read.dim5)
stpapi.put.field( "tfacp1120s000", "amount",read.leac.amt)
ret = stpapi.insert( "tfacp1120s000", 1, error.mess )
message(error.mess)
rem.amt=f1120s000.get.Remaining_Amount( )
message(str$(rem.amt))
After I insert the first record I keep the tfacp1120s000 session open and then after i read the next record ..i try inserting the new record in already open tfacp1120s000....
Basically there are two Transactions to be entered for a particular
Invoice in tfacp1120s000...
Any Suggestions?
Rgds
Rohan
i am reading a ascii record and then zooming to tfacp1120s000 from tfacp1110s000
and then inserting a record ...
i then get another record from the ascii file...
and then try to insert another record in the already open tfacp1120s000...
but it gives a error on the ledger account field...saying that
Ledger Account not allowed....even when its correct..
i have checked this by inserting the two records in tfacp1120s000
manually...but it doesnot give me any error .
following is the code :
stpapi.put.field( "tfacp1120s000", "tfgld102.leac", read.leac)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim1", read.dim1)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim2", read.dim2)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim3", read.dim3)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim4", read.dim4)
stpapi.put.field( "tfacp1120s000", "tfgld102.dim5", read.dim5)
stpapi.put.field( "tfacp1120s000", "amount",read.leac.amt)
ret = stpapi.insert( "tfacp1120s000", 1, error.mess )
message(error.mess)
rem.amt=f1120s000.get.Remaining_Amount( )
message(str$(rem.amt))
After I insert the first record I keep the tfacp1120s000 session open and then after i read the next record ..i try inserting the new record in already open tfacp1120s000....
Basically there are two Transactions to be entered for a particular
Invoice in tfacp1120s000...
Any Suggestions?
Rgds
Rohan