Skip to Content

Updating & closing items in Sales Order

Hi, we're using 2007.

When I need to update as well as to close multiple item lines in a Sales Order, I'll need to do this:

  1. Call GetByKey()
  2. Call SetCurrentLine() // point to item to be updated
  3. set Quantity = 10 // for example updating quantity
  4. Call Update()
  5. Call GetByKey() // to reload the document
  6. Call SetCurrentLine() // point to item to be closed
  7. set LineStatus = bost_Close
  8. Call Update()

    So I just want to confirm if this is the correct way to do it, ie. calling GetByKey doing Update() 2 times?

    Please advise.

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

    Related questions

    1 Answer

    • Best Answer
      Posted on Sep 16, 2015 at 12:50 AM

      Hi Tjandra,

      You are correct.

      Closing a line and updating the line needs to be separated (two times process).

      Regards

      Edy

      Add a comment
      10|10000 characters needed characters exceeded

    Before answering

    You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
    You must be Logged in to submit an answer.

    Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.