Skip to Content
0
Feb 14, 2011 at 04:06 PM

Error retrieving BOM type from sales order line matrix

62 Views

Hi All

I have a problem with an add-on which works in SBO version 2007 but now fails in version 8.8. The fault occurs when the code attempts to retrieve the BOM type from the sales order line matix as follows:

objCombo = mtxOrder.Columns.Item("39").Cells.Item(intCount).Specific

strBomType = objCombo.Selected.Value

Where mtxOrder represents the sales order line marix extracted from form type 139

Under version 8.8 this code generates an error "unable to cast COM object ... to interface type SAPbouiCOM.ComboBox ....". If the code is replaced by the following, the error does not occur.

objEditBox = mtxOrder.Columns.Item("39").Cells.Item(intCount).Specific

strBomType = objEditBox.Value

Any assistance or explanation would be greatly appreciated.

Thanks

David