cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Warehouse 01

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

maik_delly
Active Contributor
0 Kudos

Hi Thomas,

make sure it is not your company default warehouse :

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

regards,

Maik

Answers (1)

Answers (1)

former_member774877
Discoverer

In SAP 10, we need to make sure that under the General Settings > Resources Tab > Default Warehouse, the warehouse to remove, is not set there as default. Otherwise, the following error message will be shown: "Cannot remove warehouse; this warehouse is defined as the default warehouse for one or more resources"

BattleshipCobra
Contributor
0 Kudos
This is what did it for me, I had it on "01" thanks!