My Oracle Support Banner

R12: How to Query the Service Contracts Tables for Header, Line, Subline and Billing Information (Doc ID 816374.1)

Last updated on APRIL 11, 2017

Applies to:

Oracle Service Contracts - Version 12.0 to 12.1.3 [Release 12 to 12.1]
Information in this document applies to any platform.
Checked for relevance on 23-Mar-2011


How to query service contracts tables and tables from other schemas to find underlying data about contract headers, lines, sublines and contract billing in R12.  (For 11.5.10 queries please see <Note 467334.1>).

This note gives a variety of queries which can be used to find the required data for a particular contract.

In the SQL statements given, <xxx> represents text that needs to be replaced with the actual values indicated between the brackets. For example, if you want to execute a query for a contract with number Test1, then whenever you see <contract number> in the SQL below, replace it with Test1.

Sections in this note are:
A. Contract Header Data
B. Contract Line Data
C. Contract Subline Data
D. Contract Billing Data
E. Receivables Interface Data
F. Subscription Contracts

Also attached to this note is a document which gives a working example of how the SQL queries relate to the data that is shown in the contract form. The document also has some additional SQL included.

Click here to download the document.

Note: If you are running queries against the contract views in a tool such as SQL*Developer or Toad and finding that the expected data is not returned, then you need to set the environment context and language.  Run the following scripts:
exec MO_GLOBAL.set_policy_context('S',<your org id>);
alter session set nls_language = 'american';


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.