Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Delete Warehouse 01

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.

Tags:
Former Member
replied

Hi Thomas,

make sure it is not your company default warehouse :

General Settings -> Tab Stock -> Sub tab Items -> Default Warehouse

regards,

Maik

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question