SAP Knowledge Base Article - Public

3729639 - Error: Stock category not valid; only one stock category permitted

Symptom

While performing Change of Stock operation through the web service: InventoryProcessingGoodsAndActivityConfirmationGoodsConfirmationIn the below error occurs.

Error: Stock category not valid; only one stock category permitted

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Go to Application and User Management work center.
  2. Go to Service Explorer view.
  3. Search for the service: InventoryProcessingGoodsAndActivityConfirmationGoodsConfirmationIn.
  4. Select the service and download the WSDL file.
  5. Create a new project in the SoapUI.
  6. Execute the query using the request payload in SoapUI.
  7. The error appears in the response payload.

Error: Stock category not valid; only one stock category permitted

Cause

While removing inspection status of a material through Change of Stock operation via webservice the request payload contains the tag <TargetInventoryStockStatusCode>''</TargetInventoryStockStatusCode>.

Resolution

  • When no value is provided for the TargetInventoryStockStatusCode tag, do not use single quotation marks ('').
  • Instead, use self-closing tag: <TargetInventoryStockStatusCode/>.

See Also

InventoryProcessingGoodsAndActivityConfirmationGoodsConfirmationIn - Documentation

Keywords

stock category, inventory processing, goods and activity confirmation, web service, change of stock, payload error, invalid stock category, SOAP UI, stock status code, empty tag format, inspection stock, not inspection stock, Stock category not valid; only one stock category permitted , KBA , AP-IP-INV , Inventory , AP-IP-GAC , Goods and Activity Confirmation , Problem

Product

SAP Business ByDesign all versions