sarojaramkumar
Technical User
Hello,
I am customizing OE Order Entry screen, with optional fields. I have done successfully posting. But my requirement is to add a misc. charges line automatically during posting.
here is my coding, but it is throwing error. "Operation Not Allowed"
Sage 300 erp 2014
Any help please..... it is urgent..
With adsOEORDD
.Init
.Fields("LINETYPE").Value = 2
.Fields("MISCCHARGE").Value = "HC"
.Fields("EXTINVMISC").Value = "10"
.Fields("USERCOSTMD").Value = "0"
.Fields("STOCKITEM").Value = "0"
.Fields("PRICEOVER").Value = "0"
.Fields("ADDTOILOC").Value = "1"
.Fields("TBASE1").Value = "10"
.Fields("TBASE2").Value = "10"
' .Fields("COPYDETAIL").Value = 1
' .Fields("EXPDATE").Value = "20151115"
.Fields("QTYORDERED").Value = "0"
.Fields("QTYSHIPPED").Value = "0"
.Fields("UNITCONV").Value = "0"
.Fields("UNITPRICE").Value = "0"
.Fields("UNITCOST").Value = "0"
.Fields("TAUTH1").Value = "STATE"
.Fields("TAUTH1").Value = "COUNTY"
.Fields("TCLASS1").Value = "1"
.Fields("TCLASS2").Value = "1"
.Fields("DDTLTYPE").Value = "0"
.Fields("NEXTCMPNUM").Value = "1"
.Fields("PRPRICEBY").Value = "1"
.SetFireEvents False
.Insert
.Process
.SetFireEvents True
End With