Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create a new ProductTrees_Lines

Dear all,

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?

for example...

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


Can some one help me please?



Former Member
Not what you were looking for? View more on this topic or Ask a question