0% found this document useful (0 votes)
194 views

Oracle XML Publisher

This document provides an overview of XML Publisher in Oracle E-Business Suite. It discusses what XML Publisher is, the benefits of using it over traditional report customization, and the process for designing and developing an XML Publisher report. Key points include: XML Publisher separates data and layout, uses XML as the data source, and allows templates to be designed in Word or PDF; it provides flexibility, reduces complexity and costs, and supports various output formats; the process involves setting up an XML data source, defining the data in XML Publisher, designing the template, and merging data with the template to generate the report output.

Uploaded by

Lenin Babu
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
194 views

Oracle XML Publisher

This document provides an overview of XML Publisher in Oracle E-Business Suite. It discusses what XML Publisher is, the benefits of using it over traditional report customization, and the process for designing and developing an XML Publisher report. Key points include: XML Publisher separates data and layout, uses XML as the data source, and allows templates to be designed in Word or PDF; it provides flexibility, reduces complexity and costs, and supports various output formats; the process involves setting up an XML data source, defining the data in XML Publisher, designing the template, and merging data with the template to generate the report output.

Uploaded by

Lenin Babu
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 52

Agenda

What is XML Publisher?


Why XML Publisher?
Report Customization Vs. XML Publisher
Designing using XML Publisher
Sample XML Report Development

What is XML Publisher?

XML Publisher

Oracle XML Publisher is a tool which enables


users to produce
flexible
high quality
template-based publishing

reports from Oracle E-Business Suite.

Concept
The main feature of XML Publisher is that it separates the
Data Source from the presentation/Layout.

Data Logic
Layout
XML Publisher

Translation

Report
output

XML Publisher Overview


XML Data Source

Oracle
Applications

Other XML
Data Sources

XML

XML Publisher

Example Outputs

Formats

Why XML Publisher?

Using XML Publisher


XML Publisher enables user to design the report layout
using Microsoft word or Adobe Acrobat.
The logo and signature just need to be inserted into the
document.
Meet Business Requirements
Removes Complexity
Reduces Maintenance Cost
Reduces Total Cost

Government Forms
Complex Layouts
Government Forms
High fidelity
Fixed formats

Example:

Customs Form
SF52
W-2
1099

Government Forms
Canada Customs Invoice

Partner Reports
Requirements
High fidelity
(company logos)
Exact Layout
Tables

Example:
Purchase Order
Commercial Invoice
Bill of Lading

Partner Reports

Report customization
Vs
XML Publisher

Familiar Design Tools


Report Formats can be designed using Desktop
Applications
Microsoft Word
Adobe Acrobat Reader

F
D
P

F
T
R

Standard Reports would need complex customizations to


the RDF or third party solution to precisely position the
Report details.

Multi Language and Font Support


Multiple font support
XML Publisher ships with full set of Unicode Fonts
Scalable Unicode font embedding
Support for font mapping and font linking
(MICR and Barcode fonts can be embedded and linked to
the output. No need for Printer specific fonts.)

Benefits of XML Publisher

Flexibility
Lesser complexity
Reduced Maintenance
Less labor intensive
Lesser Costs

Designing using XML Publisher

Process Overview
Set up the XML Publisher responsibility
Set the E-Business Suite report to generate XML output.
Register the E-Business Suite report as a Data Definition
with XML Publisher.
Design the template and Register the template in the
Template Manager.
Run the Standard program to obtain the XML data file.
Run the XML Report Publisher request to merge the data
with the template.

XML Publisher Responsibility

XML Publisher Data Source


Set the output type for the concurrent program to XML

XML Data Definition


Navigation:
XML Publisher Administrator-> Data Definition-> Create Data Definition

XML Template
Navigation:
XML Publisher Administrator-> Template -> Create Template

Available Template Styles


PDF Templates
RTF Templates
e-Text Templates

Available Template Styles

Sample XML Report Development

Report Development
Develop or use an existing report for generating XML

Concurrent Program Setup

Get XML Data

Sample XML
<?xml version="1.0"?>
<!-- Generated by Oracle Reports version 6.0.8.11.3
-->
<T00404464>
<LIST_G_SALES_ORGN>
<G_SALES_ORGN>
<SALES_ORGN>TET</SALES_ORGN>
<LIST_G_ORDER_DETAILS>
<G_ORDER_DETAILS>
<SORT_ORDER_VALUE>200009</SORT_O
RDER_VALUE>
<ORGN>TET-200009</ORGN>
<BOL_NO>12004</BOL_NO>
<WHSE>T1</WHSE>
<SORT_DT>28-FEB-08</SORT_DT>
<RQST_SHIPDT>28-FEB2008</RQST_SHIPDT>
<CUSTOMER_NAME>CONTECH
ATLANTA</CUSTOMER_NAME>
<CT_ST_ZP>CONYERS, GA</CT_ST_ZP>

