Scrap 情况

Scrap 为副产物
 
在生产过程中不被生产报告记录,因此没有卷号存在,所以无法通过生产入库方式录入库存,所以使用手动方式入库(SCRAP入库登记)。
 
SCRAP入库时,因卷号不存在,统一为"*",仓库为"P-Z", 库位为“99999”。
 
SCRAP也存在品目(ITEM_CD):
 SELECT  DISTINCT A.ITEM_CD AS ITEM_CD,
   A.ITEM_NM AS ITEM_NM,
   A.SPEC AS SPEC,
   A.INV_UNIT AS INV_UNIT,
   B.ITEM_ACCNT AS ITEM_ACCNT,
   B.SUPY_TYPE AS SUPY_TYPE,
   B.PUB_FLAG AS PUB_FLAG,
   B.LOT_REQ AS LOT_REQ,
   B.ORG_CD  AS ORG_CD
FROM BAA010T A (NOLOCK), BAA040T B (NOLOCK)
WHERE A.ITEM_CD = B.ITEM_CD AND
 (B.ITEM_ACCNT = '10' AND B.ITEM_CD LIKE 'P-%') AND
 B.ORG_CD = '11'
ORDER BY A.ITEM_CD
 
入库登记后保存SDA010T, MHA050T
 
SDA010T.TRANS_MODE       = "2"
SDA010T.TRANS_PLCE_TYPE  = "4"

本文出自 “槠树下” 博客,谢绝转载!

你可能感兴趣的:(职场,ERP,休闲)