hi,
When I call the API_ MATERIAL_ DOCUMENT_ SRV, the API implementation reports an error when attempting to return goods from the frozen inventory through movement type 122.
Whether the API does not support the parameter "InventoryStockType" or not. I don't know what the reason is. I look forward to getting help. Thank you.
-------------------
{
"GoodsMovementCode": "01",
"PostingDate": "2022-11-18T00:00:00",
"MaterialDocumentHeaderText": "admin",
"ReferenceDocument": "XW016",
"to_MaterialDocumentItem": {
"results": [
{
"InventoryStockType": "7",
"Material": "W118506299006",
"GoodsMovementType": "122",
"GoodsMovementReasonCode": "0001",
"GoodsMovementRefDocType": "B",
"EntryUnit": "个",
"Plant": "A910",
"QuantityInEntryUnit": "10.000",
"StorageLocation": "1001",
"Batch": "TES#221203",
"PurchaseOrder": "4500001350",
"PurchaseOrderItem": "10"
}
]
}
}
-------------Error--------------
{"error": {"code": "M7/021", "message": {"lang": "zh", "value": "The number of BA in shortage is 8.000 without restriction: W118506299006 A910 1001 TES # 221203"}, "innererror": {"application": {"component_id": "MM-IM-VDM-SGM", "service_namespace": "/SAP/", "service_id": "API_MATERIAL_DOCUMENT_SRV", "service _version": "0001"}, "transactionid": "831D961F66D70230E0063770C4DEBEF2", "timestamp": "20221118064547.2976370", "Error_Resolution":{"SAP_Transaction":"For backend administrators: use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis ( https://service.sap.com/sap/support/notes/1797736 )"}," errordetails ": [{" ContentID ":" "," code ":" MM_IM_ODATA_API_MDOC/002 "," message ":" The field InventoryStockType "," longtext_url ":"/sap/opu/odata/iwbep/message_text; o=LOCAL/T100_longtexts (MSGID='MM_IM_ODATA_API_MDOC', MSGNO='002', MESSAGE_V1='InventoryStockType', MESSAGE_V2='', MESSAGE_V3='', MESSAGE_V4='')/$value "," propertyref ":" "," severity ":" error "," transition ": false," target ":" "}, {" ContentID ":" "," code ":" M7/021 "," message ":" Shortage BA unlimited use 8.000: W118506299006 A910 1001 TES # 221203 "," longtext_url ":"/sap/opu/odata/iwbep/message_text; o=LOCAL/T100_longtexts (MSGID='M7',MSGNO='021',MESSAGE_V1='BA%20%E9%9D%9E%E9%99%90%E5%88%B6%E4%BD%BF%E7%94%A8',MESSAGE_V2='8.000%20%E4%B8%AA%20%3A',MESSAGE_V3='W118506299006',MESSAGE_V4='A910%201001%20TES%23221203')/$value","propertyref":"","severity":"error","transition":false,"target":""}]}}}