You are on page 1of 20

XML Publisher Report

– Refresher Session

Moshinkhan.M – MK92214
MSAT
08-Feb-2008
Agenda
Introduction
Multiple Methods
Technical over view
Concurrent program registration
Get the out put
XML Data load and template design
XML data definition
XML data template
Running the report
Introduction …1

Overview:  Oracle XML Publisher is a template-based


publishing solution delivered with the Oracle E-Business
Suite. It provides a new approach to report design and
publishing by integrating familiar desktop word processing
tools with existing E-Business Suite data reporting. At
runtime, XML Publisher merges the custom templates
with the concurrent request data extracts to generate
output in PDF, HTML, RTF, EXCEL (HTML), or even TEXT
for use with EFT and EDI transmissions.
Basic Need for XML: Consider the following scenarios
We have a RDF report with tabular layout which prints in English.
Requirements:
Users wants the Same Report needs to be printed in chart format
Users wants the Same Report output in Excel or PDF
Users wants the Same Report output eliminating
Multiple Methods …2

Methods:

1.Use the report builder (RDF) and generate tabular lay out report to get the
file out put as XML and load the o/p to XML publisher
2. Design the PLSQL procedure to form the out put for the XML and load the
Output on to XML publisher
3. Design the code using the XML publisher code logic and design the XML reports

Responsibilities:
The below responsibilities needed for developing the new reports
1.XML Publisher Administrator
2.System Administrator
Technical Overview…3
Technical Overview …4
Data Logic – Data extracted from database and converted into an XML string.
Layout - The layout templates to be used for the final output are stored and
managed in the Template Manager.
Translation -The translation handler will manage the translation that is required
at runtime

In brief the steps are as follows on this presentation:-


This below steps are followed by the method -2 as mentioned in slide - 4
a.    Create a procedure and register it as Concurrent Program so that we write
XML  tags  into output file.
b.    Build a Data Definition & XML Template using XML Publisher.
c.    Create a relation between XML Template & Concurrent Program and
run the concurrent program
Technical Overview …5
A concurrent program is written that spit out an XML file as output Such concurrent
program can be of type SQL or PL/SQL or Oracle Report or any other supportable
type, provided it can produce a XML output.
Here I have a very simple PL/SQL procedure, which fetch the customer
records from AR tables and write the output in xml tags.

Find the attached Procedure for Customer data:-

Microsoft Office
Word Document

1. Create an executable SampleXmlReport for the above procedure Demo_


XML_Publisher.
Navigation: Go to System administrator Concurrent->Executable
2. Create the Concurrent program and attach the executable for the same.
Make sure that output format is placed as XML.
Navigation: Go to System administrator Responsibility -> Concurrent ->Program
Concurrent Program Registration…
6

Please find the screen shots


For registering the Executable
And concurrent programs
Concurrent Program Registration
…7
Declare the Parameter Declaration for the program:-
Concurrent Program Registration
…8
3.Add the program in the respective request Group:-
Navigation:- Go to System Administrator Responsibility ->Security ->
Responsibility->Request
Get the out put …9
4.Run the concurrent program on the respective responsibility:-
Navigation:- From the menu View->Requests->Submit A New Request->
Single Request
Note: The layout field is blank as we have not We have not yet attached any
Template or layout to this concurrent program. Save the out put
as SampleXmlReport.xml Also find the attached output for the same.

Microsoft Office
Word Document
XML Data load and template
design …10
Create Template/Layout for the report  using Template Builder:
Sample template are shown below
Open the Microsoft word :
Navigation: Go to the Add- on tab and select the option Load XML data ,browse
the XML data SampleXmlReport.xml File and load. Once the data loaded start
Adding the item to template
XML Data load and template
design 11
Once we done with adding all the fields in the templates save it as an .rtf
which looks as below
To confirm the output from the template we build.  Click on preview and
select the type in which format the output is required.
XML Data Definition …12
Adding the XML template to oracle application:-
Navigation:- Go to XML Publisher Administrator->Data Definitions->
Create Data definition.

Here we fill all the details to create data definition


XML Data Definition ..13

Make sure the Code (SampleXMLReport)of the data definition must be same as the
short name of The concurrent program we registered for the procedure. So that
Concurrent Manager retrieve the templates associated with concurrent program.
We can add our xml file SampleXmlReport.xml in data definition here:
XML Data Template .. 14
Create the template with the help of template manager:
At the runtime the concurrent manager’s request interface will present the list of
available templates with respect to the data definition registered. We will upload the
rtf template file created here. We will select the language and territory. We can
Upload different templates for different languages and territories.
Running the report ..15

Run the concurrent Program to get the desired output.


Navigation: From respective responsibility submit the program using the SRS Window
The default layout is displayed which we can change as per the requirement. For
changing the template click on options to look for all templates register with that
concurrent program.
Running the report ..16
Here in the above example my template is SampleXmlReport which is displayed in
layout field.
And once the request is submitted we will get the output in PDF.
Running the report .. 17
Find the report Output: This is the final output as desired in the PDF format.
For further detail please contact me on the below email id
Email ID :- Moshin_khan@mahindrasatyam.com

You might also like