SELECT DISTINCT
aps.vendor_name,
aps.segment1 supplier_number,
assa.org_id,
assa.vendor_site_code,
(
SELECT
hcp.email_address
FROM
hz_party_sites hps,
hz_contact_points hcp
WHERE
1 = 1
AND hcp.owner_table_name = 'HZ_PARTY_SITES'
AND hps.party_id = aps.party_id
AND hcp.owner_table_id = hps.party_site_id
AND hcp.contact_point_type = 'EMAIL'
AND ROWNUM <= 1
) email_id,
assa.address_line1,
assa.address_line2,
assa.address_line3,
assa.city,
assa.state,
assa.zip,
assa.country
FROM
apps.ap_suppliers aps,
apps.ap_supplier_sites_all assa
WHERE
1 = 1
AND aps.vendor_id = assa.vendor_id
AND aps.segment1 = '28015';
aps.vendor_name,
aps.segment1 supplier_number,
assa.org_id,
assa.vendor_site_code,
(
SELECT
hcp.email_address
FROM
hz_party_sites hps,
hz_contact_points hcp
WHERE
1 = 1
AND hcp.owner_table_name = 'HZ_PARTY_SITES'
AND hps.party_id = aps.party_id
AND hcp.owner_table_id = hps.party_site_id
AND hcp.contact_point_type = 'EMAIL'
AND ROWNUM <= 1
) email_id,
assa.address_line1,
assa.address_line2,
assa.address_line3,
assa.city,
assa.state,
assa.zip,
assa.country
FROM
apps.ap_suppliers aps,
apps.ap_supplier_sites_all assa
WHERE
1 = 1
AND aps.vendor_id = assa.vendor_id
AND aps.segment1 = '28015';
Hello Sandeep. I have read that the address columns in AP_SUPPLIER_SITES_ALL table are obsolete in R12. Do you have a query that will work in R12?
ReplyDelete