cancel
Showing results for 
Search instead for 
Did you mean: 

DI - close open items

Former Member
0 Kudos

Hi!

As in my project most deliveries do not contain the full amount of ordered items, I would like to find a comfortable way of closing the open orders.

Is there any possibility to close an open order from the open items list via DI instead of closing the orders manually using the menu?

thanks in advance,

martin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

here are some useful functionality of the document object:

Document.<b>Cancel</b> => Cancels a record from the object table.

Document.<b>Close </b> => Closes a record of the object in SAP Business One DB

Document.Remove => Not supported.

...........SAP Business One does not allow to remove a document object from the database.

here is an example:

<i>

If oOrder.GetByKey(10) Then

....lErr = oOrder.Close

End If</i>

Regards

Yaniv G.

SDK Consultant,

SAP Manage Israel.

Answers (0)