Oracle ERP standard address string method

Source: Internet
Author: User

 

Oracle ERP standard address string method

 

1. Set ou

1. from the menu edit-> preferences-> profiles, you can use MO: operating unit to query ou (assuming the value is vision operations) 2. you can use the following SQL statement to query the corresponding ou ID.
SELECT ORGANIZATION_ID
  FROM HR_OPERATING_UNITS
 WHERE NAME = 'Vision Operations';
3. If the resulting ou ID is 204, use the following PL/SQL statements to set the client environment variable:
BEGIN
  DBMS_APPLICATION_INFO.SET_CLIENT_INFO(204);
END;

Ii. Standard address SQL

Select arp_addr_pkg.format_address (RA. address_style,
RA. address1,
RA. address2,
RA. address3,
RA. address4,
RA. City,
RA. County,
RA. State,
RA. Province,
RA. postal_code,
Terr. territory_short_name) concatenated_address
From ra_addresses Ra
, Fnd_territories_vl terr
Where Ra. address_id = p_address_id -- the parameter is the specified address ID.
And Ra. Country = terr. territory_code (+ );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.