(FAQ)MaterialBaseException: 物料分类 null (null) 不是叶子结点的分...
406次浏览
编辑于2016年04月19日 11:28:02
在同步bom的时候有时要先更新一下物料信息,更新的时候先用 if(getMaterialGroupInfo(ctx,getMtrlGroupNO(sFNUMBER)).isIsLeaf())判断了物料对应的分类是叶子结点,然后更新物料,但会报错:com.kingdee.eas.basedata.master.material.MaterialBaseException: 物料分类 null (null) 不是叶子结点的分类,该分类不允许有物料
然后我在更新物料的时候不去设置material.setMaterialGroup()字段,也会报:com.kingdee.eas.basedata.master.material.MaterialBaseException: 物料分类 null (null) 不是叶子结点的分类,该分类不允许有物料,麻烦帮看看,谢谢:)
推荐阅读