Search Results so_order_approvals
Overview
The SO_ORDER_APPROVALS table is a core data object within the Oracle E-Business Suite (EBS) Order Entry (OE) module, specifically for versions 12.1.1 and 12.2.2. As its description indicates, it is the central repository for storing order-level approval records. This table is fundamental to the order management workflow, capturing the complete audit trail of approval actions, decisions, and approvers associated with sales order headers. Its role is to enforce business rules, maintain compliance, and provide transparency into the order authorization process by linking approval transactions directly to the sales order, its type, the customer, and the involved users.
Key Information Stored
The table's structure is defined by its primary and foreign key relationships, which highlight the critical data points it stores. Each record is uniquely identified by the ORDER_APPROVAL_ID (primary key) and is also uniquely scoped to a specific order via the HEADER_ID (part of a unique key). Essential foreign key columns define the context of each approval: HEADER_ID links to the SO_HEADERS_ALL table to associate the approval with a specific sales order. CUSTOMER_ID and ORDER_TYPE_ID reference the RA_CUSTOMERS and SO_ORDER_TYPES_115_ALL tables, respectively, storing the business context (customer and order type) that likely triggered the approval rule. The ACTION_ID and RESULT_ID columns link to the SO_ACTIONS and SO_RESULTS_B tables, documenting the specific approval action taken (e.g., "Approve", "Reject") and its outcome. Finally, the APPROVER_ID column, referencing FND_USER, records the EBS user who performed the approval action.
Common Use Cases and Queries
Primary use cases revolve around auditing, reporting, and workflow monitoring. Common queries include generating an approval history report for a specific order or a set of orders within a date range, identifying orders pending approval by analyzing the latest RESULT_ID for a HEADER_ID, and investigating approval patterns by customer or order type. A typical SQL pattern to retrieve a basic approval audit trail would join SO_ORDER_APPROVALS with SO_HEADERS_ALL, FND_USER, and SO_RESULTS_B.
SELECT oha.order_number,
fu.user_name approver,
sr.name result,
soa.creation_date
FROM oe.so_order_approvals soa,
oe.so_headers_all oha,
applsys.fnd_user fu,
oe.so_results_b sr
WHERE soa.header_id = oha.header_id
AND soa.approver_id = fu.user_id
AND soa.result_id = sr.result_id
AND oha.order_number = '<ORDER_NUMBER>'
ORDER BY soa.creation_date;
Related Objects
The table maintains documented foreign key relationships with several key EBS objects, as per the provided metadata. These relationships are critical for data integrity and join logic:
- SO_HEADERS_ALL: Joined via SO_ORDER_APPROVALS.HEADER_ID. This is the primary relationship linking an approval record to its sales order.
- RA_CUSTOMERS: Joined via SO_ORDER_APPROVALS.CUSTOMER_ID. Provides customer information for the order being approved.
- SO_ORDER_TYPES_115_ALL: Joined via SO_ORDER_APPROVALS.ORDER_TYPE_ID. Provides the order type context for the approval rule.
- SO_ACTIONS: Joined via SO_ORDER_APPROVALS.ACTION_ID. Defines the type of approval action performed.
- SO_RESULTS_B: Joined via SO_ORDER_APPROVALS.RESULT_ID. Defines the result (e.g., Approved, Rejected) of the approval action.
- FND_USER: Joined via SO_ORDER_APPROVALS.APPROVER_ID. Identifies the EBS user account of the approver.
-
Table: SO_ORDER_APPROVALS
12.2.2
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_ORDER_APPROVALS, object_name:SO_ORDER_APPROVALS, status:VALID, product: OE - Order Entry , description: Order-level approvals , implementation_dba_data: OE.SO_ORDER_APPROVALS ,
-
Table: SO_ORDER_APPROVALS
12.1.1
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_ORDER_APPROVALS, object_name:SO_ORDER_APPROVALS, status:VALID, product: OE - Order Entry , description: Order-level approvals , implementation_dba_data: OE.SO_ORDER_APPROVALS ,
-
Table: SO_RESULTS_B
12.1.1
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_RESULTS_B, object_name:SO_RESULTS_B, status:VALID, product: OE - Order Entry , description: Cycle action results for order cycles , implementation_dba_data: OE.SO_RESULTS_B ,
-
Table: SO_RESULTS_B
12.2.2
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_RESULTS_B, object_name:SO_RESULTS_B, status:VALID, product: OE - Order Entry , description: Cycle action results for order cycles , implementation_dba_data: OE.SO_RESULTS_B ,
-
Table: SO_ORDER_TYPES_115_ALL
12.2.2
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_ORDER_TYPES_115_ALL, object_name:SO_ORDER_TYPES_115_ALL, status:VALID, product: OE - Order Entry , description: Order types , implementation_dba_data: OE.SO_ORDER_TYPES_115_ALL ,
-
Table: SO_ACTIONS
12.2.2
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_ACTIONS, object_name:SO_ACTIONS, status:VALID, product: OE - Order Entry , description: Cycle actions for order cycles , implementation_dba_data: OE.SO_ACTIONS ,
-
View: OEBV_ORDER_APPROVALS
12.1.1
product: OE - Order Entry , description: - Retrofitted , implementation_dba_data: Not implemented in this database ,
-
View: OEBV_ORDER_APPROVALS
12.2.2
product: OE - Order Entry , description: - Retrofitted , implementation_dba_data: Not implemented in this database ,
-
Table: SO_ORDER_TYPES_115_ALL
12.1.1
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_ORDER_TYPES_115_ALL, object_name:SO_ORDER_TYPES_115_ALL, status:VALID, product: OE - Order Entry , description: Order types , implementation_dba_data: OE.SO_ORDER_TYPES_115_ALL ,
-
View: OEFV_ORDER_APPROVALS
12.1.1
product: OE - Order Entry , description: - Retrofitted , implementation_dba_data: Not implemented in this database ,
-
Table: SO_ACTIONS
12.1.1
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_ACTIONS, object_name:SO_ACTIONS, status:VALID, product: OE - Order Entry , description: Cycle actions for order cycles , implementation_dba_data: OE.SO_ACTIONS ,
-
View: OEFV_ORDER_APPROVALS
12.2.2
product: OE - Order Entry , description: - Retrofitted , implementation_dba_data: Not implemented in this database ,
-
Table: SO_HEADERS_ALL
12.1.1
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_HEADERS_ALL, object_name:SO_HEADERS_ALL, status:VALID, product: OE - Order Entry , description: Order header information , implementation_dba_data: OE.SO_HEADERS_ALL ,
-
Table: SO_HEADERS_ALL
12.2.2
owner:OE, object_type:TABLE, fnd_design_data:OE.SO_HEADERS_ALL, object_name:SO_HEADERS_ALL, status:VALID, product: OE - Order Entry , description: Order header information , implementation_dba_data: OE.SO_HEADERS_ALL ,