Professional Documents
Culture Documents
license_plate_number lpn,
xpi.item_date_code date_code,
ood.organization_id organization_id,
msi.inventory_item_id inventory_item_id
from xxsan_pts_interface xpi,
org_organization_definitions ood,
mtl_system_items_b msi
where xpi.organization = ood.organization_code
and xpi.item_number = msi.segment1
and msi.organization_id = ood.organization_id
and exists (select 1 from wms_license_plate_numbers wlpn where
wlpn.license_plate_number = xpi.license_plate_number and wlpn.lpn_context = 1)
and ood.organization_id =g_organization_id
and msi.inventory_item_id = g_inventory_item_id) xpi2