biuan SAP® BUSINESS ONE SDK
API Product Trees

Description

ProductTrees is a business object that represents a completed product comprising parts and raw materials, which is described by means of a bill of materials. This object is part of the Inventory module.

This object enables you to:

  • Add an item to the product tree.
  • Retrieve an item by its keys from the product tree.
  • Update an item in the product tree.
  • Remove an item from the product tree.
  • Save the object in XML format.

Source table: OITT.

Object Model

Remarks

Mandatory fields in SAP Business One: TreeCode and TreeType.

To display the form in the application:

  • Select Production --> Define Bill of Materials.

See Also

SAP® B1 DI-API C# definition

public class ProductTreesClass : IProductTrees, ProductTrees { public virtual DataBrowser Browser { get; } public virtual string DistributionRule { get; set; } public virtual string DistributionRule2 { get; set; } public virtual string DistributionRule3 { get; set; } public virtual string DistributionRule4 { get; set; } public virtual string DistributionRule5 { get; set; } public virtual BoYesNoEnum HideBOMComponentsInPrintout { get; set; } public virtual ProductTrees_Lines Items { get; } public virtual double PlanAvgProdSize { get; set; } public virtual int PriceList { get; set; } public virtual string Project { get; set; } public virtual double Quantity { get; set; } public virtual string TreeCode { get; set; } public virtual BoItemTreeTypes TreeType { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public virtual string Warehouse { get; set; } public extern ProductTreesClass(); public virtual extern int Add(); public virtual extern int Cancel(); public virtual extern int Close(); public virtual extern string GetAsXML(); public virtual extern bool GetByKey(string Key); public virtual extern int Remove(); public virtual extern void SaveToFile( string FileName); public virtual extern void SaveXML( ref string FileName); public virtual extern int Update(); }

Related information


Product Trees Lines ProductTrees_Lines Object· Table: ITT1
ProductTrees_Lines is a child object of the ProductTrees object and it represents the line entries of each product tree. This object is part of the Inventory and Production module. Source table: ITT1.
   Parent: Product Trees ProductTrees Object· Table: OITT

Bo Item Tree Types BoItemTreeTypes Enumeration
Specifies the tree types for items.
   Parent: Product Trees ProductTrees Object· Table: OITT


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates