WEBAPI创建生产领料单批号报错
金蝶云社区-云社区用户73182930
云社区用户73182930
0人赞赏了该文章 1,740次浏览 未经作者许可,禁止转载编辑于2018年02月27日 19:01:34

使用WEBAPI创建生产领料单的时候,批号报出批号字段录入的批号已作废或批号状态不正确的错误。这个批号做过直接调拨。跟踪WEBAPI的时候发现批号赋值成功,并且是调拨后的批号ID。但是保存校验仍然报错。

下面是WEBAPI的调用JSON
{"Creator":"","NeedUpDateFields":[],"NeedReturnFields":[],"IsDeleteEntry":"True","SubSystemId":"","IsVerifyBaseDataField":"false","Model":{"FID":"0","FBillNo":"SOUT00000509","FBillType":{"FNumber":"SCLLD01_SYS"},"FDate":"2018-02-27 00:00:00.0","FDescription":"","FStockOrgId":{"FNumber":"101.02"},"FStockerGroupId":{"FNumber":""},"FStockerId":{"FNumber":""},"FPickerId":{"FStaffNumber":""},"FCurrId":{"FNumber":""},"FOwnerTypeId0":"BD_OwnerOrg","FOwnerId0":{"FNumber":"101.01"},"FPrdOrgId":{"FNumber":"101.02"},"F_PAEZ_Base":{"FNumber":"A10216-I05"},"FWorkShopId":{"FNumber":""},"FTransferBizTypeId":{"FNumber":""},"FScanBox":"","FBizType":"","FEntity":[{"FEntryID":"0","FMaterialId":{"FNumber":"0202000095"},"FAuxPropId":{},"FBomId":{"FNumber":""},"FUnitID":{"FNumber":"Pcs"},"FAppQty":"100","FActualQty":"100","FStockId":{"FNumber":"1203"},"FStockLocId":{"FSTOCKLOCID__FF100001":{"FNUMBER":"C-1-5"}},"FLot":{"FNumber":"B-ZM00352018-02-27001"},"FProductId":{"FNumber":""},"FProductNo":"","FIsAffectCost":"false","FPRODUCTGROUPID":{"FNumber":""},"FStockUnitId":{"FNumber":"Pcs"},"FStockActualQty":"100","FOwnerTypeId":"BD_OwnerOrg","FEntryWorkShopId":{"FNumber":"26.02"},"FOwnerId":{"FNumber":"101.01"},"FExtAuxUnitId":{"FNumber":""},"FExtAuxUnitQty":"0","FPrice":"0","FAmount":"0","FParentOwnerTypeId":"","FParentOwnerId":{"FNumber":""},"FBaseUnitId":{"FNumber":"Pcs"},"FServiceContext":"","FBaseActualQty":"100","FStockStatusId":{"FNumber":"KCZT01_SYS"},"FProduceDate":"2018-02-27 00:00:00.0","FSecUnitId":{"FNumber":""},"FSecActualQty":"0","FEntrtyMemo":"","FMtoNo":"","FProjectNo":"","FMoBillNo":"MO000130","FBaseAppQty":"100","FKeeperTypeId":"BD_KeeperOrg","FKeeperId":{"FNumber":"101.02"},"FExpiryDate":"2020-02-17 00:00:00.0","FEntrySrcEnteryId":"112760","FEntrySrcInterId":"100803","FEntrySrcEntrySeq":"117","FSrcBillType":"PRD_PPBOM","FSrcBillNo":"PPBOM00000189","FMoId":"100163","FMoEntryId":"100234","FMoEntrySeq":"1","FPPBomBillNo":"PPBOM00000189", "FPPBomEntryId":"112760", "FBFLowId":{"FID":"81119477-4778-4d0b-94b9-1c43a1c1f768"},"FSerialSubEntity":[{"FDetailID":"0","FSerialNo":"","FSerialNote":""}],"FEntity_Link":[{"FEntity_Link_FFlowId":"81119477-4778-4d0b-94b9-1c43a1c1f768","FEntity_Link_FFlowLineId":"5","FEntity_Link_FRuleId":"PRD_PPBOM2PICKMTRL_NORMAL","FEntity_Link_FSTableName":"T_PRD_PPBOMENTRY","FEntity_Link_FSBillId":"100803","FEntity_Link_FSId":"112760","FEntity_Link_FBASETRANSFERQTYOLD":"100","FEntity_Link_FBASETRANSFERQTY":"100"}]}]}}
下面是返回的错误信息
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"","Message":"??1条分录物料???0202000095】???电源芯片???启用批号管理,批号字段录入的批号已作废或批号状态不正确","DIndex":0}],"SuccessEntitys":[],"SuccessMessages":[],"MsgCode":0},"Id":"","NeedReturnData":[{}]}}