How to add new item in BOM ? I tried this code but it did not worked
Dim objBOM As SAPbobsCOM.ProductTrees
objBOM = objCompany.GetBusinessObject(BoObjectTypes.oProductTrees)
objBOM.Items.Add()
objBOM.Items.SetCurrentLine(objBOM.Items.Count + 1)
objBOM.Items.ItemCode = objDTFooter.Rows(intI).Item("U_ItemCode")
objBOM.Items.Quantity = objDTFooter.Rows(intI).Item("U_Quantity")