Skip to content

Oracle Bytes

Sharing what I learnt!!

  • Home
  • Privacy Policy
  • Contact
  • Blog
  • Terms & Conditions
  • About Us
  • Affiliate Disclosure
  • ₹0.00 0 items
BI Report, Business Intelligence Report,, Oracle Fusion, Oracle Fusion Finance, sales Order

Sales Order Table Linkage in Oracle Fusion

August 14, 2020November 7, 2022 Mohit Saxena

Implemented O2C cycle? In this post I’ll mention the Sales Order Table Linkage with various tables to find important information of the Sales Order. Alias I have given to the table is dha i.e. if I have to connect any column of doo_headers_all table, join statement will look like dha.<column_name>

Entity NameTable NameJoin Condition(s)Select column
Customer Namehz_parties hp dha.SOLD_TO_PARTY_ID = hp.party_id(+)hp.party_name
sales Persondoo_sales_credits sales,
hz_parties party1,msc_sales_credit_types typ
sales.SALESPERSON_ID = party1.party_id AND sales.header_id = dha.header_id AND typ.SALES_CREDIT_TYPE_ID = sales.SALES_CREDIT_TYPE_ID AND typ.name = ‘Quota Sales Credit’party1.party_name
Customer Account Namedoo_order_addresses  address  , hz_cust_accounts  acct address.header_id(+) = dha.header_id AND address.ADDRESS_USE_TYPE(+) = ‘BILL_TO’ AND address.cust_acct_id = acct.cust_account_id(+)acct.account_name 
Customer Account Numberdoo_order_addresses  address  , hz_cust_accounts  acct address.header_id(+) = dha.header_id AND address.ADDRESS_USE_TYPE(+) = ‘BILL_TO’ AND address.cust_acct_id = acct.cust_account_id(+)acct.account_number
ship to Customerdoo_order_addresses ship_address , hz_parties ship_partyAND ship_address.header_id(+) = dha.header_id AND ship_address.ADDRESS_USE_TYPE(+) = ‘SHIP_TO’ AND ship_party.party_id(+) = ship_address.party_idship_party.party_name
ship to addressdoo_order_addresses ship_address , hz_parties ship_party , hz_party_sites party_site , hz_locations ship_to_locAND ship_address.header_id(+) = dha.header_id AND ship_address.ADDRESS_USE_TYPE(+) = ‘SHIP_TO’ AND ship_party.party_id(+) = ship_address.party_id AND party_site.party_site_id(+) = ship_address.party_site_id AND ship_to_loc.location_id(+) = party_site.location_idship_to_loc.ADDRESS1 ||’ ‘||ship_to_loc.ADDRESS2 ||’ ‘ ||ship_to_loc.city ||’ ‘||ship_to_loc.state  
Order Typefnd_lookup_values valAND val.lookup_type = ‘ORA_DOO_ORDER_TYPES’ AND val.lookup_code = dha.order_type_codeval.meaning
AR Invoice Line Detailra_customer_trx_lines_all rctlarctla.sales_order = dha.order_numberrctla.*
Sales Order Table Linkage

By the way, Here ( India) or Here ( Other Geographies) are few UNCONVENTIONAL tricks which I have learnt to improve the performance of BI reports or SQL queries. Try them only when nothing else works.. kind of SOS...
https://www.amazon.in/gp/product/B093CC1CLD?ie=UTF8&tag=oraclebytes-21&camp=3638&linkCode=xm2&creativeASIN=B093CC1CLD

Related Posts:
Oracle Fusion Sales Order Table – DOO_HEADERS_ALL
Sales Order Query in Oracle Fusion
Work Order – Sales Order Connecting Query

Feedback:
Hope the article helped you. If it did, please rate the post. In case it didn’t, do leave a comment to let us know what did we miss.

Reference:
support.oracle.com

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 3

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Share this:

  • Facebook
  • X

Like this:

Like Loading...

Related

Tagged Customer Account Name, Customer Account Number, Customer Name, Fusion Training, Oracle Fusion Online Training, Oracle Fusion Training, Oracle Training, Order Type, sales Person, ship to address, ship to Customer

Post navigation

Previous postOracle Fusion Sales Order Table – DOO_HEADERS_ALL
Next postColumn Details of inv_org_parameters Table

Categories

Subscribe

Like the content of this website and would like to be the first to know? Then please subscribe.

Join 10 other subscribers
Proudly powered by WordPress | Theme: Dara by Automattic.
%d