on 01-05-2015 8:01 AM
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.
Hi Thomas,
make sure it is not your company default warehouse :
General Settings -> Tab Stock -> Sub tab Items -> Default Warehouse
regards,
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.