SAP Message W4040 - &: & unrestricted-use, valuated stock exists

Procedure
Reduce the unrestricted-use
, valuated stock of thematerial to zero in the respective plant and storage location.You can then archive the material.