Results for “top_line_id”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKS_BILLING_HISTORY_V is a read-only database view owned by the APPS schema in Oracle E-Business Suite Release 12.1.1 and 12.2.2. It is delivered as part of the OKS (Service Contracts) product family and is documented in ETRM with a status of VALID. The view is used in the Service Contracts Spredtable to display Billing History for contract lines. It consolidates billing transaction information and billed quantity values into a single, denormalized result set suitable for reporting and for consumption by the Spredtable UI.
The view is a UNION ALL of three query blocks, each returning an identical column signature. This design allows the caller to retrieve a consistent row shape regardless of whether the billing event pertains to a header-level billing control line, a sub-line billing transaction, or a sub-line without an associated transaction. Because the view resolves lookup meanings and currency codes internally, it is well suited to ad hoc reporting where the consumer does not wish to join to FND_LOOKUPS or RA_CUSTOMER_TRX tables directly.
Underlying Base Objects
The view text references the following base objects: FND_LOOKUPS, OKS_BILL_CONT_LINES, OKS_BILL_TXN_LINES, OKS_BILL_SUB_LINES, and OKS_BILL_SUB_LINE_DTLS. The 12.2.2 ETRM metadata records these as SYNONYM objects in the OKS schema, along with additional referenced objects that the view text uses indirectly, including FND_GLOBAL, OE_ORDER_HEADERS_ALL, OKC_K_HEADERS_B, OKC_K_LINES_B, OKC_K_REL_OBJS, RA_CUSTOMER_TRX_ALL, and RA_CUSTOMER_TRX_LINES_ALL.
OKS_BILL_CONT_LINES (BCL) supplies the billing control record, including the billing action, currency, and billed-from/billed-to dates. OKS_BILL_TXN_LINES (BTL) supplies the transaction number, transaction date, line amount, and tax amount. OKS_BILL_SUB_LINES (BSL) and OKS_BILL_SUB_LINE_DTLS (BSD) supply sub-line level quantity detail, including RESULT, FIXED, ACTUAL, DEFAULT_DEFAULT, and ADJUSTMENT_MINIMUM quantities. FND_LOOKUPS resolves the billing action to its descriptive meaning via the OKS_BILL_ACTIONS lookup type.
Key Columns
- TRX_TYPE — the lookup meaning of the billing action, resolved from FND_LOOKUPS.
- TRX_NUMBER, TRX_DATE — transaction number and date sourced from OKS_BILL_TXN_LINES; NULL in the third UNION block.
- DATE_BILLED_FROM, DATE_BILLED_TO — billing period boundaries from the control line (or sub-line in the third block).
- AMOUNT, TAX_AMOUNT — line amount and tax amount; TAX_AMOUNT is NULL in the third block.
- CURRENCY_CODE — currency of the billing control line.
- QUANTITY_BILLED, FIXED_QTY, ACTUAL_QTY, DEFAULT_QTY, MINIMUM_QTY — quantity metrics at sub-line detail level. These are NULL for the first block and populated only from OKS_BILL_SUB_LINE_DTLS in the second block. ACTUAL_QTY maps to BSD.ACTUAL.
- BCL_ID, TOP_LINE_ID, BSL_ID, SUB_LINE_ID — surrogate keys linking rows back to the billing control line and, where applicable, the sub-line.
Common Use Cases and Queries
A frequent requirement is to fetch the actual billed quantity along with the transaction context for a given contract line. The search term "actual_qty" maps directly to the ACTUAL_QTY column, which is populated only from the second UNION block:
- Filtering by TRX_NUMBER to obtain quantity breakdown for a specific transaction.
- Aggregating AMOUNT and ACTUAL_QTY by CURRENCY_CODE and TRX_TYPE for billing period analysis.
- Driving Spredtable population by joining BCL_ID or TOP_LINE_ID back to the contract structure.
Sample query:
SELECT TRX_TYPE, TRX_NUMBER, TRX_DATE, ACTUAL_QTY, AMOUNT, CURRENCY_CODE FROM OKS_BILLING_HISTORY_V WHERE ACTUAL_QTY IS NOT NULL AND TRX_DATE BETWEEN :p_from AND :p_to;
Consumers should note that rows without sub-line detail will return NULL for all quantity columns; a filter such as ACTUAL_QTY IS NOT NULL isolates the quantity-bearing rows produced by the second query block.
-
View: OKS_BILLING_HISTORY_V 12.1.1
View used in Spredtable to display Billing History
APPS.OKS_BILLING_HISTORY_V·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ OE_ORDER_HEADERS_ALL·Explore OKS module →
-
View: OKS_BILLING_HISTORY_V 12.2.2
View used in Spredtable to display Billing History
APPS.OKS_BILLING_HISTORY_V·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ OE_ORDER_HEADERS_ALL·Explore OKS module →
-
User Interface view for securitization investor revenue
APPS.OKL_SEC_INVESTOR_REVENUE_UV·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ OKC_K_LINES_B·Explore OKL module →
-
User Interface view for securitization investor revenue
APPS.OKL_SEC_INVESTOR_REVENUE_UV·↳ FND_GLOBAL·↳ FND_LOOKUPS·↳ OKC_K_LINES_B·Explore OKL module →
-
View: OKL_SEC_INVESTORS_UV 12.2.2
User Interface view for securitization investors
APPS.OKL_SEC_INVESTORS_UV·↳ ARP_ADDR_LABEL_PKG·↳ FND_GLOBAL·↳ FND_LOOKUPS·Explore OKL module →
-
View: OKL_SEC_INVESTORS_UV 12.1.1
User Interface view for securitization investors
APPS.OKL_SEC_INVESTORS_UV·↳ ARP_ADDR_LABEL_PKG·↳ FND_GLOBAL·↳ FND_LOOKUPS·Explore OKL module →