Library of Oracle EBS SQLs for operational Excel and ECC reporting, Discoverer replacement, Oracle EBS performance tuning and rapid report development.

View the Project on GitHub Enginatics/Oracle-EBS-SQL

OKS Service Contracts Billing History


Service Contracts billing history with invoicing and accounting rules, bill action, billed period dates, amounts and counter reading details for usage billing. When running service contracts billing, there is always a full set of records created in the following billing history tables:

oks_bill_cont_lines obcl oks_bill_sub_lines obsl oks_bill_sub_line_dtls obsld oks_bill_transactions obt oks_bill_txn_lines obtl

This set of records is complete down to subline level obsl/obsld, regardless if the billed contract line type has a subline or not. For subscription lines (lse_id=46, lty_code=’SUBSCRIPTION’) without a subline, for example, both obcl and obsl point their cle_id to the same line in okc_k_lines_b instead of different line and subline.

Unique identifier for the billing entry is obtl.bill_instance_number, which links to receivables line rctla.interface_line_attribute3. When driving queries from the OKS side, make sure to include a to_char() conversion for the numeric obtl.bill_instance_number, to enable index use on character type rctla.interface_line_attribute3.

The OKS billing history does not have a link to the originating billing schedule record in oks_level_elements (see

An overview of oracle service contracts and other line types can be found here:



Operating Unit, Contract Number, Modifier, Contract Status, Exclude Contract Status, Billed From, Billed To, Bill Action

Used tables

hr_all_organization_units_vl, okc_k_headers_all_b, okc_subclasses_v, okc_classes_v, okc_statuses_v, okc_k_lines_b, oks_k_lines_b, okc_line_styles_b, ra_rules, oks_bill_cont_lines, oks_bill_sub_lines, oks_bill_sub_line_dtls, &counter_tbls, oks_bill_txn_lines, ra_customer_trx_lines_all, ra_customer_trx_all, ra_cust_trx_types_all, mo_glob_org_access_tmp, dual, okc_subclasses_b


Enginatics, Kcapps

OKS Service Contracts Billing Schedule


If you would like to try one of these Oracle EBS SQLs without having Blitz Report installed, note that some of the reports require functions from utility package xxen_util.

Example Report

OKS Service Contracts Billing History 14-Oct-2020 080331.xlsx

Report SQL

Blitz Report™ import options


Oracle E-Business Suite Reporting Library

We provide an open source Oracle EBS SQLs as a part of operational and project implementation support toolkits for rapid Excel reports generation.

Blitz Report™ is based on Oracle EBS forms technology, and hence requires minimal training. There are no data or performance limitations since the output files are created directly from the database without going through intermediate file formats such as XML.

Blitz Report can be used as BI Publisher and Oracle Discoverer replacement tool. Standard Oracle BI Publisher and Discoverer reports can also be imported into Blitz Report for immediate output to Excel. Typically, reports can be created and version tracked within hours instead of days. The concurrent request output automatically opens upon completion without the need for re-formatting.

The Filters, Columns, Rows and Values fields are used to create and deliver the data in pivot table format with full drill down to details.

Blitz Report Pivots

The Excel template upload functionality in Blitz Report allows users to create their own layouts by uploading an Excel template with additional sheets and charts, automatically refreshed when the report runs again. This allows to create custom dashboards and more advanced visualizations of report data.

Blitz Report Dashboard

You can download and use Blitz Report free of charge for your first 30 reports.

The installation and implementation process usually takes less than 1 hour; you can refer to our installation and user guides for specific details.

If you would like to optimize your Oracle EBS implementation and or operational reporting you can visit to review great ideas and example usage in blog. Or why not try for yourself in our demo environment.

CRM FoundationContracts Core
Lease and Finance ManagementPayments
Process ManufacturingProcess Manufacturing Inventory
Public Sector FinancialsShipping Execution
XML PublisherAdvanced Pricing
CapacityLegal Entity Configurator
ProjectsService Contracts
Subledger AccountingApplications DBA
Enterprise Asset ManagementInstalled Base
E-Business TaxEnterprise Command Center
Advanced Supply Chain PlanningProperty Manager
Bills of MaterialMaster Scheduling/MRP
Work in ProcessHuman Resources
Order ManagementCash Management
Cost ManagementDiscoverer
PayablesGeneral Ledger
Blitz ReportDatabase Administration
Application Object LibraryCost Accounting

Useful Links

Blitz Report™ – World’s fastest reporting and data upload for Oracle EBS

Oracle Discoverer replacement – importing worksheets into Blitz Report™

Blitz Report™ Toolkits

Supply Chain Hub by Blitz Report™

Blitz Report™ customers

Oracle EBS Reporting Blog

Oracle EBS Reporting

© 2024 Enginatics