Transcript
Page 1: Oracle XML Publisher / BI Publisher

BI Publisher

Edi [email protected]

Oracle Applications Technical Consultant

Reporting System with

Page 2: Oracle XML Publisher / BI Publisher

2

Course Objectives

After completing this course, you should be able to do the following:

• Explain the basic concepts and uses of BI Publisher

• Explain the advantages of reporting system with Oracle BI Publisher tool

• Create and use an Rich Text Format (RTF) template• Deploy and maintain BI Publisher Reports in an E-

Business Suite instance

Page 3: Oracle XML Publisher / BI Publisher

3

Course Agenda

• Oracle BI Publisher Overview• Install Oracle BI Publisher Desktop• Creating Reports in Oracle E-Business Suite Using BIP

– Generate XML file using Concurrent Manager– Creating RTF Report Templates– Using the Design Helper Plug-in– Creating Data Definition for the report– Using Template Manager to upload the report– Running BI Publisher Reports

• Translation and Localization• Grouping and Subtotals• Adding Header and Footer Information• Date and Number Formatting

Page 4: Oracle XML Publisher / BI Publisher

4

Course Agenda (Con.)

• Repeating Header With Resetting The Page Numbering For Each New Header

• Adding Chart and Image

• Using Conditional Formatting

• Using Cross Tab Functionality

• Adding Updateable Variables To The Template

• BIP Security

• Creating Report from Data Template

• Administering BI Publisher in an Oracle E-Business Suite

Page 5: Oracle XML Publisher / BI Publisher

5

Oracle BI Publisher Overview

• What is Oracle BI Publisher (BIP) ?

• Why Oracle BI Publisher ?

• Classic Report Issues

• Oracle BI Publisher Usage

• Designing using Oracle BI Publisher Desktop

• Register and Submitting BI Publisher

• Demo & Practice

Page 6: Oracle XML Publisher / BI Publisher

6

Oracle BI Publisher

Oracle BI Publisher is a new Java-based product available with the technology stacks of EBS, PeopleSoft, Siebels, JD Edwards and BI Enterprise Edition (OBIEE). It provides users with:

• A template-based, easy-to-use publishing solution

• A tool to rapidly develop and maintain report formats

Page 7: Oracle XML Publisher / BI Publisher

7

Oracle BI Publisher Concept

• Separate data / layout / translation

Reportoutput

Data Logic

Layout

TranslationBI Publisher

XML EFT

Rapid DevelopmentGreater FlexibilityReduce Maintenance Cost

Page 8: Oracle XML Publisher / BI Publisher

8

… from Data to Destination …

Page 9: Oracle XML Publisher / BI Publisher

9

Extract Once, Publish Many Times

Page 10: Oracle XML Publisher / BI Publisher

10

Oracle BI Publisher Architecture

DeliveryServerData

SQL

XML

WebServices

Oracle Report

Template

Translation

XLIFF

XSL

XML

TranslationCatalogs

DataHandler

Template Manager

Translation Handler

PDF Word Excel More…

XML

EFT

Email

Printer

Fax

Repository

e-Commerce

Page 11: Oracle XML Publisher / BI Publisher

11

Oracle BI Publisher Technology

Open Standard Technologies

• Pure Java

• Pluggable data in XML

• Output format in PDF, RTF, HTML and EXCEL

• W3C XSL-FO implementationAdded Value:– Performance– Security– MLS and Extensions to FO

• Support for Internet Printing Protocol, WebDAV, Internet Fax Protocol, and SMTP

Page 12: Oracle XML Publisher / BI Publisher

12

Performance and Scalability

Stream-based Implementation:

• Reduces memory footprint

• Handles large XML input files

• Is the fastest XSL-FO Implementation

Page 13: Oracle XML Publisher / BI Publisher

13

Sample Outputs

Page 14: Oracle XML Publisher / BI Publisher

14

Financial Reports

What Do You Want To Publish Today ?

Page 15: Oracle XML Publisher / BI Publisher

15

Business Reports

Page 16: Oracle XML Publisher / BI Publisher

16

Invoices

Page 17: Oracle XML Publisher / BI Publisher

17

Purchase Orders

Page 18: Oracle XML Publisher / BI Publisher

18

Sales Orders

Page 19: Oracle XML Publisher / BI Publisher

19

Government Forms

Page 20: Oracle XML Publisher / BI Publisher

20

Tax Forms

Page 21: Oracle XML Publisher / BI Publisher

21

Electronic Payments EFT / EDI

Page 22: Oracle XML Publisher / BI Publisher

22

Or Maybe…. All Of Them

One Solutions for All Your Business Documents

Page 23: Oracle XML Publisher / BI Publisher

23

Why Oracle BI Publisher ?

Page 24: Oracle XML Publisher / BI Publisher

Why Oracle BI Publisher?

