Results for “oks_btl_pr_v”
16 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKS_BTL_PR_V is an APPS-owned database view within the Oracle E-Business Suite Service Contracts (OKS) module. It is documented as VALID in ETRM for both EBS 12.1.1 and 12.2.2. The view provides a reporting and integration layer over the billing transaction line data stored in the OKS_BILL_TXN_LINES table. Its principal purpose is to expose bill transaction line records—including monetary amounts and descriptive flexfield attributes—in a stable, query-friendly projection that can be consumed by reports, concurrent programs, and external interfaces without requiring direct access to the underlying transactional table.
The object name and title both reference the OKS_BTL_PR naming convention, in which "BTL" denotes bill transaction lines and "PR" indicates a projection view. In Oracle EBS, such views are commonly used to isolate consumers from schema changes on base tables while still surfacing the columns relevant to contract billing analysis. Because the view is owned by APPS, it is accessible to standard EBS responsibilities and to custom code executing with APPS credentials.
Underlying Base Objects
Per the documented ETRM metadata, OKS_BTL_PR_V is defined over a single referenced base object: the synonym OKS_BILL_TXN_LINES, which resolves to the underlying Service Contracts bill transaction lines table. The view text selects directly from OKS_BILL_TXN_LINES (aliased BTLB), applying only column-level projection with no joins, filters, or aggregation. This means the view is a straightforward row-preserving mapping: one row in OKS_BILL_TXN_LINES corresponds to one row in OKS_BTL_PR_V, and no data transformation beyond ROWID exposure occurs.
Because the view is a thin projection with no WHERE clause, it inherits the full volume of the base table. Queries should therefore be filtered on the exposed identifiers—such as BTN_ID, BSL_ID, or BCL_ID—to avoid full-table scans in production environments.
Key Columns
- ROW_ID — The ROWID of the underlying OKS_BILL_TXN_LINES row, useful for direct row identification.
- ID — The primary identifier of the bill transaction line record.
- OBJECT_VERSION_NUMBER — Optimistic locking column supporting concurrent update detection in the Service Contracts data model.
- BTN_ID / BSL_ID / BCL_ID — Foreign-key references to the parent bill transaction, billing schedule line, and billing contract line entities respectively.
- BILL_INSTANCE_NUMBER — The bill instance number associated with the transaction line.
- TRX_LINE_AMOUNT — The transaction line amount, representing the billed value for the line.
- TRX_LINE_TAX_AMOUNT — The tax amount applied to the transaction line. This is the column most frequently targeted by users searching under the term "trx_line_tax_amount," and it is the canonical source for line-level tax values in Service Contracts billing.
- ATTRIBUTE_CATEGORY and ATTRIBUTE1–ATTRIBUTE15 — The descriptive flexfield segments, exposing user-defined context and attribute values captured on the bill transaction line.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — Standard WHO audit columns recording row creation and modification metadata.
Common Use Cases and Queries
The most common use case is extracting transaction line amounts and tax amounts for contract billing reconciliation and tax reporting. The following query retrieves line and tax amounts for a given bill transaction:
SELECT bt.ID, bt.BTN_ID, bt.TRX_LINE_AMOUNT, bt.TRX_LINE_TAX_AMOUNT FROM APPS.OKS_BTL_PR_V bt WHERE bt.BTN_ID = :p_btn_id;- Reconciliation of billed versus taxed totals:
SELECT BTN_ID, SUM(TRX_LINE_AMOUNT), SUM(TRX_LINE_TAX_AMOUNT) FROM APPS.OKS_BTL_PR_V GROUP BY BTN_ID; - Audit-trail analysis using the WHO columns:
SELECT ID, BILL_INSTANCE_NUMBER, TRX_LINE_TAX_AMOUNT, LAST_UPDATED_BY, LAST_UPDATE_DATE FROM APPS.OKS_BTL_PR_V WHERE CREATION_DATE >= :p_from_date;
Because the view exposes the full attribute flexfield set, it is also suitable for reporting on descriptive flexfield values captured during contract billing. All queries should be constrained by BTN_ID, BSL_ID, BCL_ID, or date ranges to limit the rows returned from the underlying base table.
-
View: OKS_BTL_PR_V 12.2.2
View for table OKS_BTL_PR
-
View: OKS_BTL_PR_V 12.1.1
View for table OKS_BTL_PR
-
VIEW: APPS.OKS_BTL_PR_V 12.1.1
-
VIEW: APPS.OKS_BTL_PR_V 12.2.2
-
12.2.2 FND Design Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.1.1 FND Design Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
eTRM - OKS Tables and Views 12.2.2
-
eTRM - OKS Tables and Views 12.1.1
Stores the template set information.
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
eTRM - OKS Tables and Views 12.2.2
-
eTRM - OKS Tables and Views 12.1.1
Stores the template set information.