Skip to Content
0
Former Member
May 02, 2008 at 08:54 AM

How to add existing warehouse to the existing item in OITW

269 Views

Hi,

Could somebody help me to resolve this problem:

I try to add via SDK (using ItemWarehouseInfo object) existing item to existing warehouse - OITW table (our SBO v.2004 configured to not open automatically all warehouses for all items). - like via Item card user adds manually warehouse code in the stock tab. There is code i use:

if oItems.GetByKey("ItemCode")

oItems.WhsInfo.WarehouseCode = "WarehouseCode"

oItems.WhsInfo.Add()

oItems.Update()

endif

but SDK instead of add new record to the OITW replaces existing record with other warehouse code (like update).

What have i do to resolve this issue ?