indexes, R12, Table Structure

OE_ORDER_HEADERS_ALL: Column, Index & Few Tricks

OE_ORDER_HEADERS_ALL: The table used by Oracle Fusion to store the Sales Order Header level data. You would need to query OE_ORDER_HEADERS_ALL table if you have implemented O2C Cycle. So you can say that this is the equivalent of table DOO_HEADERS_ALL table in Oracle Fusion. In this post, we will discuss the columns and indexes present on this table but before that a few important points:

1. OE_ORDER_HEADERS_ALL is the parent table of OE_ORDER_LINES_ALL table which is used to store the Sales Order Line level Data in Oracle Fusion.
2. To connect the Sales Order Header and SO Line table, use the column HEADER_ID.
3. Watch out for the column VERSION_NUMBER as the same ORDER_NUMBER can have multiple versions.
4. Want to find out the Business Unit Name? Connect this table with HR_OPERATING_UNITS using Org_id.

So let’s discuss the table details now.

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

OE_ORDER_HEADERS_ALL: Table Structure

Column NameColumn TypeNullable
HEADER_IDNUMBERN
ORG_IDNUMBERY
ORDER_TYPE_IDNUMBERN
ORDER_NUMBERNUMBERN
VERSION_NUMBERNUMBERN
EXPIRATION_DATEDATEY
ORDER_SOURCE_IDNUMBERY
SOURCE_DOCUMENT_TYPE_IDNUMBERY
ORIG_SYS_DOCUMENT_REFVARCHAR2(50)Y
SOURCE_DOCUMENT_IDNUMBERY
ORDERED_DATEDATEY
REQUEST_DATEDATEY
PRICING_DATEDATEY
SHIPMENT_PRIORITY_CODEVARCHAR2(30)Y
DEMAND_CLASS_CODEVARCHAR2(30)Y
PRICE_LIST_IDNUMBERY
TAX_EXEMPT_FLAGVARCHAR2(1)Y
TAX_EXEMPT_NUMBERVARCHAR2(80)Y
TAX_EXEMPT_REASON_CODEVARCHAR2(30)Y
CONVERSION_RATENUMBERY
CONVERSION_TYPE_CODEVARCHAR2(30)Y
CONVERSION_RATE_DATEDATEY
PARTIAL_SHIPMENTS_ALLOWEDVARCHAR2(1)Y
SHIP_TOLERANCE_ABOVENUMBERY
SHIP_TOLERANCE_BELOWNUMBERY
TRANSACTIONAL_CURR_CODEVARCHAR2(15)Y
AGREEMENT_IDNUMBERY
TAX_POINT_CODEVARCHAR2(30)Y
CUST_PO_NUMBERVARCHAR2(50)Y
INVOICING_RULE_IDNUMBERY
ACCOUNTING_RULE_IDNUMBERY
PAYMENT_TERM_IDNUMBERY
SHIPPING_METHOD_CODEVARCHAR2(30)Y
FREIGHT_CARRIER_CODEVARCHAR2(30)Y
FOB_POINT_CODEVARCHAR2(30)Y
FREIGHT_TERMS_CODEVARCHAR2(30)Y
SOLD_FROM_ORG_IDNUMBERY
SOLD_TO_ORG_IDNUMBERY
SHIP_FROM_ORG_IDNUMBERY
SHIP_TO_ORG_IDNUMBERY
INVOICE_TO_ORG_IDNUMBERY
DELIVER_TO_ORG_IDNUMBERY
SOLD_TO_CONTACT_IDNUMBERY
SHIP_TO_CONTACT_IDNUMBERY
INVOICE_TO_CONTACT_IDNUMBERY
DELIVER_TO_CONTACT_IDNUMBERY
CREATION_DATEDATEN
CREATED_BYNUMBERN
LAST_UPDATED_BYNUMBERN
LAST_UPDATE_DATEDATEN
LAST_UPDATE_LOGINNUMBERY
PROGRAM_APPLICATION_IDNUMBERY
PROGRAM_IDNUMBERY
PROGRAM_UPDATE_DATEDATEY
REQUEST_IDNUMBERY
CONTEXTVARCHAR2(30)Y
ATTRIBUTE1 – ATTRIBUTE20VARCHAR2(240)Y
GLOBAL_ATTRIBUTE_CATEGORYVARCHAR2(30)Y
GLOBAL_ATTRIBUTE1 – GLOBAL_ATTRIBUTE20VARCHAR2(240)Y
CANCELLED_FLAGVARCHAR2(1)Y
OPEN_FLAGVARCHAR2(1)N
BOOKED_FLAGVARCHAR2(1)N
SALESREP_IDNUMBERY
RETURN_REASON_CODEVARCHAR2(30)Y
ORDER_DATE_TYPE_CODEVARCHAR2(30)Y
EARLIEST_SCHEDULE_LIMITNUMBERY
LATEST_SCHEDULE_LIMITNUMBERY
PAYMENT_TYPE_CODEVARCHAR2(30)Y
PAYMENT_AMOUNTNUMBERY
CHECK_NUMBERVARCHAR2(50)Y
CREDIT_CARD_CODEVARCHAR2(80)Y
CREDIT_CARD_HOLDER_NAMEVARCHAR2(80)Y
CREDIT_CARD_NUMBERVARCHAR2(80)Y
CREDIT_CARD_EXPIRATION_DATEDATEY
CREDIT_CARD_APPROVAL_CODEVARCHAR2(80)Y
SALES_CHANNEL_CODEVARCHAR2(30)Y
FIRST_ACK_CODEVARCHAR2(30)Y
FIRST_ACK_DATEDATEY
LAST_ACK_CODEVARCHAR2(30)Y
LAST_ACK_DATEDATEY
ORDER_CATEGORY_CODEVARCHAR2(30)N
CHANGE_SEQUENCEVARCHAR2(50)Y
DROP_SHIP_FLAGVARCHAR2(1)Y
CUSTOMER_PAYMENT_TERM_IDNUMBERY
SHIPPING_INSTRUCTIONSVARCHAR2(2000)Y
PACKING_INSTRUCTIONSVARCHAR2(2000)Y
TP_CONTEXTVARCHAR2(30)Y
TP_ATTRIBUTE1 – TP_ATTRIBUTE15VARCHAR2(240)Y
FLOW_STATUS_CODE+C113A104:C114AA104:C114VARCHAR2(30)Y
MARKETING_SOURCE_CODE_IDNUMBERY
CREDIT_CARD_APPROVAL_DATEDATEY
UPGRADED_FLAGVARCHAR2(1)Y
CUSTOMER_PREFERENCE_SET_CODEVARCHAR2(30)Y
BOOKED_DATEDATEY
LOCK_CONTROLNUMBERY
PRICE_REQUEST_CODEVARCHAR2(240)Y
BATCH_IDNUMBERY
XML_MESSAGE_IDNUMBERY
ACCOUNTING_RULE_DURATIONNUMBERY
BLANKET_NUMBERNUMBERY
SALES_DOCUMENT_TYPE_CODEVARCHAR2(30)Y
SOLD_TO_PHONE_IDNUMBERY
FULFILLMENT_SET_NAMEVARCHAR2(30)Y
LINE_SET_NAMEVARCHAR2(30)Y
DEFAULT_FULFILLMENT_SETVARCHAR2(1)Y
TRANSACTION_PHASE_CODEVARCHAR2(30)Y
SALES_DOCUMENT_NAMEVARCHAR2(240)Y
QUOTE_NUMBERNUMBERY
QUOTE_DATEDATEY
USER_STATUS_CODEVARCHAR2(30)Y
DRAFT_SUBMITTED_FLAGVARCHAR2(1)Y
SOURCE_DOCUMENT_VERSION_NUMBERNUMBERY
SOLD_TO_SITE_USE_IDNUMBERY
SUPPLIER_SIGNATUREVARCHAR2(240)Y
SUPPLIER_SIGNATURE_DATEDATEY
CUSTOMER_SIGNATUREVARCHAR2(240)Y
CUSTOMER_SIGNATURE_DATEDATEY
MINISITE_IDNUMBERY
END_CUSTOMER_IDNUMBERY
END_CUSTOMER_CONTACT_IDNUMBERY
END_CUSTOMER_SITE_USE_IDNUMBERY
IB_OWNERVARCHAR2(60)Y
IB_CURRENT_LOCATIONVARCHAR2(60)Y
IB_INSTALLED_AT_LOCATIONVARCHAR2(60)Y
ORDER_FIRMED_DATEDATEY
INST_IDNUMBERY
IB_INSTALLED_AT_LOCATION#1VARCHAR2(80)Y
IB_CURRENT_LOCATION#1VARCHAR2(80)Y
CSR_USER_IDNUMBERY
CANCEL_UNSHIPPED_LINESVARCHAR2(1)Y
OE_ORDER_HEADERS_ALL: Column Details