• Reduce complexity

• Reduces time to develop, test and deploy

• Reduces total cost, including maintenance

• Increase developer productivity

• Enable flexible customizations

• Follow Oracle’s development standard

• Enable ease of use

Page 25: Oracle XML Publisher / BI Publisher

25

Complex Reporting Environments

EFT/EDI

CostlyComplex SystemsExpensive MaintenanceTime ConsumingLabor Intensive

• Strong business requirements in reporting area• Have to rely on multiple reporting solutions• 3rd party software and many servers required to satisfy business

requirements.• Highly skilled engineers required to maintain the 3rd party software

servers

Page 26: Oracle XML Publisher / BI Publisher

26

Single Solution Environment

• Utilizing Oracle BI Publisher

• Apps Integrated Publishing Solutions

Meet Business RequirementsRemove ComplexityReduce Maintenance CostReduce Total Cost

XML / EFT / EDI

Reports

Checks

Labels

Destinations

Invoices

Page 27: Oracle XML Publisher / BI Publisher

27

Benefits to Stakeholders

Development• Focus on data provisioning

Business Consultant• Focus on business requirements • Uses familiar tools to prototype report (Excel*, Word or Acrobat)• Higher Productivity

IT Consultant

• Faster deployment• Report matches prototype• Reduced maintenance

End User• Consistent user interface• Report in multiple formats• Language and locale options • Multiple delivery channels

Page 28: Oracle XML Publisher / BI Publisher

28

Classic Report Customization

• 1 data set : 10 layouts : 30 languages >> 300 reports

• Requires high skilled engineers for customization

High Maintenance CostHigh Customization CostDifficult UpgradeLess Flexibility

Page 29: Oracle XML Publisher / BI Publisher

29

Classic Report Customization (Con.)

Data logic Layout

TranslationReport file

Page 30: Oracle XML Publisher / BI Publisher

30

BI Publisher Customization

• 1 data set : 10 layout templates : 30 translation files automatically generated using XLIFF

• Business consultants use familiar desktop tools for layout customization

Report Templates

XML DataReport Output

XSL

XML EFT

Page 31: Oracle XML Publisher / BI Publisher

31

Benefits of BI Publisher

• Meet Business Requirements

• Flexibility

• Reduce Complexity

• Reduce Maintenance

• Reduce Costs

Page 32: Oracle XML Publisher / BI Publisher

32

Oracle BI Publisher Usage

It’s everywhere…

Page 33: Oracle XML Publisher / BI Publisher

38

Designing Using Oracle BI Publisher

The report layout can be designed by familiar desktop application (familiar design tools)

• Microsoft Word Oracle BI Publisher Desktop

• Adobe Acrobat• XSL Editors• Microsoft Excel

Oracle BI Publisher Analyzer for Excel

R T FR T F

P D FP D F

Excel

X S L

Page 34: Oracle XML Publisher / BI Publisher

39

Template Styles Available

Page 35: Oracle XML Publisher / BI Publisher

40

Designing the Layout

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 (jpg, gif,)

• Use table auto formatting features

• Insert a header and footer

Page 36: Oracle XML Publisher / BI Publisher

41

Multiple Language and Font Support

Multiple Language Support• 185 languages and 244 territories (ISO Standards) are supported• Easy to translate each template into 185 languages• Utilize RTF or XLIFF for translation

Multiple Font Support• BI Publisher ships with full set of Unicode Fonts• Support for font mapping and font linking (MICR and Barcode fonts can be

embedded and linked to the output.)

Page 37: Oracle XML Publisher / BI Publisher

42

Security

BI Publisher allows the user to produce secure PDF output, with security levels covering the following

• Read only / Editable

• Copy Text

• Printable

• Password Protection

Page 38: Oracle XML Publisher / BI Publisher

43

Associating the XML Data

Data Element:

To create the data element we need to add the Forms toolbar.

Page 39: Oracle XML Publisher / BI Publisher

44

Text Form Field

• Text Form Field is used to reference the XML Data.

Page 40: Oracle XML Publisher / BI Publisher

45

Grouping Data

Note: Use the for-each@section to repeat the header information across pages of the output document. The field will be repeated if the line information runs across more than one page, the page numbering will also be reset.

Re-grouping: <?for-each-group:BASE Group;Grouping Element?>

Page 41: Oracle XML Publisher / BI Publisher

46

Headers and Footers

There are 2 ways to define headers and footers:

• Native word headers

• Header Template

Page 42: Oracle XML Publisher / BI Publisher

47

Conditional Formatting

Conditional Format Statements:

• if

• if-then-else

• choose-when-otherwise

Page 43: Oracle XML Publisher / BI Publisher

48

Variables

