Drill Down Lot Number
Hi All,
Working in OPM Version 12.1.3
Please i need some help with below query to drill down with lot number, to know which lot number is used for this ingredient till reach RAW
select ood.organization_code, gbh.batch_no, gbh.batch_id, gmd.line_no,
gmd.material_detail_id, gmd.line_type
,(select mtln.lot_number from mtl_transaction_lot_numbers mtln
where mmt.transaction_id = mtln.transaction_id
and mmt.organization_id = mtln.organization_id
) lot_number
,msi.segment1 item_no
,msi.description item_desc
,msi.item_type
,((case when transaction_uom = 'EAC' then (mmt.primary_quantity *nvl(pack.pack_code,1)) else mmt.primary_quantity end)) as primary_quantity