通过API_MATERIAL_DOCUMENT_SRV发布311运动

时间:2018-08-15 16:33:33

标签: s4sdk

我正在尝试使用API​​将库存从非限制库存转移到冻结库存。我使用的API是API_MATERIAL_DOCUMENT_SRV。我收到以下错误:

“无法在物料级别为此操作设置字段InventoryStockType”

我通过Postman发布的消息如下:

{
"PostingDate": "2018-08-14T00:00:00",
"GoodsMovementCode": "01",
"to_MaterialDocumentItem": [{
  "Material": "MZ-FG-E11",
  "Plant": "1710",
  "StorageLocation": "171A",
  "GoodsMovementType": "311",
  "Batch" : "0000000001",
  "InventoryStockType": "01",
  "EntryUnit": "PC",
  "QuantityInEntryUnit": "11",
  "IssuingOrReceivingStockType":"02",
  "IssgOrRcvgMaterial":"MZ-FG-E11",
  "IssgOrRcvgBatch":"0000000001",
  "IssuingOrReceivingPlant":"1710",
  "IssuingOrReceivingStorageLoc":"171A"
  }]
}

任何人都可以建议该消息的外观吗?

1 个答案:

答案 0 :(得分:1)

我为此使用了344:

{
"PostingDate": "2018-08-14T00:00:00",
"GoodsMovementCode": "04",
"to_MaterialDocumentItem": [{
  "Material": "MZ-FG-E11",
  "Plant": "1710",
  "StorageLocation": "171A",
  "GoodsMovementType": "344",
  "Batch" : "0000000001",
  "QuantityInEntryUnit": "11",
  "IssuingOrReceivingStorageLoc":"171A"

  
  
  }]
}