DBA Data[Home] [Help]

VIEW: APPS.IBY_XML_HR_ADDR_1_0_V

Source

View Text - Preformatted

SELECT XMLConcat( XMLElement("AddressInternalID", hr_loc.location_id), XMLElement("AddressLine1", hr_loc.address_line_1), XMLElement("AddressLine2", hr_loc.address_line_2), XMLElement("AddressLine3", hr_loc.address_line_3), XMLElement("City", hr_loc.town_or_city), XMLElement("County", decode(hr_loc.country, 'CA', null, hr_loc.region_1)), XMLElement("State", decode(hr_loc.country, 'CA', null, hr_loc.region_2)), XMLElement("Country", hr_loc.country), XMLElement("ISO3DigitCountry", te.iso_territory_code), XMLElement("CountryName", te.territory_short_name), XMLElement("PostalCode", hr_loc.postal_code), XMLElement("PreFormattedConcatenatedAddress", IBY_FD_EXTRACT_GEN_PVT.format_hr_address(hr_loc.location_id)), XMLElement("PreFormattedMailingAddress", IBY_FD_EXTRACT_GEN_PVT.format_hr_address(hr_loc.location_id, 'POSTAL_ADDR')), XMLElement("AddressName", hr_loc.location_code) ), hr_loc.location_id FROM hr_locations_all hr_loc, fnd_territories_vl te WHERE hr_loc.country = te.territory_code(+)
View Text - HTML Formatted

SELECT XMLCONCAT( XMLELEMENT("ADDRESSINTERNALID"
, HR_LOC.LOCATION_ID)
, XMLELEMENT("ADDRESSLINE1"
, HR_LOC.ADDRESS_LINE_1)
, XMLELEMENT("ADDRESSLINE2"
, HR_LOC.ADDRESS_LINE_2)
, XMLELEMENT("ADDRESSLINE3"
, HR_LOC.ADDRESS_LINE_3)
, XMLELEMENT("CITY"
, HR_LOC.TOWN_OR_CITY)
, XMLELEMENT("COUNTY"
, DECODE(HR_LOC.COUNTRY
, 'CA'
, NULL
, HR_LOC.REGION_1))
, XMLELEMENT("STATE"
, DECODE(HR_LOC.COUNTRY
, 'CA'
, NULL
, HR_LOC.REGION_2))
, XMLELEMENT("COUNTRY"
, HR_LOC.COUNTRY)
, XMLELEMENT("ISO3DIGITCOUNTRY"
, TE.ISO_TERRITORY_CODE)
, XMLELEMENT("COUNTRYNAME"
, TE.TERRITORY_SHORT_NAME)
, XMLELEMENT("POSTALCODE"
, HR_LOC.POSTAL_CODE)
, XMLELEMENT("PREFORMATTEDCONCATENATEDADDRESS"
, IBY_FD_EXTRACT_GEN_PVT.FORMAT_HR_ADDRESS(HR_LOC.LOCATION_ID))
, XMLELEMENT("PREFORMATTEDMAILINGADDRESS"
, IBY_FD_EXTRACT_GEN_PVT.FORMAT_HR_ADDRESS(HR_LOC.LOCATION_ID
, 'POSTAL_ADDR'))
, XMLELEMENT("ADDRESSNAME"
, HR_LOC.LOCATION_CODE) )
, HR_LOC.LOCATION_ID
FROM HR_LOCATIONS_ALL HR_LOC
, FND_TERRITORIES_VL TE
WHERE HR_LOC.COUNTRY = TE.TERRITORY_CODE(+)