/* Formatted on 2018/3/14 23:40:47 (QP5 v5.256.13226.35538) */
SELECT DISTINCT MSI.SEGMENT1 || ‘,‘ 物料编码
, MSI.DESCRIPTION 物料名称
, MSI.UNIT_WEIGHT 毛重
, MSI.WEIGHT_UOM_CODE 毛重单位
, MSI.UNIT_VOLUME 净重
, MSI.VOLUME_UOM_CODE 净重单位
FROM MTL_SYSTEM_ITEMS_FVL MSI
WHERE 1 = 1
AND MSI.INVENTORY_ITEM_STATUS_CODE = ‘Active‘
-- AND MSI.SEGMENT1 LIKE ‘82%‘ --物料编码
--and (MSI.UNIT_WEIGHT is null or MSI.UNIT_VOLUME is null) order by 1