Skip to Content
0
Former Member
Dec 02, 2009 at 07:34 AM

Error while Adding a Delivery Note with Barcode

54 Views

When i add the deliverynote , i get the following error :

Error Code : -10 : Document can not be added: Base line item has been updated, re-transmitting the document data from the base document .

or

Access violation error

This happens only when i assign a barcode to the item in the Item Master Data ( Eg : ITM001 is assigned a barcode ) .This works fine when the barcode is not assigned to the item .

What is the cause of this error ?

Obj := IDocuments(Company.GetBusinessObject(oDeliveryNotes));

Obj.CardCode := 'B1010';

Obj.Lines.Add;

Obj.Lines.BaseType := bodt_Order;

Obj.Lines.BaseEntry := 100;

Obj.Lines.BaseLine := 0;

obj.Lines.ItemCode := 'ITM001';

Edited by: senthil kumar on Dec 2, 2009 1:04 PM