Symptom
Message_Type_X when posting a goods movement via API
Environment
- SAP S/4HANA Cloud
Reproducing the Issue
Payload refers to a Goods Issue Posting:
{
PostingDate: " ",
GoodsMovementCode: "03",
to_MaterialDocumentItem: [{
Material: " ",
Batch: " ",
Plant: " ",
StorageLocation: " ,
GoodsMovementType: "262",
ManufacturingOrder: "",
ManufacturingOrderItem: "10",
EntryUnit: "" ,
QuantityInEntryUnit: ""
}]
}
Cause
Shortdump on the backend refers to the error
Category ABAP programming error
Runtime Errors MESSAGE_TYPE_X
ABAP Program SAPLMBWL
Application Component MM-IM
Date and Time 10/07/2021 11:02:09 (UTC)
Error Analysis
Short text of the error message:
Order '1234567' 0010 not found (check entry)
Long text of the error message:
Technical information about the message:
Message class....... CO
Number.............. 017
The payload for GoodsMovementType: "262", refers to the property "ManufacturingOrderItem".
Resolution
- Remove the field "ManufacturingOrderItem" from the payload.
- Retest the goods movement posting via the API.
Keywords
Message_Type_X, API, API_MATERIAL_DOCUMENT_SRV/A_MaterialDocumentHeader, ST22, CO017, post material document, Goods Movement, Order, Item, 261, 262, Manufacturing Order , KBA , MM-IM-VDM-SGM , VDM Stock and Goods Movements , MM-IM-VDM-SGM-2CL , VDM Stock and Goods Movements (Public Cloud) , Problem