R12 Intercompany Vendors

//R12 Intercompany Vendors

select hou.name OU
, pv.segment1 VendorNumber
, pv.vendor_name
, pv.vendor_type_lookup_code
, pv.created_by
, pv.creation_date
, pv.end_date_active
, vs.vendor_site_code
, vs.INACTIVE_DATE
FROM po_vendors pv
, AP_SUPPLIER_SITES_ALL vs
, hr_all_organization_units hou
, po_vendor_contacts pvc
where pv.vendor_id = vs.vendor_id
and vs.org_id = hou.organization_id
and vs.vendor_site_id = pvc.vendor_site_id(+)
–and pv.vendor_name like ‘KESSLER%’
–and pv.segment1 in (5016016,5003121,5016168,5015726)
and hou.organization_id in (263) –5016016,5003121,5016168,5015726
–and pv.vendor_type_lookup_code IN (‘INTERCOMPANY’)
order by hou.name, pv.vendor_name, vs.vendor_site_code;

你可能感兴趣的:(Oracle,EBS)