![Page 1: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/1.jpg)
BI Publisher in EBS R12Presenter: Sarah Sinclair
![Page 2: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/2.jpg)
What we will coverThis presentation will outline how
to build a simple XML Publisher report in R12 from scratch.
I will cover how to build the data definition, template file as an RTF with BI Publisher and how to link it into a concurrent program.
![Page 3: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/3.jpg)
What we will coverI will touch on more advanced
concepts like conditional formatting and linking the report to a pl/sql package.
Show you how to modify existing XML Publisher reports.
![Page 4: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/4.jpg)
What we will cover
At the end of the presentation the audience should have a good grasp of how to build a simple XML Publisher/Bi Publisher report and be ready to start on more advanced concepts.
![Page 5: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/5.jpg)
Some DefinitionsOBIEE – Oracle Business
Intelligence Enterprise EditionBI Publisher / XML Publisher
![Page 6: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/6.jpg)
Getting StartedResponsibility: XML Publisher
AdministratorMenu option: Data
Definitions:
![Page 7: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/7.jpg)
Data Definition FileData Definition File: MODS_AP_INVOICES_V1.xml<?xml version="1.0" encoding="UTF-8"?><!-- $Header MODS_AP_INVOICES.xml 115.1 2012/09/17 09:36:48 ssinclair ship $ --> <dataTemplate name="MODS_AP_INVOICES" description="MODS Invoice Demo Report" version="1.0"> <properties> <property name="include_parameters" value="true" /> <property name="include_null_Element" value="true" /> <property name="debug_mode" value="off" /> </properties> <dataQuery> <sqlStatement name="Q1"> <![CDATA[select invoice_num, invoice_amount, invoice_datefrom ap_invoices_allwhere rownum <10]]> </sqlStatement> </dataQuery></dataTemplate>
![Page 8: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/8.jpg)
Data Definition File
![Page 9: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/9.jpg)
Concurrent ProgramXDODTEXE (Seeded java
program: Java Concurrent Program)
Same Shortname as data definition.
Same Application as data definition.
![Page 10: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/10.jpg)
Concurrent Program
![Page 11: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/11.jpg)
Concurrent ProgramRun the program and capture the
output
![Page 12: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/12.jpg)
Template FileThis is your layoutRequired: OBIEE BI Publisher
DesktopDownload from:http://www.oracle.com/technetwo
rk/middleware/bi-publisher/downloads/index.html
Open Word (example is Word 2010) :
Add-Ins should appear
![Page 13: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/13.jpg)
Template File
![Page 14: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/14.jpg)
Template aFileChoose Data->Load XML Data
and load in your sample file.Use the wizard to build a sample
template:
![Page 15: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/15.jpg)
Template FileResult from wizard:
![Page 16: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/16.jpg)
Template FilePreview it in Word:
![Page 17: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/17.jpg)
Template FileResulting Spreadsheet
![Page 18: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/18.jpg)
Template File - alterations
AlignmentAlign in word as per usual (trick
to put a space in before any text to force it to left align in XL.
![Page 19: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/19.jpg)
Template File - alterations
Format the amountBEFORE
![Page 20: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/20.jpg)
Template File - alterations
Format the amountAFTER
![Page 21: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/21.jpg)
Template File - alterations
Format the DATEBEFORE
![Page 22: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/22.jpg)
Template File - alterations
Format the DATEAFTER
![Page 23: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/23.jpg)
Template File - alterationsSum of AmountInsert->Field
![Page 24: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/24.jpg)
Template File – alterationsResulting template file
Resulting preview
![Page 25: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/25.jpg)
Template File – in EBSResponsibility: XML PublisherMenu: TemplatesCreate a new templeSame Shortname and Application
![Page 26: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/26.jpg)
Template File – in EBSRun on concurrent managerLayout will appear automatically
![Page 27: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/27.jpg)
Template File – in EBSYou can choose other templates
or extra templates
![Page 28: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/28.jpg)
More concurrent optionsResponsibility: System
AdministrationMenu: Concurrent->Programs
![Page 29: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/29.jpg)
Adding ParametersChange your data definition file:
<parameters> <parameter name="P_ROWNUM" dataType="number" /> </parameters> <dataQuery> <sqlStatement name="Q1"> <![CDATA[select invoice_num, invoice_amount, invoice_datefrom ap_invoices_allwhere rownum <= :P_ROWNUM]]> </sqlStatement> </dataQuery>
![Page 30: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/30.jpg)
Adding ParametersAdd the parameter to your
concurrent program with the same name as in your data definition file:
Load the new data definition file in and run the concurrent request with no template to get a new sample xml file.
Completing with warning is expected:
![Page 31: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/31.jpg)
Adding ParametersOutput is now restricted to the
number of rows in the parameter – the parameter is in the file
![Page 32: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/32.jpg)
Adding ParametersInclude the parameter on the
template file if desired.
![Page 33: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/33.jpg)
Adding ParametersUpload template file into XML
Publisher and run on concurrent manager
Result file
![Page 34: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/34.jpg)
Other advanced conceptsCalling a packageAlter the data definition file.<dataTrigger name=”beforeReport” source=”PACKAGE.proc()”/><sqlStatement name=”Q1”><![CDATA[&g_resultset]]></sqlStatement>
![Page 35: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/35.jpg)
Other advanced conceptsCreate the package referenced in the
databaseRegister the parameters from the data
definition in the file specificationRegister the g_resultset variable in the
file specificationNow you can use the parameters in
your query.Query is returned in the formatg_resultset := ‘select invoice_num from ap_invoices_all’;’’
![Page 36: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/36.jpg)
Other advanced conceptsProgrammatic changes within BI
PublisherDisplay sysdate <?
xdofx:sysdate()?>Simple calculations <?
xdofx:2+3?>Oracle functions <?
xdofx:lpad('aaa',10,'.')?>
![Page 37: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/37.jpg)
Other advanced conceptsConditional formatting
![Page 38: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/38.jpg)
Other advanced conceptsResulting templateDenoted by the C – double click
here to edit.
![Page 39: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/39.jpg)
Other advanced conceptsConditional formattingResult
![Page 40: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/40.jpg)
Other advanced conceptsExcel templatesPatch 12415414 to enable them
![Page 41: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/41.jpg)
Other advanced conceptsWhy Excel template instead of
RTF?Multiple tabCalculations/FunctionsBinary/Excel output (smaller file
output sizes)
![Page 42: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/42.jpg)
Modify Existing ReportsStep 1:
Download the data definition file.Create your own copy.Alter the SQL or PL/SQL
![Page 43: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/43.jpg)
Modify Existing ReportsStep 2:Upload Data Defintion against a
MOD version.
![Page 44: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/44.jpg)
Modify Existing ReportsStep 3:Create your modified concurrent
report as a copy where appropriate
Test the new data definition and retrieve the XML output
![Page 45: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/45.jpg)
Modify Existing ReportsStep 5:Upload the Template file as a
MODS version.Retest your concurrent program
![Page 46: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/46.jpg)
Modify Existing ReportsStep 4:Download the standard RTF
Template – modify with your retrieved XML.
TEST standalone.
![Page 47: BI Publisher in EBS R12 Presenter: Sarah Sinclair](https://reader035.vdocuments.mx/reader035/viewer/2022081504/551b89ee550346a10a8b55ff/html5/thumbnails/47.jpg)
Any questions ?