SELECT DISTINCT D.BUSINESS_UNIT , D.OUTER_MOST_CNTR_ID FROM PS_SHIP_CNTR_INV B , PS_SHIP_CNTR_HDR D , PS_IN_DEMAND A , PS_ISSUE_HDR_INV E WHERE A.IN_FULFILL_STATE >= '50' AND B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.DEMAND_SOURCE = A.DEMAND_SOURCE AND B.SOURCE_BUS_UNIT = A.SOURCE_BUS_UNIT AND B.ORDER_NO = A.ORDER_NO AND B.ORDER_INT_LINE_NO = A.ORDER_INT_LINE_NO AND B.SCHED_LINE_NBR = A.SCHED_LINE_NBR AND B.INV_ITEM_ID = A.INV_ITEM_ID AND B.DEMAND_LINE_NO = A.DEMAND_LINE_NO AND B.BUSINESS_UNIT = D.BUSINESS_UNIT AND D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.SHIP_ID = ' ' AND B.SHIP_CNTR_ID = D.SHIP_CNTR_ID AND A.BUSINESS_UNIT = E.BUSINESS_UNIT AND A.DEMAND_SOURCE = E.DEMAND_SOURCE AND A.SOURCE_BUS_UNIT = E.SOURCE_BUS_UNIT AND A.ORDER_NO = E.ORDER_NO AND E.FULFILL_FLAG = 'Y'
|