cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create delivery with zero quantity

Former Member
0 Kudos
88

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi gurus !

A little up for this post ..

I'm in this situation too.

thanks for your answers.

Former Member
0 Kudos

This is not even possible using the SBO GUI, so I don´t think you will be able to get it working with DI API.

Regards,

Ibai Peñ

Former Member
0 Kudos

It is DIAPI bug Note - 1001970

DI - Wrong Quantity updated when creating delivery document

The note 1001970 has not been released yet but should be soon.

This issue is candidate to be fixed in Business One version 2006

Regards,

Sheetal