Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How can I do a partial delivery with DI programmatically?

Hi at all,

I want to do a partial delivery programmatically, but the base document order gets closed!

This is what I do:

I create an order with Business One and allowed partial delivery. With SDK I create a delivery note based on this order.<BR> Next I manipulate the quantity oDelivery.Lines.Quantity = 1 (itu2019s less than in the base document). <BR>I add the new document. That works fine, but my based document is closed.

What do I wrong?

Thanks for your help!

Former Member


Is see one error in your code.

The Lines.Add() should be added before filling the fields and only if it is not the first line you're adding.



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question