Skip to Content
author's profile photo Former Member
Former Member

How To update standard Detail table of Delivery note

Hello expert

I want to Update Delivery Document row Table quantity feild by SDK Code

Can we do That by SDK?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 28, 2015 at 12:49 PM

    Hi Vilas,

    After you have posted a sales document, you can no longer delete the document or make any changes that affect inventory entries or journal entries. For example, you cannot change or delete deliveries or invoices for legal reasons. You must either reject or reverse them by means of a clearing posting.

    You cannot change or delete the rows in a sales document once follow-on documents have been created with reference to the rows in the sales document.

    For some localizations however, you can change certain data on posted sales documents. For example, if your customer calls and wishes to postpone the payment date of an invoice or change the payment method.

    Refer this:

    Updating and Deleting Posted Sales Documents - SAP Business One 8.82 - SAP Library

    Hope it helps.

    Thanks & Regards,

    ANKIT CHAUHAN

    SAP Business One Global Support

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vilas,

      You need to modify the below lines of code as per your need:

      SAPbobsCOM.Documents oOrder = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);

      for (int i = 0; i < oOrder.Lines.Count; i++)

      {

      oOrder.Lines.SetCurrentLine(i);

      oOrder.Lines.LineStatus = SAPbobsCOM.BoStatus.bost_Close;

      }

      int Result = oOrder.Update();

      if (Result != 0)

      {

      oCompany.GetLastError(out lErrCode, out sErrMsg);

      }

      Hope it helps.

      Thanks & Regards

      ANKIT CHAUHAN

      SAP Business One Global Support

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.