关于sap b1系统的oitw和oitm的onhand
sap b1的数据库如果通过update修改oitw表中onhand的数据,oitm表中的onhand是不会关联变化的,所以如果库存错误,同时因为种种原因不能通过盘点或收发货来平衡,采取后台修改数据库数据的方法修改时,要注意,在修改过oitw表后一定也要修改oitm表的onhand数据。当然,应该也可以在oitw表上create trigger for update(本人未测试过):
Create Trigger oitw2oitm_onhand
on oitw for update
as
update oitm set onhand=Sum(b.onhand) from oitm a, oitw b where a.itemcode=b.itemcode
转载于:https://blog.51cto.com/songqingtian/519060
post SAP-Garson
原文链接:https://blog.csdn.net/weixin_34014277/article/details/92360062文章来自于网络,如果侵犯了您的权益,请联系站长删除!