Indexes

Index NameTypeUniqueness?Column Name
OE_ORDER_HEADERS_N1NORMALNONUNIQUEBLANKET_NUMBER
OE_ORDER_HEADERS_N2NORMALNONUNIQUESOLD_TO_ORG_ID
OE_ORDER_HEADERS_N3NORMALNONUNIQUESHIP_TO_ORG_ID
OE_ORDER_HEADERS_N4NORMALNONUNIQUEINVOICE_TO_ORG_ID
OE_ORDER_HEADERS_N5NORMALNONUNIQUECUST_PO_NUMBER
OE_ORDER_HEADERS_N6NORMALNONUNIQUEBATCH_ID
OE_ORDER_HEADERS_N7NORMALNONUNIQUEORIG_SYS_DOCUMENT_REF
OE_ORDER_HEADERS_N7NORMALNONUNIQUEORDER_SOURCE_ID
OE_ORDER_HEADERS_N8NORMALNONUNIQUEOPEN_FLAG
OE_ORDER_HEADERS_N9NORMALNONUNIQUEQUOTE_NUMBER
OE_ORDER_HEADERS_N9NORMALNONUNIQUEORDER_TYPE_ID
OE_ORDER_HEADERS_U1NORMALUNIQUEHEADER_ID
OE_ORDER_HEADERS_U2NORMALUNIQUEORDER_NUMBER
OE_ORDER_HEADERS_U2NORMALUNIQUEORDER_TYPE_ID
OE_ORDER_HEADERS_U2NORMALUNIQUEVERSION_NUMBER
OE_ORDER_LINES6_ENDECA_N1NORMALNONUNIQUELAST_UPDATE_DATE
Index Details

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

Check out the Amazon Deals of the day based on your interests..

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 2

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?