You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
917 B
Plaintext

Select HU.SOURCE_REF1 Order_No,HU.SOURCE_REF2 Release_No ,HU.SOURCE_REF3 Sequence_No, HU.HANDLING_UNIT_ID,HU.SOURCE_REF_PART_QTY, PHU.MAX_QUANTITY_CAPACITY, SOO.Part_No,Inventory_Part_API.Get_Description(SOO.contract,SOO.part_no) Description, SOO.PREFERRED_RESOURCE_ID Machine
From HANDLING_UNIT_EXTENDED HU inner join SHOP_ORDER_OPERATION_JOIN SOO on HU.SOURCE_REF1=SOO.Order_No and HU.SOURCE_REF2=SOO.Release_No and HU.SOURCE_REF3=SOO.Sequence_No inner join Shop_Ord SO on HU.SOURCE_REF1=SO.Order_No and HU.SOURCE_REF2=SO.Release_No and HU.SOURCE_REF3=SO.Sequence_No inner join PART_HANDLING_UNIT PHU on PHU.HANDLING_UNIT_TYPE_ID=SO.PACKING_INSTRUCTION_ID and PHU.PART_NO=SO.Part_No
where HU.SOURCE_REF1='&Order_No' and HU.SOURCE_REF2 like nvl('&Release_No','%') and HU.SOURCE_REF3 like nvl('&Sequence_No','%') and SOO.OPERATION_NO='10'
Order by HU.SOURCE_REF1,HU.SOURCE_REF2,HU.SOURCE_REF3,HU.HANDLING_UNIT_ID