Skip to Content
author's profile photo
Former Member

DI - close open items

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 04, 2004 at 01:35 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded