SAP Knowledge Base Article - Public

3105828 - Message_Type_X error when posting goods movement for Manufacturing Order

Symptom

The error 'Message_Type_X' occurs when attempting to post a goods movement via the API.

Environment

SAP S/4HANA Cloud Public Edition

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

  1. Remove the field "ManufacturingOrderItem" from the payload.
  2. Retest the goods movement posting via the API.

See Also

Create Material Documents - API | SAP Help

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-2CL , VDM Stock and Goods Movements (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions