
i am using the following code to update a line
it fails on the SetCurrentLine - "invalid row error "
the order has 3 line items ( all open )
however the rdr1 table LineNum is
0 , 2 , 3 for the three rows
and for the VisOrder column it is
0 , 1 , 2 for the corresponding rows
what column value should I use in setting current line ? LineNum or VisOrder ?
SAPbobsCOM.Documents oOrders = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders); oOrders.GetByKey(intKey); oOrders.Lines.SetCurrentLine(3);<br>