DTW Inventory / Item Master Data
API Stock Taking


This function is abandoned in SAP Business One 9.0. If you use this object, an ATL Error occurs.

StockTaking is a business object that is used to take items from a warehouse, or to put items into a warehouse.

Source table: OITW.

Object Model


Mandatory fields in SAP Business One: ItemCode and WarehouseCode.

To display the form in the application:

  1. Select Inventory --> Inventory Transactions --> Beginning quantities and cycle counting.
  2. In Stock Posting tab select your warehouse and then click OK.

See Also

SAP® B1 DI-API C# definition

public class StockTakingClass : IStockTaking, StockTaking { public virtual DataBrowser Browser { get; } public virtual double Counted { get; set; } public virtual string ItemCode { get; set; } public virtual SAPbobsCOM.UserFields UserFields { get; } public virtual string WarehouseCode { get; set; } public extern StockTakingClass(); public virtual extern int Add(); public virtual extern string GetAsXML(); public virtual extern bool GetByKey( string bstrItemCode, string bstrWhsCode); public virtual extern void SaveToFile( string FileName); public virtual extern void SaveXML( ref string FileName); }

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