Skip to Content
0
Former Member
Mar 22, 2009 at 09:03 AM

Add new item in BOM

49 Views

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")