📚 SAP Business One SDK Help

ItemCycleCount Object
See Also  Members  Example

Description

ItemCycleCount object hold the information when an item will go through cycle counting.

Each Item has a few Warehouses and each Warehouse has one ItemCycleCount.

Source table: ITW1

Object Model





Example

Adding an item to a cycle count (Visual Basic)Copy Code
Dim oItem As Items
Dim oWhareHouse As ItemWarehouseInfo

oItem = oCompany.GetBusinessObject(BoObjectTypes.oItems)

'get item
oItem.GetByKey("X0003")

'get warehouse
oWhareHouse = oItem.WhsInfo

'set an existind cycle count (e.g CycleCode=1 : CycleName:"Weekly on Tuesday" ,OCYC table)
oWhareHouse.ItemCycleCount.CycleCode = 1

'set alert
oWhareHouse.ItemCycleCount.Alert = BoYesNoEnum.tYES

'set user
oWhareHouse.ItemCycleCount.DestinationUser = 1

'update item with new Cycle Count
oItem.Update()





See Also