on 08-28-2015 12:56 PM
Hello expert
I want to Update Delivery Document row Table quantity feild by SDK Code
Can we do That by SDK?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.