Skip to the content.

OKS Contract Termination Upload – Oracle EBS SQL Report

Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.

Overview

Terminates service contracts (full termination), terminates individual contract lines and sublines (partial termination), and deletes lines from Entered contracts - the Terminate action of the Service Contracts Authoring form (okc_terminate_pub / okc_contract_pub).

Set Terminate Contract to Yes on any row of the contract for a full termination, Terminate Line to Yes to terminate that row’s line or subline, or Delete Line to Yes to delete the line (Entered contracts only). Termination Date and Termination Reason are required for terminations.

A termination cannot be undone by this upload - statuses, credits, billing schedules and history are produced by the Oracle termination engine exactly as from the form.

Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.

Report Parameters

Upload Mode, Operating Unit, Contract Number, Contract Status, Line Status

Oracle EBS Tables Used

mtl_system_items_vl, csi_item_instances, csi_counters_tl, okc_k_items, okc_k_headers_all_b, hr_all_organization_units_vl, okc_statuses_v, okc_k_lines_b, okc_line_styles_tl, mo_glob_org_access_tmp

Report Categories

Enginatics, R12 only, Upload

OKS Service Contract Line Upload, AR Transactions and Lines 11i, OKL Termination Quotes, CSI Counter Readings, CSI Customer Products Summary, OKS Service Contracts Billing Schedule, OKS Service Contracts Billing History

Running This SQL Without Blitz Report

The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.

Download & Import Options

Resource Link
Excel Example Output Example
Blitz Report™ XML Import OKS_Contract_Termination_Upload.xml
SQL Source OKS Contract Termination Upload.sql
Full Report on Enginatics www.enginatics.com/reports/oks-contract-termination-upload/

Case Study & Technical Analysis: OKS Contract Termination Upload

Executive Summary

The OKS Contract Termination Upload is a Blitz Report upload for terminating Oracle Service Contracts. It performs a full termination of a service contract, terminates an individual contract line or subline, or deletes a line from a contract that is still in the Entered status. The upload follows the Terminate action of the Service Contracts Authoring form, so the termination is processed by the same Oracle termination engine. Service contract administrators and renewals teams use it to close out many contracts or lines at the end of an agreement, after a customer cancels coverage, or when an installed base item is withdrawn. The workflow runs in Excel through Blitz Report.

Business Challenge

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. OKC_K_HEADERS_ALL_B is filtered to service contracts (the SCS code SERVICE) in the accessible authoring organizations, and joins to its operating unit and status.
  2. The header joins to OKC_K_LINES_B on the contract ID, restricted to the line styles that the termination can act on.
  3. Each line joins to its parent line through an outer join, so sublines show the parent line number.
  4. Each line joins to OKC_LINE_STYLES_TL for the line type name, and to OKC_STATUSES_V for the line status.
  5. The object of the line is resolved from OKC_K_ITEMS and, depending on its object type, from the inventory item, the installed base instance or the counter.

Parameters & Filtering

Performance & Optimization

FAQ

Q: Can a termination be reversed through this upload? A: No. The description states that a termination cannot be undone by this upload, and that statuses, credits and billing schedules are produced by the Oracle termination engine.

Q: Which fields are needed to terminate a contract? A: The termination date and the termination reason are required for any termination.

Q: Can a line be deleted instead of terminated? A: Yes, Delete Line removes the line, but only on contracts that are still in the Entered status.


© Enginatics GmbH