SAP Knowledge Base Article - Public

3072307 - Error M7349 when posting a goods movement for Order with multiple materials via API.

Symptom

Error M7349 when posting a goods movement for Order with multiple materials via API.

Environment

  • SAP S/4HANA Cloud

Reproducing the Issue

API Payload :

{
  "PostingDate" : "T00:00:00",
  "DocumentDate" : "T00:00:00",
  "GoodsMovementCode" : "01",
  "to_MaterialDocumentItem" : {
    "results" : [
      {
        "Material" : "",
        "Plant" : "",
        "StorageLocation" : "",
        "GoodsMovementType" : "101",
        "ManufacturingOrder" : "",
        "GoodsMovementRefDocType" : "",
        "EntryUnit" : "",
        "QuantityInEntryUnit" : "",
        "ManufactureDate" : "/Date()/"
      },
      {
        "Material" : "",
        "Plant" : "",
        "StorageLocation" : "",
        "GoodsMovementType" : "101",
        "ManufacturingOrder" : "",
        "GoodsMovementRefDocType" : "",
        "EntryUnit" : "",                                         
        "ManufactureDate" : "/Date()/",
        "QuantityInEntryUnit" : ""
      },
      {
        "Material" : "",
        "Plant" : "",
        "Batch" : "",
        "StorageLocation" : "",
        "GoodsMovementType" : "101",
        "ManufacturingOrder" : "",
        "GoodsMovementRefDocType" : "",
        "EntryUnit" : "",
        "QuantityInEntryUnit" : "",
        "ManufactureDate" : "/Date()/"
      }
    ]
  }
}

Cause

"ManufacturingOrderItem" is missing from the payload for each of the items in the API.

Resolution

Add ManufacturingOrderItem to the payload for each material / item.

{
"PostingDate" : "T00:00:00",
"DocumentDate" : "T00:00:00",
"GoodsMovementCode" : "01",
"to_MaterialDocumentItem" : {
"results" : [
{
"Material" : "",
"Plant" : "",
"StorageLocation" : "",
"GoodsMovementType" : "101",
"ManufacturingOrder" : "",
"GoodsMovementRefDocType" : "",
"EntryUnit" : "",
"QuantityInEntryUnit" : "",
"ManufacturingOrderItem" : "1",                                           <<<-----
"ManufactureDate" : "/Date()/"
},
{
"Material" : "",
"Plant" : "",
"StorageLocation" : "",
"GoodsMovementType" : "101",
"ManufacturingOrder" : "",
"GoodsMovementRefDocType" : "",
"EntryUnit" : "",
"ManufacturingOrderItem" : "2",                                          <<<-----
"ManufactureDate" : "/Date()/",
"QuantityInEntryUnit" : ""
},
{
"Material" : "",
"Plant" : "",
"Batch" : "",
"StorageLocation" : "",
"GoodsMovementType" : "101",
"ManufacturingOrder" : "",
"GoodsMovementRefDocType" : "",
"EntryUnit" : "",
"QuantityInEntryUnit" : "",
"ManufacturingOrderItem" : "3",                                          <<<-----
"ManufactureDate" : "/Date()/"
}
]
}
}

Keywords

API, ManufacturingOrderItem, Order, 101, Multiple, Component, IMSEG, Interface, CO03 , KBA , MM-IM-GF-BAPI , BAPIs for Goods Movements , MM-IM-GF-BAPI-2CL , BAPIs for Goods Movements (Public Cloud) , Problem

Product

SAP S/4HANA Cloud 2105