Skip to the content.

OKL Lease Contract Update Upload – Oracle EBS SQL Report

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

Overview

Changes the bill to customer account and bill to site of Lease Management contracts through the Oracle public API okl_contract_pub.update_contract_header - the Bill To of the Lease Contract header.

One row per contract. Enter the Bill To Customer Account, the Bill To Site, or both; everything else on the row is context and is read only. A site that does not belong to the Bill To Customer Account on the row is rejected, so change both together when the account changes too.

A bill to change does not require a rebook: it was verified against Booked, Evergreen, Passed and Incomplete contracts. Rebook remains necessary for the financial terms this upload does not touch.

Run it under a Lease Management responsibility. Under an unrelated responsibility Oracle refuses the update with its own privilege message.

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, Deal Type, Bill To Customer Account

Oracle EBS Tables Used

okc_k_headers_all_b, okl_k_headers, hr_all_organization_units_vl, okc_statuses_v, hz_cust_accounts, hz_parties, hz_cust_site_uses_all, hz_cust_acct_sites_all, hz_party_sites, hz_locations, mo_glob_org_access_tmp

Report Categories

Enginatics, R12 only, Upload

OKL Termination Quotes, OKS Service Contract Line Upload, GL Account Distribution Analysis, AR Transactions and Lines 11i, GL Account Analysis, CSI Customer Products Summary, GL Account Analysis (Drilldown) (with inventory and WIP), AR Transactions and Lines

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 OKL_Lease_Contract_Update_Upload.xml
SQL Source OKL Lease Contract Update Upload.sql
Full Report on Enginatics www.enginatics.com/reports/okl-lease-contract-update-upload/

Case Study & Technical Analysis: OKL Lease Contract Update Upload

Executive Summary

The OKL Lease Contract Update Upload changes the bill to customer account and bill to site on Oracle Lease Management contracts. It is written for lease administrators and receivables teams who must move billing for a portfolio of leases. The file holds one row per lease contract, and the user enters the new Bill To Customer Account, the Bill To Site, or both. The update is applied through the public contract API OKLCONTRACTPUB.UPDATECONTRACTHEADER, so the change follows Oracle’s own rules. The report is R12 only and runs in the Lease Management area of Oracle EBS.

Business Challenge

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. OKC_K_HEADERS_ALL_B joins to OKL_K_HEADERS on the contract identifier, which restricts the result to lease contracts.
  2. The header joins to HR_ALL_ORGANIZATION_UNITS_VL on the authoring organisation and to OKC_STATUSES_V on the status code.
  3. The header joins to HZ_CUST_ACCOUNTS on the customer account identifier, then to HZ_PARTIES on the party identifier.
  4. The bill to site use joins to HZ_CUST_SITE_USES_ALL, then to HZ_CUST_ACCT_SITES_ALL, HZ_PARTY_SITES and HZ_LOCATIONS to give the address.
  5. Contracts are limited to authoring organisations in MO_GLOB_ORG_ACCESS_TMP.

Parameters & Filtering

Performance & Optimization

FAQ

Q: How do I change the bill to customer on Oracle Lease Management contracts in bulk? A: Download the contracts with the upload, enter the new Bill To Customer Account and Bill To Site on the rows to change, and upload the file under a Lease Management responsibility.

Q: Does changing the bill to require a rebook? A: No. The description states the bill to change does not require a rebook, and was verified against booked, evergreen, passed and incomplete contracts. Rebook is still needed for financial terms this upload does not touch.

Q: Why does the update fail with a privilege message? A: The upload calls the public contract API, and Oracle refuses the update when it runs under a responsibility unrelated to Lease Management.


© Enginatics GmbH