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
- Go to Application and User Management work center.
- Go to Service Explorer view.
- Search for the service: InventoryProcessingGoodsAndActivityConfirmationGoodsConfirmationIn.
- Select the service and download the WSDL file.
- Create a new project in the SoapUI.
- Execute the query using the request payload in SoapUI.
- 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
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
SAP Knowledge Base Article - Public