首页 > 其他 > 详细

工单入库超过工单数量的处理

时间:2014-07-18 16:28:01      阅读:619      评论:0      收藏:0      [点我收藏+]

*物料凭证 5004181692
*特殊用途分类帐 1027276368
*统驭凭证 1013290872
*物料帐分类帐 1001303070

 

CKMC


*物料 140009879
*物料评估号 100907514


*物料凭证 5004181692
UPDATE MSEG SET MENGE = ‘0‘ ERFMG = ‘0‘ BSTMG = ‘0‘ WHERE MBLNR = ‘5004181692‘.
UPDATE MLAUF SET MENGE = 0 BSTMG = 0 WHERE GJAHR = ‘2014‘ AND BELNR = ‘5004181692‘.
UPDATE aufm SET MENGE = ‘0‘ ERFMG = ‘0‘ WHERE MBLNR = ‘5004181692‘ and mjahr = ‘2014‘.
*工单号 ‘000010286028‘ .
UPDATE AFPO SET WEMNG = ‘0‘ WHERE AUFNR = ‘000010286028‘ . "收货数量
UPDATE COSL SET LST007 = 0 WHERE OBJNR = ‘OR000010286028‘ AND WRTTP = ‘04‘ AND GJAHR = ‘2014‘.
*统驭凭证 1013290872
UPDATE COEPL SET LSTBTR = 0 LSBBTR = 0 WHERE BELNR = ‘1013290872‘ AND GJAHR = ‘2014‘ .

* 物料帐分类帐评估号 从CKMLHD中查出
DELETE FROM MLCD WHERE KALNR = ‘000100907514‘ AND BDATJ = ‘2014‘ AND POPER = ‘007‘.
DELETE FROM CKMLPP WHERE KALNR = ‘000100907514‘ AND BDATJ = ‘2014‘ AND POPER = ‘007‘.
DELETE FROM CKMLCR WHERE KALNR = ‘000100907514‘ AND BDATJ = ‘2014‘ AND POPER = ‘007‘.

*物料帐分类帐
UPDATE MLPP SET LBKUM = 0 WHERE BELNR = ‘1001303070‘ AND BDATJ = ‘2014‘ AND POPER = ‘007‘.
UPDATE MLPPF SET MENGE = 0 WHERE BELNR = ‘1001303070‘ AND BDATJ = ‘2014‘ AND POPER = ‘007‘.

* "特殊用途分类帐
UPDATE GLFUNCA SET MSL = 0 WHERE DOCNR = ‘1027276368‘ and ryear = ‘2014‘ AND POPER = ‘007‘.

工单入库超过工单数量的处理,布布扣,bubuko.com

工单入库超过工单数量的处理

原文:http://www.cnblogs.com/twttafku/p/3851012.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!