Declaration and Assigning Value<?xdoxslt:set_variable($_XDOCTX,‘variable name', 0)?>

Sets the value of variable_name to the current value plus the element amount

xdoxslt:set_variable($_XDOCTX,‘variable name', xdoxslt:get_variable($_XDOCTX,‘variable name')+element name)

Get Value<?xdoxslt:get_variable($_XDOCTX, ‘variable name')?>

Page 44: Oracle XML Publisher / BI Publisher

49

Others Formatting

Row/Column High Lighting<?if@row:position() mod 2=0?><xsl:attribute name="background-color” xdofo:ctx="incontext">green</xsl:attribute><?end if?>

Creation of Page Total Element<?add-page-total:TotalFieldName;'element'?><?add-page-total:dt;‘DEBIT'?>

Displaying Page Total <?show-page-total:TotalFieldName;'number-format'?><?show-page-total:dt;$#,##0.00; ($#,##0.00)’?>

Sorting<?sort:element name?>

Page Breaks<?split-by-page-break:?>

Last Page Only<?start@last-page:body?><?end body?>

Page 45: Oracle XML Publisher / BI Publisher

50

Others Formatting (Con.)

Conditional High Lighting with Text Decoration<xsl:attribute xdofo:ctx="block" name="font-weight">bold</xsl:attribute>

Oracle Number Format Mask<?format-number:fieldname;’999G999D99’?>

Oracle Date Format Mask<?format-date:fieldname;’MASK’?>Mask Output for US Locale– SHORT 2/31/99– MEDIUM Dec 31, 1999– LONG Friday, December 31, 1999– SHORT_TIME 12/31/99 6:15 PM– MEDIUM_TIME Dec 31, 1999 6:15 PM– LONG_TIME Friday, December 31, 1999 6:15 PM– SHORT_TIME_TZ 12/31/99 6:15 PM GMT– MEDIUM_TIME_TZ Dec 31, 1999 6:15 PM GMT– LONG_TIME_TZ Friday, December 31, 1999 6:15 PM GMT

Page 46: Oracle XML Publisher / BI Publisher

51

XPATH Notations

Notation Meaning

. Current Node

.. Parent

// All elements in the XML document

/ Descendants

@ Attribute

[ ] To Specify Conditions

Page 47: Oracle XML Publisher / BI Publisher

52

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)?>

Page 48: Oracle XML Publisher / BI Publisher

53

Register and Submitting Oracle BI Publisher

Process Overview:– Set up the XML Publisher Administrator 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.

Page 49: Oracle XML Publisher / BI Publisher

54

XML Publisher Responsibility

Page 50: Oracle XML Publisher / BI Publisher

55

Define Data Logic

Page 51: Oracle XML Publisher / BI Publisher

56

Register Data Logic

Physical Report File NameConcurrent Program name

Output Format : XML

Set the output type for any Oracle Seeded Report program to XML

Page 52: Oracle XML Publisher / BI Publisher

57

TRX_NUMBER

<?TRX_NUMBER?>

Page 53: Oracle XML Publisher / BI Publisher

58

Register Data Logic as a Data Definition in XML PublisherC

oncurrent Program

Short

name

(N): XML Publisher Administrator-> Data Definition-> Create Data Definition

Page 54: Oracle XML Publisher / BI Publisher

59

Template File

Data Definition

Register Layout as a Template in XML Publisher

(N): XML Publisher Administrator-> Template-> Create Template

Page 55: Oracle XML Publisher / BI Publisher

60

Submitting the Concurrent Request

• Run the concurrent program via SRS (Standard Request Submission)

• Click Option Button

• On the Option dialog box, choose desired template, language and output type that you want.

Page 56: Oracle XML Publisher / BI Publisher

61

Submit Registered Data Logic Program

Concurrent Program Name

Template Name

Page 57: Oracle XML Publisher / BI Publisher

62

Concurrent Program XML Output

XML Tags

Page 58: Oracle XML Publisher / BI Publisher

63

Next Actions

• Demo of Oracle BI Publisher features• Practice Oracle BI Publisher reporting tool

Page 59: Oracle XML Publisher / BI Publisher

64

Demo

• Overview Template Builder / BI Publisher Desktop

• Invoice

• Localization and Translation

• Chart and Cross Tab

Page 60: Oracle XML Publisher / BI Publisher

65

Summary

• Oracle BI Publisher is a new, innovative reporting and output management solution that is designed to lower the total cost of ownership of reporting and document output management.

Page 61: Oracle XML Publisher / BI Publisher

66

References

• http://www.oralce.com/technology/products/xml-publisher/index.html

• http://www.oracle.com/technology/products/xml-publisher/xmlpsamples.html

• http://blogs.oracle.com/xmlpublisher/

• http://ediyanto83.wordpress.com

• http://www.slideshare.net/ediyanto83

• http://w3schools.com/

• http://metalink.oracle.com

Page 62: Oracle XML Publisher / BI Publisher

67


Recommended