cancel
Showing results for 
Search instead for 
Did you mean: 

Set bin location on draft delivery note through DI API

0 Kudos

Hi,

How I can add information about location on draft document delivery note through DI API.

I'm using version SBO 9.1/VS 2010

Thanks & Regards,

Tomasz Derus

Accepted Solutions (1)

Accepted Solutions (1)

former_member201110
Active Contributor
0 Kudos

Hi Tomasz,

To create a draft delivery using the DI API, you just need to create an instance of the Documents object or subtype oDraft. Then set the DocObjectCodeEx property of the draft to 15 (delivery). The DocumentLinesBinAllocations object, which is a child of the Document_Lines object, gives you the methods and properties to define the bin locations or the lines on the draft delivery.

Kind Regards,

Owen

0 Kudos

Hi Owen,

Thank you for your answerd.

I can add location on draft delivery note when I create by DI API new dokument (Draft delivery note).

Problem occurs during update location on Draft delivery note by DI API - new location not saved on the document positions

DraftDoc.Lines.BinAllocations.BinAbsEntry = binloc;

DraftDoc.Lines.BinAllocations.Quantity = qty;

DraftDoc.Lines.BinAllocations.Add();

Tomasz

Answers (0)