Skip to Content
0
Former Member
Apr 26, 2010 at 04:45 PM

Error: -1105 Invalid Index

22 Views

Hi all,

I am trying to cancel a Production Order using the following code, but I am getting an error : "-1105 Invalid Index".

Any help is appreciated.

--CODE

Dim pDocNum As Integer 'Production Order

pDocNum = Convert.ToInt32(rsProdOrders.Fields.Item(0).Value.ToString())

oProdOrders.GetByKey(pDocNum)

'SBO_Application.MessageBox(pDocNum)

oProdOrders.ProductionOrderStatus = SAPbobsCOM.BoProductionOrderStatusEnum.boposCancelled

lRetCode = oProdOrders.Update

If lRetCode <> 0 Then

SBO_Application.MessageBox(lRetCode & " " & oCompany.GetLastErrorDescription)

End If

-- END OF CODE

Thank you in advance,

Aris Pantelatos