Search Results bill_from
Overview
APPS.OKS_BILLING_HIST_LINES_V is a reporting view in Oracle E-Business Suite (12.1.1 and 12.2.2) that exposes billing history detail at the contract line level. It is part of the Service Contracts (OKS) and Contracts Core (OKC) schema family, joining contract line definitions to their subordinate billing sub-lines and the calculated billing results. The view presents the billed-from and billed-to dates, the billing amount, the billing level, and the computed result for each billing sub-line, giving users a flattened, query-friendly picture of how a contract line has been billed over time. Because it consolidates contract, line-style, sub-line, and sub-line-detail information into a single SELECT, it is commonly used in service contract billing audits, revenue and deferred-revenue analysis, invoice reconciliation, and custom reporting or integration extracts. The alias BILL_FROM in the view definition corresponds to the underlying DATE_BILLED_FROM column, which is the value users typically search for when reconciling billing periods.
Underlying Base Objects
The view is defined over four documented objects. Two are other APPS views: OKC_K_LINES_V (aliased KLE), which supplies contract line information including the line name and the line style identifier, and OKC_LINE_STYLES_V (aliased LST), which supplies the line style name used as the billing level. Two are SYNONYM references to OKS base tables: OKS_BILL_SUB_LINES (aliased BSL), which holds the billing sub-lines including the billed-from, billed-to, amount, and the foreign keys to the contract line and sub-line detail, and OKS_BILL_SUB_LINE_DTLS (aliased BSD), which holds the calculated billing result.
Joins are constructed as follows: KLE.LSE_ID = LST.ID links each contract line to its line style; KLE.ID = BSL.CLE_ID links contract lines to their billing sub-lines; and BSL.ID = BSD.BSL_ID links each sub-line to its detail result. The view is therefore a strict inner-join chain, so only contract lines that have billing sub-lines with associated details appear in the result set.
Key Columns
- ROW_ID — the ROWID of the OKS_BILL_SUB_LINES row, useful as a unique identifier for updates or de-duplication.
- ID — the billing sub-line identifier (BSL.ID).
- BCL_ID — the parent billing contract line identifier.
- BILL_LEVEL — the line style name (LST.NAME), indicating the level at which billing occurs.
- NAME — the contract line name (KLE.NAME).
- BILL_FROM — the billed-from date (BSL.DATE_BILLED_FROM), the start of the billing period.
- BILL_TO — the billed-to date (BSL.DATE_BILLED_TO), the end of the billing period.
- AMOUNT — the billed amount for the sub-line.
- RESULT — the billing result value from the sub-line detail record (BSD.RESULT).
The BILL_FROM and BILL_TO columns are the primary temporal anchors for period-based analysis, while AMOUNT and RESULT drive financial aggregation.
Common Use Cases and Queries
Typical scenarios include auditing all billing periods for a given contract line, summarizing billed amounts by level, and extracting billing history for a date range. The following query retrieves billing history for lines billed from a specific date:
SELECT name, bill_level, bill_from, bill_to, amount, result FROM apps.oks_billing_hist_lines_v WHERE bill_from >= :p_from_date ORDER BY bill_from;SELECT bill_level, SUM(amount) total_billed FROM apps.oks_billing_hist_lines_v GROUP BY bill_level;SELECT name, bill_from, bill_to, amount FROM apps.oks_billing_hist_lines_v WHERE id = :p_bsl_id;
Because the view performs inner joins across contract line, line style, sub-line, and detail objects, queries should filter on BILL_FROM or BILL_TO to constrain volume. No filtering is applied by the view itself, so row-level security and operating unit context must be applied by the calling report or integration.
-
VIEW: APPS.OKS_BILLING_HIST_LINES_V
12.2.2
-
View: OKS_BILLING_HIST_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKS.OKS_BILLING_HIST_LINES_V, object_name:OKS_BILLING_HIST_LINES_V, status:VALID, product: OKS - Service Contracts , description: View for Service Contracts Billing History Lines , implementation_dba_data: APPS.OKS_BILLING_HIST_LINES_V ,
-
View: OKS_BILLING_HIST_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKS.OKS_BILLING_HIST_LINES_V, object_name:OKS_BILLING_HIST_LINES_V, status:VALID, product: OKS - Service Contracts , description: View for Service Contracts Billing History Lines , implementation_dba_data: APPS.OKS_BILLING_HIST_LINES_V ,
-
VIEW: APPS.OKS_BILLING_HIST_LINES_V
12.1.1
-
VIEW: APPS.OKS_BILLING_HIST_LINES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKS.OKS_BILLING_HIST_LINES_V, object_name:OKS_BILLING_HIST_LINES_V, status:VALID,
-
VIEW: APPS.OKS_BILLING_HIST_LINES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKS.OKS_BILLING_HIST_LINES_V, object_name:OKS_BILLING_HIST_LINES_V, status:VALID,
-
Lookup Type: ZX_PLACE_OF_SUPPLY_TYPE
12.1.1
product: ZX - E-Business Tax , meaning: Place of Supply Type ,
-
Lookup Type: ZX_PLACE_OF_SUPPLY_TYPE
12.2.2
product: ZX - E-Business Tax , meaning: Place of Supply Type ,
-
Lookup Type: ZX_GEO_PARTY_SUB_CLASS
12.1.1
product: ZX - E-Business Tax , meaning: ZX_GEO_PARTY_SUB_CLASS ,
-
Lookup Type: ZX_GEO_PARTY_SUB_CLASS
12.2.2
product: ZX - E-Business Tax , meaning: ZX_GEO_PARTY_SUB_CLASS ,
-
PACKAGE BODY: APPS.ZX_R11I_TAX_PARTNER_PKG
12.1.1
-
PACKAGE BODY: APPS.ZX_R11I_TAX_PARTNER_PKG
12.2.2
-
PACKAGE BODY: APPS.ZX_CORE_REP_EXTRACT_PKG
12.1.1
-
APPS.ZX_R11I_TAX_PARTNER_PKG dependencies on ZX_TCM_GEO_JUR_PKG
12.2.2
-
APPS.ZX_R11I_TAX_PARTNER_PKG dependencies on ZX_TCM_GEO_JUR_PKG
12.1.1
-
APPS.ZX_TDS_APPLICABILITY_DETM_PKG dependencies on ZX_VALID_INIT_PARAMS_PKG
12.2.2
-
APPS.ZX_TCM_GEO_JUR_PKG dependencies on ZX_VALID_INIT_PARAMS_PKG
12.2.2
-
APPS.ZX_TDS_APPLICABILITY_DETM_PKG dependencies on ZX_VALID_INIT_PARAMS_PKG
12.1.1
-
APPS.ZX_TDS_RULE_BASE_DETM_PVT dependencies on ZX_VALID_INIT_PARAMS_PKG
12.1.1
-
APPS.ZX_TDS_RULE_BASE_DETM_PVT dependencies on ZX_VALID_INIT_PARAMS_PKG
12.2.2
-
APPS.ZX_TCM_GEO_JUR_PKG dependencies on ZX_VALID_INIT_PARAMS_PKG
12.1.1
-
PACKAGE BODY: APPS.ZX_CORE_REP_EXTRACT_PKG
12.2.2
-
APPS.ZX_TDS_APPLICABILITY_DETM_PKG dependencies on ZX_TCM_GEO_JUR_PKG
12.1.1
-
APPS.ZX_TDS_APPLICABILITY_DETM_PKG dependencies on ZX_TCM_GEO_JUR_PKG
12.2.2
-
PACKAGE BODY: APPS.ZX_SRVC_TYP_PKG
12.1.1
-
PACKAGE BODY: APPS.ZX_SRVC_TYP_PKG
12.2.2
-
PACKAGE BODY: APPS.ZX_TCM_GEO_JUR_PKG
12.1.1
-
PACKAGE BODY: APPS.ZX_TCM_GEO_JUR_PKG
12.2.2
-
APPS.ZX_TCM_GEO_JUR_PKG dependencies on FND_API
12.2.2
-
APPS.ZX_TCM_GEO_JUR_PKG dependencies on FND_API
12.1.1
-
PACKAGE BODY: APPS.ZX_TDS_TAXABLE_BASIS_DETM_PKG
12.2.2
-
APPS.ZX_TDS_APPLICABILITY_DETM_PKG dependencies on ZX_TDS_RULE_BASE_DETM_PVT
12.1.1
-
APPS.ZX_TDS_APPLICABILITY_DETM_PKG dependencies on ZX_TDS_RULE_BASE_DETM_PVT
12.2.2
-
PACKAGE BODY: APPS.ZX_TDS_APPLICABILITY_DETM_PKG
12.2.2
-
PACKAGE BODY: APPS.ZX_TDS_APPLICABILITY_DETM_PKG
12.1.1
-
APPS.ZX_TDS_TAXABLE_BASIS_DETM_PKG dependencies on ZX_TDS_TAXABLE_BASIS_DETM_PKG
12.2.2
-
APPS.ZX_TDS_TAXABLE_BASIS_DETM_PKG dependencies on FND_LOG
12.2.2
-
PACKAGE BODY: APPS.ZX_TRD_SERVICES_PUB_PKG
12.1.1
-
PACKAGE BODY: APPS.ZX_TRD_SERVICES_PUB_PKG
12.2.2
-
APPS.ZX_TDS_TAXABLE_BASIS_DETM_PKG dependencies on ZX_TDS_CALC_SERVICES_PUB_PKG
12.2.2
-
PACKAGE BODY: APPS.ZX_TDS_RULE_BASE_DETM_PVT
12.1.1
-
PACKAGE BODY: APPS.ZX_TDS_RULE_BASE_DETM_PVT
12.2.2
-
eTRM - OKS Tables and Views
12.2.2
-
eTRM - OKS Tables and Views
12.1.1
description: Stores the template set information. ,
-
APPS.ZX_SRVC_TYP_PKG dependencies on ZX_GLOBAL_STRUCTURES_PKG
12.1.1
-
APPS.ZX_SRVC_TYP_PKG dependencies on ZX_GLOBAL_STRUCTURES_PKG
12.2.2