Hi,
I try to delete the warehouse 01, but I get always the Error:
"Cannot remove warehouse; this warehouse is defined as the default warehouse for one or more items"
But no item has the warehouse 01 as default. (select COUNT(*) from OITM where "DfltWH" = '01')
I even set ALL Items to another warehouse.
Tryed to remove the warehouse from the OITW.
Then I created a new database with NO Items at all, but still the same error message.
I created on this database a second warehouse and tryed to delete the 01 warehouse.
Tryed to solve the issue per code, but still no luck.
Warehouses oST = WUD_Standard.oCompany.GetBusinessObject(BoObjectTypes.oWarehouses);
oST.GetByKey(l);
int ret = oST.Remove();
if (ret != 0)
{
string txt = WUD_Standard.oCompany.GetLastErrorDescription();
}
It allways works with other warehouses but not with the warehouse 01.
How can I remove the warehouse 01?
I Tryed it on this two systems:
Our customer has HANA 74.3 and SAP B1 PL 12.
My Test System is SQL 2008 R2 and SAP B1 PL 14.