<ITEM_NO>BX150060</ITEM_NO>
<QTY>25</QTY>
<SHIPPING_UOM>RL</SHIPPING_UOM>
<SHIP_METHOD_CODE></SHIP_METHOD_CODE>
<STATUS>Awaiting Allocation</STATUS>
<LINE_ID>1982</LINE_ID>
<SHIPPER_CODE></SHIPPER_CODE>
<PO>TEST ORDER#5</PO>
</G_ORDER_DETAILS>
</LIST_G_ORDER_DETAILS>
</G_SALES_ORGN>
</LIST_G_SALES_ORGN>
</T00404464>

Understanding XML Output


Opening

Closing

<?xml version="1.0"?>
<ITEM_NO>BX150060</ITEM_NO>
Tag
Tag
<!-- Generated by Oracle Reports version 6.0.8.11.3
<QTY>25</QTY>
-->
<SHIPPING_UOM>RL</SHIPPING_UOM>
Root Tag
<T00404464>
<LIST_G_SALES_ORGN>
<SHIP_METHOD_CODE></SHIP_METHOD_CODE>
First Group
<G_SALES_ORGN>
<STATUS>Awaiting Allocation</STATUS>
<SALES_ORGN>TET</SALES_ORGN>
<LINE_ID>1982</LINE_ID>
<LIST_G_ORDER_DETAILS>
Second Group <SHIPPER_CODE></SHIPPER_CODE>
<G_ORDER_DETAILS>
<PO>TEST ORDER#5</PO>
<SORT_ORDER_VALUE>200009</SORT_O
RDER_VALUE>
<ORGN>TET-200009</ORGN>
<BOL_NO>12004</BOL_NO>
<WHSE>T1</WHSE>
<SORT_DT>28-FEB-08</SORT_DT>
<RQST_SHIPDT>28-FEB2008</RQST_SHIPDT>
<CUSTOMER_NAME>CONTECH
ATLANTA</CUSTOMER_NAME>
<CT_ST_ZP>CONYERS, GA</CT_ST_ZP>

</G_ORDER_DETAILS>
</LIST_G_ORDER_DETAILS>
</G_SALES_ORGN>
</LIST_G_SALES_ORGN>
</T00404464>

Developing RTF Template


The RTF layout can be designed using the Standard features
in Word.
Select the size, font and alignment of text

Insert bullets and numbering


Draw borders around paragraphs
Include a watermark
Include images (jpeg, gif, or png)
Use table auto formatting features
Insert header and footer
Use word page numbering

Developing RTF Template


Creating Placeholders
Two modes:
Basic RTF method
Form Field method

Developing RTF Template


Creating Placeholders
Form Field method : Text form field is used to reference the XML Data
Insert the form field using Forms toolbar
Text Form Field button

Developing RTF Template


Defining Groups
<?for-each: XML Group element tag name?>
<?end for-each?>

Developing RTF Template


Defining Headers & Footers
<?start:body?>
<?end body?>

Developing RTF Template


Inserting Images
Direct Insertion

Developing RTF Template


Headers and Footers
Native word headers
Header Template

Developing RTF Template


Inserting Images
URL Reference
ex: url:{http://sierra.com/images/logo.gif}
OA Media Directory Reference
ex: url:{${OA_MEDIA}/logo.gif}

Developing RTF Template


Tables

Developing RTF Template

Data Reporting features


Sorting fields
<?sort: ORGN?>
for multiple fields :
<?sort:ORGN?><?sort:ITEM_NO?>

Developing RTF Template


<?if: condition?>
<?end if ?>
For eg: To get output only if the ship_method is
LTL
<?if: ship_method =LTL?>
--table-<?end if?>

Developing RTF Template


<?choose:?>
<?when:ship_method=LTL?>
--table-<end when?>
<?when:ship_mehtod=OCEAN?>
--table-<end when?>
<?otherwise:?>
--table-<end otherwise?>
<?end choose?>

Developing RTF Template


Regrouping Data
<?for-each-group: BASE GROUP;GROUPING-ELEMENT?>
For example to regroup the employee group on Ship_date field
<?for-each-group: G_ORDER_DETAILS;SHIP_DATE?>

Developing RTF Template


Page Totals
<?add-page-total: name;element?>
<?show-page-total: name;number format?>
For example
<?add-page-total: totsal:sal?>
<?show-page-total: totsal:$#,##0.00;($#,##0.00)?>

Developing RTF Template


Extended SQL and XSL Functions
Syntax:
<?xdofx:expression?>

Examples:
<?xdofx:rpad(FIRST_NAME||LAST_NAME),30,'x')?>
<?xdofx:decode('xxx','bbb','ccc','xxx','ddd')?>
<?xdofx:Instr('abcabcabc','a',2)?>
<?xdofx:upper(char)?>

Template Builder
The Template Builder is an extension to Microsoft
Word that simplifies the development of RTF
templates
Functions:

Insert data fields into your RTF templates


Insert data driven tables
Insert data driven forms
Insert data driven charts
Preview outputs with sample XML data
Browse and update the content of form fields

Data Definition

Template Definition

Running XML Publisher Report

Running XML Publisher Report

XML Publisher Report PDF Output

Thank You

You might also like