Symptom
- Error when using the “Change Warehouse Physical Stock Type by Product” action of API_WHSE_PHYSSTOCKPROD.
- Error message: “M7/006 – Material … does not exist”.
- The API works only when the product is already extended/available in the derived storage location.
- The system implicitly derives a storage location during processing, causing the request to fail if the product is not extended to that location.
- Success detail may show “Warehouse task … created” while the Inventory Management posting fails.
Environment
SAP S/4HANA Cloud Public Edition
Cause
- The action also performs an Inventory Management (IM) goods movement. During this, the system derives plant/storage location from the warehouse assignment.
- If the material is not extended to the derived storage location, the IM check fails and raises M7/006.
Resolution
- Identify the plant/storage location that the system derives from the EWM warehouse used in the request.
- In the Manage Product Master Data APP, extend the material to the derived storage location for the relevant plant.
- Re-run the API_WHSE_PHYSSTOCKPROD “ChangeStockType” action.
- Note the limitations:
- The storage location cannot be provided in the API payload; it is determined internally.
- The action cannot be used for materials not extended to the derived storage location.
See Also
Keywords
api_whse_physstockprod, change stock type, m7/006, material does not exist, storage location derivation, storage location determination, ewm, inventory management, im posting, warehouse physical stock, stock type change, product extension, plant storage location, s/4hana cloud public edition, warehousing api , KBA , SCM-EWM-API-2CL , Remote APIs (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public