sandeepsharma
15th April 2009, 09:09
Hi friends,
I am getting an error "Insert not allowed for this group" while inserting the data through afs.
I am using the following code:
stpapi.put.field( "tfcmg2120s000", "tfgld102.cono", str$(comp) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.year", str$(yr) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.btno", str$(btno) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.ttyp", ttyp )
stpapi.put.field( "tfcmg2120s000", "tfgld102.docn", str$(docn) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.lino", str$(1) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.serl", str$(1) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.srno", str$(1) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.tcom", str$(comp) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.leac", tficc962.leac )
stpapi.put.field( "tfcmg2120s000", "tfgld102.dim1", tficc962.dim1 )
stpapi.put.field( "tfcmg2120s000", "tfgld102.dim2", tficc962.dim2 )
stpapi.put.field( "tfcmg2120s000", "tfgld102.dim3", tficc962.dim3 )
stpapi.put.field( "tfcmg2120s000", "tfgld102.amnt", str$(tficc962.amnt) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.dbcr", str$(etol(tficc962.dbcr) ))
stpapi.put.field( "tfcmg2120s000", "tfgld102.fyer", str$(yr) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.fprd", str$(period) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.vyer", str$(yr) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.vprd", str$(tax.period) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.refr", str$(tficc962.refr) )
ret = stpapi.insert( "tfcmg2120s000", do.update, error )
if isspace(error) then
ret = stpapi.save( "tfcmg2120s000", error )
else
message("%s",error)
endif
stpapi.end.session( "tfcmg2120s000" )
regards,
Sandeep
I am getting an error "Insert not allowed for this group" while inserting the data through afs.
I am using the following code:
stpapi.put.field( "tfcmg2120s000", "tfgld102.cono", str$(comp) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.year", str$(yr) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.btno", str$(btno) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.ttyp", ttyp )
stpapi.put.field( "tfcmg2120s000", "tfgld102.docn", str$(docn) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.lino", str$(1) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.serl", str$(1) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.srno", str$(1) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.tcom", str$(comp) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.leac", tficc962.leac )
stpapi.put.field( "tfcmg2120s000", "tfgld102.dim1", tficc962.dim1 )
stpapi.put.field( "tfcmg2120s000", "tfgld102.dim2", tficc962.dim2 )
stpapi.put.field( "tfcmg2120s000", "tfgld102.dim3", tficc962.dim3 )
stpapi.put.field( "tfcmg2120s000", "tfgld102.amnt", str$(tficc962.amnt) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.dbcr", str$(etol(tficc962.dbcr) ))
stpapi.put.field( "tfcmg2120s000", "tfgld102.fyer", str$(yr) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.fprd", str$(period) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.vyer", str$(yr) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.vprd", str$(tax.period) )
stpapi.put.field( "tfcmg2120s000", "tfgld102.refr", str$(tficc962.refr) )
ret = stpapi.insert( "tfcmg2120s000", do.update, error )
if isspace(error) then
ret = stpapi.save( "tfcmg2120s000", error )
else
message("%s",error)
endif
stpapi.end.session( "tfcmg2120s000" )
regards,
Sandeep