BIP 1 - Oracle BI Publisher Using Data Template Training
BIP 1 - Oracle BI Publisher Using Data Template Training
BIP 1 - Oracle BI Publisher Using Data Template Training
Agenda
1. BI Publisher Introduction Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Process Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 2 .Creating Data Template and RTF Designing the Data Template . . . . . . . . . . . . . . . . . . . . . . . 2-1 Concurrent Job Registration Process . . . . . . .. . . . . . . . . . . 2-2 Code Promotion Process. . . . . . . . . . . . . . . . . .. . . . . . . . . . 2-3 3. Advance Concept Designing Bursting Control . . . . . . . . . . . . .. . . . . . . . . . . . . 3-1 Designing eTest Template . . . . . . . . . . . . .. . . . . . . . . . . . . . 3-2 4. Designing the Template Layout Bar Code Setup . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . 4-1 Display Images and Charts at runtime . . . . . . . . . . . . . . . . 4-2 Xml Publisher Additional Features . . . . . . . . . . . . .. . . . . . 4-3 5. Installing Oracle BI / XML Publisher Desktop Detailed . . .. . 5.1
Slide Title
Oracle BI Publisher (formerly XML Publisher) is a reporting solution that allows users to create, manage and deliver reports and documents easier and faster than
to generate the report in PDF, EXCEL, RTF or HTML format .The Data XML can be
generated from Oracle Report, OA Framework and Data Template. Oracle BI Publisher can be used as standalone application or fully integrated into other Oracle applications
By Using Data Template you can develop BI Publisher reports in Oracle EBS,
without having to develop an RDF report. You can specify an SQL Statement in an XML file, and results of that SQL Statement are published as XMLP Output
The Data engine execute the Data template to generate the Data XML file . The Data XML file is then merged with the Template layout by the XMLP engine to generate the XMLP Report.
The data template is the XML document whose elements communicate the following information to the data engine. Data Query : The SQL query with bind parameter specifying the data to be fetched.
Benefits of Oracle BI Publisher Document Management Solution well integrated with Oracle Applications. A solution which authors, manages and delivers the Business documents. Meets the Business Requirements like corporate identity. Removes the Complexity Reduces Maintenance Cost Reduces Total Cost One Template -> Multiple Outputs -> PDF,HTML,EXCEL,RTF Business Consultants can use familiar desktop tools like Word, PDF, etc. Extract one time ->-> Publish multiple times
The Reporting Business needs could be as varied as Financial Reports Business Reports Invoices Purchase Orders Sales Orders Contracts Government Forms Tax Forms Marketing Materials www.hcl.com
www.hcl.com
www.hcl.com
www.hcl.com
Step 1: Design the Data Template XML File. Step 2: Create the Data Definition in XML Publisher and associate it with Data Template Step 3: Define a Concurrent Program to generate the Data XML File. Step 4: Define the RTF Template using the Generated Data XML. Step 5: Registering the Template with XML Publisher
www.hcl.com
Element
DataTemplate (Required)
Attributes/Description
Name (Required) Description version (Required) Default Package - the PL/SQL package name to resolve any lexical references, group filters, or data triggers defined in the template. DataSourceRef - (Required) the default data source reference for the entire data template. Consists of one or more <property> elements to support the XML output and Data Engine specific properties.
Properties
Property
Attributes: name (Required) - the property name. value - valid values for this property.
www.hcl.com
Parameter
Attributes: name (Required) - the parameter name that will be referenced in the template. DataType - valid values are: "character", "date", "number" DefaultValue - value to use for the parameter if none supplied from the data Include_in_output - whether this parameter should appear in the XML output or not. The valid values are "true" and "false". Consists of one or more <sqlstatement> or <xml>elements. Attributes: name (Required) - the unique query identifier. Note that this name identifier will be the same across the data template. Enter the query inside the CDATA section. Attributes: name (Required) - the event name to fire this trigger source (Required) - the PL/SQL <package name>.<function name>
DataQuery (Required)
sqlstatement (Required)
DataTrigger
www.hcl.com
DataStructure
(Required for multiple queries) Defines the structure of the output XML. Consists of <group> and <element>elements to specify the structure. This section is optional for single queries; if not specified, the data engine will generate flat XML. Consists of one or more <element> elements and sub <group> elements. Attributes: name (Required) - the XML tag name to be assigned to the group. source (Required) - the unique query identifier for the corresponding sqlstatement from which the group's elements will be derived. groupFilter - the filter to apply to the output data group set. Define the filter as: <package name>.<function name>. Attributes: name - the tag name to assign to the element in the XML data output. value (Required) - the column name for the SQL statement. Note that for aggregations in which the column name is in another group, the value must be defined as <group name>.<column/alias name>. function - supported functions are: SUM(), COUNT(), AVG(), MIN(), MAX()
Group
element (Required)
Sample Report 1
www.hcl.com
Installation Details
15
Step1 :Define Concurrent Program & Executable Executable Definition (Application Administrator -> Applications -> Define Executable) This is Standard Executable, No need to create any executable for Data template mode report Executable Short Name Application Description Execution Method Execution File name XML Publisher Data Temple Executable XDODTEXE XML Publisher Java Concurrent Program
www.hcl.com
Concurrent Program (Application Administrator -> Applications -> Define Concurrent Program )
Application
Description Executable Name
XX_CUSTOM
SSI AP Check Register Report XDODTEXE
www.hcl.com
www.hcl.com
Data Definition (Resp: XML Publisher Administrator Home Data Definitions Create Data Definition) Name Code Application Start Date Files XML Schema Data Template Preview Data Bursting Control File SSI AP Check Register Report XXSSIAPCHKR XX_CUSTOM 17-Jul-2008
XXSSIAPCHKR.xml
www.hcl.com
www.hcl.com
Template Definition (Resp: XML Publisher Administrator Home Template Create Template) Name Code Application Data Definition Type Start Date End Date Default File Language Subtemplate File SSI AP Check Register Report XXSSIAPCHKR XX_CUSTOM SSI AP Check Register Report RTF 17-March-2008 English No XXSSIAPCHKR.rtf
www.hcl.com
www.hcl.com
Step 4 : Add Program to Request Group Request Group ALL REPORTS and the Application is Payables (Application Administrator -> Request Group)
www.hcl.com
Step 5 : Run the Report: User Selects the Report From a List and Enters Parameters
www.hcl.com
www.hcl.com
Step 2 : Place All LDT File , Data Definition File , Data Template(RTF) file in relevant Path . Step 3 : Upload LDT File For Concurrent Program , Data Definition, Data Template & RTF Template -- Concurrent Programs Upload:-
26
Upload Data Template: java oracle.apps.xdo.oa.util.XDOLoader UPLOAD -DB_USERNAME apps -DB_PASSWORD <PASSWORD> JDBC_CONNECTION HOST:PORT:DB -LOB_TYPE DATA_TEMPLATE -APPS_SHORT_NAME <APP_SHORT_CODE> -LOB_CODE <DATA_TEMPLATE_CODE> -LANGUAGE en -TERRITORY US XDO_FILE_TYPE XML-DATA-TEMPLATE -FILE_CONTENT_TYPE text/xml -FILE_NAME XXSSI_PP_NEEDS_RRT.xml -CUSTOM_MODE FORCE -LOG_FILE XXSSI_PP_NEEDS_RRT_XML.log Upload RTF Template: java oracle.apps.xdo.oa.util.XDOLoader UPLOAD -DB_USERNAME apps -DB_PASSWORD <PASSWORD> JDBC_CONNECTION HOST:PORT:DB -LOB_TYPE TEMPLATE -APPS_SHORT_NAME <APP_SHORT_CODE> -LOB_CODE < TEMPLATE_CODE> -LANGUAGE en -TERRITORY US XDO_FILE_TYPE RTF -FILE_CONTENT_TYPE application/rtf -FILE_NAME XXSSI_PP_NEEDS_RRT.rtf CUSTOM_MODE FORCE -LOG_FILE XXSSI_PP_NEEDS_RRT.log
www.hcl.com
28
www.hcl.com
www.hcl.com
Sample Code
www.hcl.com
Etext Template:
An eText template is an RTF-based template that is used to generate text output for Electronic Funds Transfer (EFT) and Electronic Data Interchange (EDI). At runtime, XML Publisher applies this template to an input XML data file to create an output text file that can be transmitted to a bank or other customer. Because the output is intended for electronic communication, the eText templates must follow very specific format instructions for exact placement of data.Slide Text 2 Note: An EFT is an electronic transmission of financial data and payments to banks in a specific fixed-position format flat file (text).
Structure of eText Templates: There are two types of eText templates: fixed-position based (EFT templates) and delimiter-based (EDI templates). The templates are composed of a series of tables. The tables define layout and setup commands and data field definitions. The required data description columns for the two types of templates vary, but the commands and functions available are the same. A table can contain just commands, or it can contain commands and data fields.
The following graphic shows a sample from an EFT template to display the general structure of command and data rows
34
www.hcl.com
www.hcl.com
Sample Sources:
www.hcl.com
Getting Oracle BI Publisher Desktop: The current version of Oracle BI Publisher Desktop is available on Oracle Technology Network (OTN) at: http://www.oracle.com/technology/software/products/publishing/index.html From this site, download Oracle XML Publisher Desktop 5.6.2 for Microsoft Windows. To use Oracle BI Publisher Desktop, you must meet the following requirements: Microsoft Windows 2003 or later Microsoft Word 2003 or later Java Runtime Environment (JRE) 1.4 or later
Getting Oracle BI Publisher Desktop for E-Business Suite: The current version of Oracle BI Publisher Desktop is available on MetaLink in patch 5027437. http://updates.oracle.com/download/5027437.html
Always check MetaLink to see that you obtain the most current version. Versions are likely to
change.
38
Installing Oracle BI Publisher Desktop: To install Oracle BI Publisher Desktop, perform the following basic steps: Download the patch. Unzip the patch. Run setup.exe included with the patch. Follow the onscreen instructions. Downloading and Unzipping the Patch: Download Oracle BI Publisher Desktop from OTN or MetaLink. The patch will download as: XMLP_Desktop.zip (OTN) p5027437_11i_MSWIN.zip (MetaLink) Unzip that patch into the directory of your choice. It will create a directory named as: XMLP_Desktop (OTN) XMLP_Desktop_R562 (MetaLink) Running the Installer CD (Change Directory) into the directory that was created when you unzipped your patch. Run the installer setup.exe. Follow the onscreen directions.
www.hcl.com
Q&A
www.hcl.com
Thank You !
www.hcl.com