Results for “oks_bill_sub_lines”

50+ results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

OKS_BILL_SUB_LINES is a Service Contracts (OKS) table that stores billing information associated with lower-level contract lines, such as coverage levels or products. It sits beneath the billing contract line layer and provides the granular billing record against which pricing adjustments, transaction lines, sub-line details, and tax details are attached. The object is owned by the OKS schema and is classified as VALID in the ETRM 12.1.1 / 12.2.2 documentation set.

From a modeling perspective, the heuristic Data Vault classification for this table is hub-leaning. The table carries a surrogate primary key and a stable business key, and it is the target of numerous foreign keys from surrounding tables, which is characteristic of a hub or a strongly-referenced core entity rather than a pure satellite. In practice, OKS_BILL_SUB_LINES acts as the anchor point for billing sub-line records across the Service Contracts billing model.

Key Information Stored

The table is documented with 32 columns. The most significant columns are:

The ID column is the surrogate key; the documented unique index OKS_BILL_SUB_LINES_U1 on ID is the sole business-key candidate listed in the metadata, while the surrounding foreign keys establish the true relational identity of a sub-line.

Common Use Cases and Queries

Typical reporting and integration scenarios include reconciling billed amounts against contract lines, extracting billing periods for revenue recognition, and isolating manual credits for audit review. A representative query joining the sub-line to its parent billing contract line and contract line follows:

SELECT bsl.ID, bsl.BCL_ID, bsl.CLE_ID, bsl.AMOUNT,
       bsl.DATE_BILLED_FROM, bsl.DATE_BILLED_TO, bsl.MANUAL_CREDIT
FROM   OKS.OKS_BILL_SUB_LINES bsl,
       OKS.OKS_BILL_CONT_LINES bcl,
       OKC.OKC_K_LINES_B cle
WHERE  bsl.BCL_ID = bcl.ID
AND    bsl.CLE_ID = cle.ID;

For pricing audit purposes, joining to OKC.OKC_PRICE_ADJUSTMENTS on BSL_ID reveals adjustments applied to each sub-line. Filtering on SECURITY_GROUP_ID supports Multi-Org-restricted reporting, and DATE_TO_INTERFACE is useful when identifying sub-lines pending interface processing.

Related Objects

The following tables are the most significant dependents and parents of OKS_BILL_SUB_LINES:

  • OKS_BILL_CONT_LINES — parent billing contract line, joined via OKS_BILL_SUB_LINES.BCL_ID.
  • OKC_K_LINES_B — contract line (coverage level or product), joined via OKS_BILL_SUB_LINES.CLE_ID.
  • OKS_BILL_SUB_LINE_DTLS — sub-line detail records, joined via BSL_ID (and BSL_ID_AVERAGED for averaged details).
  • OKS_BILL_TXN_LINES — billing transaction lines, joined via BSL_ID.
  • OKC_PRICE_ADJUSTMENTS / OKC_PRICE_ADJUSTMENTS_H — price adjustment records, joined via BSL_ID.
  • OKC_PRICE_ADJ_ASSOCS / OKC_PRICE_ADJ_ASSOCS_H — price adjustment associations, joined via BSL_ID.
  • OKL_TXD_AR_LN_DTLS_B — lease/AR tax line details, joined via BSL_ID.
  • FND_SECURITY_GROUPS — security group definition, joined via SECURITY_GROUP_ID.