Create a new ProductTrees_Lines
I'm developing an automatic application to import cvs file and to create BOMs into SAP via SDK.
How can create a new product tree line?
Dim oPT As SAPbobsCOM.ProductTrees = Nothing oPT = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees) oPT.TreeCode = "XXXXX" Dim oPT_Line As SAPbobsCOM.ProductTrees_Lines = Nothing
Now, which SAP object should I use?
oPT_Line = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes...........)
Then... I'd use these commads to set the product tree line object:
oPT_Line.ItemCode = "YYYYYY" oPT_Line.Warehouse = "W10" oPT_Line.Quantity = "2" oPT_Line.PriceList = 2 oPT_Line.Add()
Can some one help me please?