如何在服务层中批处理编号详细信息

2020-09-02 19:33发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)嗨, 当我创建带有服务层的In...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨,

当我创建带有服务层的InventoryGenEntries文档时,出现错误:"如果不完整选择批次/序列号,则无法添加行"。 我想这个问题的原因是批号,但我不知道如何输入批号。 你可以帮帮我吗? 这是我的代码:

" DocDate":" 2019-04-24",

" DocDueDate":" 2019-04-24",

" DocumentLines":[

{

" LineNum":0,

" ItemCode":" AAA-06228",

"数量":100,

"仓库代码":" 01",

" AccountCode":" 610.02.99",

"批号":[]}

]

谢谢

Haktan

1条回答
微wx笑
2020-09-02 20:02

Hak Haktan,

这是一个复杂的示例,其中包含多行,批号,序列号和Bin分配。 我想在您的情况下,您只需要填写批号。 (请参见示例中的第二行,商品代码为B10000。)

 {
    " CardCode":" S10000",
    " DocumentLines":[
       {
          " ItemCode":" A00001",
          " WarehouseCode":" 05",
          "数量":4
          " DocumentLinesBinAllocations":[
             {
                " BinAbsEntry":2,
                "数量":2
             },
             {
                " BinAbsEntry":26,
                "数量":2
             }
          ]
       },
       {
          " ItemCode":" A00006",
          " WarehouseCode":" 05",
          "数量":2
          "序列号": [
             {
                " InternalSerialNumber":" SN0011"
             },
             {
                " InternalSerialNumber":" SN0012"
             }
          ],
          " DocumentLinesBinAllocations":[
             {
                " SerialAndBatchNumbersBaseLine":0,
                " BinAbsEntry":2,
                "数量":1
             },
             {
                " SerialAndBatchNumbersBaseLine":1
                " BinAbsEntry":26,
                "数量":1
             }
          ]
       },
       {
          " ItemCode":" B10000",
          " WarehouseCode":" 05",
          "数量":10,
          "批号":[
             {
                " BatchNumber":" CH0001",
                "数量":4
             },
             {
                " BatchNumber":" CH0002",
                "数量":6
             }
          ],
          " DocumentLinesBinAllocations":[
             {
                " SerialAndBatchNumbersBaseLine":0,
                " BinAbsEntry":2,
                "数量":2
             },
             {
                " SerialAndBatchNumbersBaseLine":0,
                " BinAbsEntry":3,
                "数量":2
             },
             {
                " SerialAndBatchNumbersBaseLine":1
                " BinAbsEntry":4,
                "数量":3
             },
             {
                " SerialAndBatchNumbersBaseLine":1
                " BinAbsEntry":5
                "数量":3
             }
          ]
       }
    ]
 } 

一周热门 更多>