cancel
Showing results for 
Search instead for 
Did you mean: 

How To update standard Detail table of Delivery note

Former Member
0 Kudos

Hello expert

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

Can we do That by SDK?

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Hello Ankit

OK but we can do that with sale order

please suggest me method how we can update sale order data line by line ?

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Answers (0)