Symptom
Cannot make 411Q posting via API due to error "Property WBSELEMENT is not supported for GoodsMovementType 411"
Environment
SAP S/4HANA Cloud
Reproducing the Issue
{
"DocumentDate": "2024-02-01T00:00:00",
"PostingDate": "2024-02-01T00:00:00",
"MaterialDocumentHeaderText": "TEST",
"GoodsMovementCode": "04",
"to_MaterialDocumentItem": [
{
"Material": "TG10",
"Plant": "1010",
"StorageLocation": "101A",
"Batch": "",
"GoodsMovementType": "411",
"InventorySpecialStockType": "Q",
"QuantityInEntryUnit": "1",
"WBSElement":"WBS-00001",
"IssgOrRcvgBatch":"",
"IssuingOrReceivingPlant":"1010",
"IssuingOrReceivingStorageLoc": "101A"
}
]
POST : Error "Property WBSELEMENT is not supported for GoodsMovementType 411"
Cause
The property "WBSElement" is used for account assignment, it is not relevant for the actual Special Stock.
Instead, property "SpecialStockIdfgWBSElement" is used for the actual Special Stock for a Project.
Resolution
Change the payload.
Changing field WBSElement to SpecialStockIdfgWBSElement
{
"DocumentDate": "2024-02-01T00:00:00",
"PostingDate": "2024-02-01T00:00:00",
"MaterialDocumentHeaderText": "TEST",
"GoodsMovementCode": "04",
"to_MaterialDocumentItem": [
{
"Material": "TG10",
"Plant": "1010",
"StorageLocation": "101A",
"Batch": "",
"GoodsMovementType": "411",
"InventorySpecialStockType": "Q",
"QuantityInEntryUnit": "1",
"SpecialStockIdfgWBSElement":"WBS-00001", <<<-------
"IssgOrRcvgBatch":"",
"IssuingOrReceivingPlant":"1010",
"IssuingOrReceivingStorageLoc": "101A"
}
]
POST
Keywords
CLOUD, API, API_MATERIAL_DOCUMENT_SRV, A_MaterialDocumentHeader, 411, Q, PROJECT, WBS ELEMENT, SpecialStockIdfgWBSElement, WBSELEMENT, "Property WBSELEMENT is not supported for GoodsMovementType 411", Payload, OData , KBA , MM-IM-GI-2CL , Goods Issue and Return Delivery (Public Cloud) , How To