Skip to Content
0
Former Member
Nov 11, 2006 at 12:18 AM

Unable to create delivery with zero quantity

48 Views

Hello,

I am trying to create a Delivery using DIAPI. When I set the quantity as zero for a line item. The Delivery Note gets created with quantity 1.

I am able to create a delivery with no quantity from SBO client.

SAPbobsCOM.Documents vDLN = (SAPbobsCOM.Documents)c.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);

vDLN.CardCode = "C20000";

vDLN.Lines.SetCurrentLine(0);

vDLN.Lines.ItemCode = "A00001";

vDLN.Lines.Quantity = 0;

if (0 != returnval)

{

c.GetLastError(out errNo, out errMsg);

Console.WriteLine(errMsg);

return;

}

Thanks and Regards,

Sheetal