Skip to Content
0
Former Member
Jan 17, 2005 at 05:39 PM

Add new line to Sales Order

828 Views

Hi everybody!!

I am doing some data importation into SBO. I run have some problems adding new lines to sales orders. Here is the code.

With SBOOrder.Lines

.Add

.ItemCode = MaterialNode.selectSingleNode("ItemNo").Text

.WarehouseCode = MaterialNode.selectSingleNode("StoreNo").Text

.ShipDate = MaterialNode.selectSingleNode("Date").Text

.ItemDescription = MaterialNode.selectSingleNode("Description").Text

.PriceAfterVAT = MaterialNode.selectSingleNode("VATRate").Text

.Price = MaterialNode.selectSingleNode("CustomerPrice").Text

.Quantity = MaterialNode.selectSingleNode("Quantity").Text

.BaseType = 17

End With

lRetCode = SBOOrder.Update

With this code I get "Base Doc Missmatch" error. It is obvious that some fields need to fill up before adding the new line. But I don't know witch! I haven't found any example of document lines creation. Could anybody post an example?

Thanks in advance!