Oracle AR Remit to address query

Oracle AR Remit to address query
Query to get all remit to addresses in the system
Oracle apps receivables remit to addresses
Oracle EBS R12 remit to address query

  SELECT terr.territory_short_name country,
         hr.name                 operating_unit,
         loc.address1,
         acctsites.cust_acct_site_id,
         acctsites.party_site_id,
         acctsites.org_id        org_id,
         loc.country             country_code,
         loc.location_id,
         hz_format_pub.format_address (loc.location_id,
                                       NULL,
                                       NULL,
                                       ',',
                                       NULL,
                                       NULL,
                                       NULL,
                                       NULL)
            formatted_address
    FROM hz_party_sites   sites,
         hz_cust_acct_sites_all acctsites,
         hz_locations     loc,
         hr_operating_units hr,
         fnd_territories_vl terr
   WHERE     sites.party_id = -1
         AND acctsites.cust_account_id = -1
         AND sites.party_site_id = acctsites.party_site_id
         AND sites.location_id = loc.location_id
         AND hr.organization_id = acctsites.org_id
         AND terr.territory_code = loc.country
         AND acctsites.status = 'A'
ORDER BY country, operating_unit
Related posts: Upload your own post and refer it anywhere anytime:

Leave a Reply