Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Closing Order rows

Hi,

I am trying to close sales order rows using DI API. the following is the code i am using.

objSales.Lines.SetCurrentLine(objRec.Fields.Item("LineNum").Value)

objStatic.Caption = "Updating Sales Order No. " & objRec.Fields.Item("Docentry").Value & " Line No. " & objRec.Fields.Item("LineNum").Value

objSales.Lines.LineStatus = SAPbobsCOM.BoStatus.bost_Close

If objSales.Update() <> 0 Then

MsgBox(objSBOAPI.oCompany.GetLastErrorDescription)

End If

I am getting the following error.

"Document rows cannot be closed concurrently with other document modifications you have made [RDR1.LineStatus]"

i am on 2007 B1 PL 37.

Please Help.

Thanks in Advance

Amudha

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question