0% found this document useful (0 votes)
82 views22 pages

3.2.oracle Reports

The document provides an overview of Oracle Reports, which is a tool for developing reports. It discusses the basic concepts of Oracle Reports including creating a new report definition, defining a data model, and specifying the layout. It also covers different components that make up a data model and layout such as queries, groups, columns, frames, and parameters. Finally, it briefly discusses report triggers, the SRW package, and different report modes.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views22 pages

3.2.oracle Reports

The document provides an overview of Oracle Reports, which is a tool for developing reports. It discusses the basic concepts of Oracle Reports including creating a new report definition, defining a data model, and specifying the layout. It also covers different components that make up a data model and layout such as queries, groups, columns, frames, and parameters. Finally, it briefly discusses report triggers, the SRW package, and different report modes.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 22

1

Oracle Reports

Author: ESC (Oracle Applications)


Doc.ID: Oraapps
Oracle - Reports
Reports Ver: 1.0 Date: Oct 2003
2
Agenda

1. Oracle Reports Overview


2. Creating a new Report
3. Defining a Data Model for a report
4. Specify the Layout for a Report
5. Different types of Reports
6. Report Parameters
7. User Parameters
8. Report Triggers

Oracle Reports
3
Reports Overview
Oracle Reports is tool for developing, displaying and
printing production quality reports. It is designed for
application developers who are familiar with SQL and
PL/SQL. Following types of reports can be created
using Oracle reports
• Tabular
•Group Left
•Group Above
•Matrix
•Matrix with Group
•Form Like
•Mailing Label
•Form Letter

Oracle Reports
4
Basic Concepts

There are 3 steps to building a report with Oracle


reports

 Create a new report definition


 Define the data model ( choose the data,
relationships and calculations which you will use to
produce the report output.
 Specify the layout. You can use the default, custom if
desired or create your own layout.

Oracle Reports
5
Data Model

To specify the data for a report, define a data model.


A data model consists of all or some of the following
data definition objects.
 Queries
Queries are SQL select statement that fetch data
from database.
 External Query

Oracle Reports
6
Data Model

It is the name of the external query stored in a


database or file
 Groups
Groups determine the hierarchy of the data
appearing in a report and are primarily used to create
breaks
 Cross product Group
A cross product group is generally used to create
matrix reports

Oracle Reports
7
Columns

 Columns
Columns contain the data values for a report. Default
report columns corresponds to the table columns
included in each query’s select list.
 Summary Column
Summary Column is a computation that is performed
on all the records of a single column. Eg sum of all
the salaries. Oracle reports has the Average, Count,
First, Last, Maximum and Minimum as summary.
 Formula Columns
A formula is a computation performed on a single
record spanning one or more columns.

Oracle Reports
8
Columns

 Placeholder Columns
A place holder is a dummy column for which you can
conditionally set the data type and value via PL/SQL
or a user exit.

 Parameters
Parameters are variables fr your report that enables
you to change the selection criteria at runtime.These
parameters can be referenced elsewhere in the
report such as PL/SQL constructs providing
conditional logic for the report.

Oracle Reports
9
Datalinks

 Datalinks
Data links are used to establish parent-child
relationships between queries and groups via column
matching.This data link is converted into a SQL
clause when the report is executed.

Oracle Reports
10
Datalinks

Oracle Reports
11
Datalinks

Datalinks can establish two relationships

 Between one query’s column and another query’s


column
 Between one query’s group and another query’s
group ( this is useful when you want the child query
to know about its parent’s data)

Oracle Reports
12
Layout Editor

Layout editor is used to specify the Layout for the


report. It uses following objects.
 Repeating Frames
Repeating frames act as a placeholders for groups
and presents rows of data retrieved for the database.
Repeating frames repeat as often as the data is
retrieved.
 Frames
Frames surround other layout objects, enabling you
to control multiple objects simultaneously.

Oracle Reports
13
Fields, Boilerplates

 Fields
Fields act as place holders for columns. They define
the formatting attributes for all columns displayed in
the report. A field is one of the objects that can be
located inside a frame or repeating frame.
 Boilerplate
Boilerplate consists of text and graphics that appear
in a report each time it is run. E.g. Label for fields

Oracle Reports
14
Anchors

 Anchors
Anchors fasten an edge of one object to an edge of
another object,ensuring that they maintain their
relative position.

Oracle Reports
15
Layout Regions

 Header
The report header pages appear once at the
beginning of each report on a set of separate
pages.They contain text, graphics, data and
computations.
 Main (Body/Margin)
The body pages appear between the header and the
trailer pages, and are the bulk of the report. Each
physical page in this section consists of a body
and a margin. The body contains the text, graphics
data and computation.

Oracle Reports
16
Layout Regions

 Trailer
The report trailer pages appear once at the end of
each report on a set of separate.

Oracle Reports
17
Report Modes

 Confine Mode
Confine mode restricts the movement of the fields
outside the borders of its repeating frame.

 Flex Mode
Flex mode resizes all the parent objects when the
child object bumps into a parent border.

Oracle Reports
18
Report Parameters

R e p o rt P a ra m e te rs

U s e r P a ra m e te rs S y s te m P a ra m e te rs

B in d P a r a m e t e r s L e x ic a l P a r a m e t e r s

Oracle Reports
19
Report Triggers

 Report triggers enable you to execute PL/SQL


functions at specific times during the execution and
formatting of report.
 Type of Triggers
– Before Report Trigger
– After Report Trigger
– Between Pages Trigger
– Before Parameter Form Trigger
– After Parameter Form Trigger

Oracle Reports
20
SRW Package

 SRW package is a collection of PL/SQL constructs,


which include many functions, procedures and
exceptions that you can reference in your report.
 This procedure calls the user exit named in
user_exit_string. It is useful when you want to pass
control to a 3GL program during a report's execution.
– Syntax: SRW.USER_EXIT (user_exit_string CHAR).
– Example: SRW.USER_EXIT(FND, INIT)

Oracle Reports
21
End-of-Session

Q&A

Oracle Reports
22
End-of-Session

Thank You

Oracle Reports

You might also like