My Oracle Support Banner

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

Last updated on JULY 01, 2024

Applies to:

Oracle Service Contracts - Version 12.0 and later
Information in this document applies to any platform.

Goal

How to query the Service Contracts database 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> "How to Query the Service Contracts Tables for Header, Line, Subline and Billing Information in 11i".

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

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';

Solution

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

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


In this Document
Goal
Solution
 NOTE: In the attached document, user details / company name / address / email / telephone number represent a fictitious sample (based upon made up data used in the Oracle Demo Vision instance). Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
 The attached document gives working examples of how the SQL queries relate to the data that is shown in the contract authoring form. The document also has some additional SQL included. Click here to download the document.
 A. Contract Header Data
 B. Contract Line Data
 C. Contract Subline Data
 D. Contract Billing Data
 E. Receivables Interface Data
 F. Subscription Contracts
References

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