3) how to use xml bursting to send xml report via email - shareapps4u
DESCRIPTION
ilTRANSCRIPT
7/19/13 3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email 1/8
Home
Learning Topic
1 ) Flexfield
1 0) How to Add
Third Party Web
Page Link to Oracle
Application Web
Page
1 1 ) How to Create
Global User
Defined
Table(UDT)
1 2) How to Add
Element Value in
Oracle Online
Pay slip
1 3) How to
Enable/Disable
Concurrent
Program
Parameter
Dy namically
2) XML Publisher
1 ) Visual
Representation
of User Rating
in XML
Publisher
2) How to
Retriev e XML
Publisher
Report output
3) How to Use
XML Bursting
to Send XML
Report via
3) Workflow
Tutorial
4) Form
Personalization -
How to Change
Field Name
5) iRecruitment
Data Migration -
How To Migrate
Resume
6) How to Restrict
Agency from
entering Duplicate
Candidate
7 )How to Change
User Password
8) How To
Customise
Vacancy Search in
iRecruitment-
Adding Subsidiary
Logo
9)Problem With
XML Parsing
Sitemap
Learning Topic > 2) XML Publisher >
3) How to Use XML Bursting to Send XML Report via
Oracle Bursting Mechanism enables us to deliver a single XML Publisher report/letter to multiple destinations simultaneously.One can
create a single report/letter , then send it in any format (e.g., PDF or HTML) to multiple destinations(email ids).
There are two kind of bursting mechanism available within BI publisher
1) Control File Base:- Integrated with EBS
2) Delivery SQL based:- Part of Enterprise release.All delivery, template, output format, locale and other details define through delivery
SQL Query. Enterprise Edition assume that this information is stored in data base. The process create the XML file out if this query and
the delivery xml file works as control file.
Here we will discuss about the "Control File Base" mechanism.
Basic Requirement
Our basic requirement is to send grade change(promotion) letter to the supervisor of the employee.This needs to be achieved using
XML Publisher Bursting Mechanism.
Pre-Requisite
Following are the pre-requisites for report to build and also for applicability of solution
We are creating the template using MS word Form Field method.
Solution Approach
To achieve this we will first understand the different aspects and terminology used in XML Publisher
Data Definition
The data definition is registration the source of the data that will be merged with template layout to create published report/letter.
Navigation:- XML Publisher Administrator àData DefinitionsàClick on Create Data Definition
Sea rch web
7/19/13 3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email 2/8
Bursting Control File
Bursting control file is a XML file that contains following information
Control file is xml file (.xml) and contains information such as
Level in XML data that you wish to burst on.
Email address From, To, subject etc
Message we want to send
Busted file type (PDF/Excel/HTML etc…), file name, Filter Conditions etc...
Location of Template which will be used to generate output busted file.
Now to understand the bursting control file we will take an example of our sample XML data file(that will be created via pl/sql procedure)
There are restriction while creating bursting control file
a) The server ip address and port can not be dynamic. It must be hard coded in the file.
b) To define the location follow the following steps
<xapi:template ty pe="rtf" location="/ora_shared/R12/DBXX/apps/apps_st/com n/tem p/T est.rtf" /> ##
Navigation:- XML Publisher Administrator àAdministration
Go to Propertiesà Temporary Directory and copy the location that location will be location of our rtf template
##=> Som et im e t h e a bov e m en t ion ed process m a y giv e y ou bu rst in g error wh ile ru n n in g con cu rren t progra m , t h en u se
t h e a lt ern a t iv e m et h od m en t ion ed below.
7/19/13 3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email 3/8
Alternatively the following can be used
location="xdo://<output of the following query>/?getSource=true"
<output of the following query> :-
select
lt.application_short_name || '.' || lt.template_code || '.' || lt.default_language || '.' ||lt.default_territory as burst_template_xdo_location
from
apps.xdo_templates_b lt
where lt.template_code ='<Template Code>'; --here value <Template Code> is 'XX_TEST_XML_DT'
Now Search for the newly created Data Definition and click on the hyperlink the search results.Now attach the Bursting control file with the
data definition.
Navigation:- XML Publisher Administrator àData DefinitionsàSearch for newly Created Data Definition
Template
Rich Text Format (RTF) is a specification used by common word processing applications, such as Microsoft Word.XML Publisher’s RTF
Template Parser converts documents saved as the RTF file type to XSL-FO.Therefore we can create report designs using your standard
word processing application’s design features and XML Publisher will recognize and maintain the design.
Now create a RTF using basic Form Field Method(Using Microsoft Word’s form field feature).
7/19/13 3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email 4/8
once the rtf is created, save it local. Now create a data template(follow the navigation mentioned above).
7/19/13 3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email 5/8
Note:-Now take the temp location path(noted while discussing Bursting Control file) and put your rtf filealso in that location. Concurrent Program
Define the concurrent program. The concurrent program used in XML publisher report has following restrictions.
1) The concurrent Short name must match with the short name of the data definition
2) The Output format of the concurrent program will be "XML"
Concurrent Executable Package
We need to create a database package that will generate the XML data file which will be used to feed the data in temaplate and generate
letter.
Here our code will retrive the all the employee under a particular supervisor and send it to him with the grade information letter.
7/19/13 3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email 6/8
Now write the cursor that will retrieve all the employee having valid grade for a particular supervisor(person_id came as input)
Now our cursors are ready, we have to create xml and need to write in the ourput of the concurrent program.
Please refer your designed xml based on which the bursting was designed and repeat/close any element as shown the pic below.
Once the xml is prepared , then we need to call the seeded bursting program,so that the generated letter can reach to supervisor
7/19/13 3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email 7/8
Now compile the package and run the concurrent program.
Note:- 1) As we mentioned earlier the bursting will happen from /ListOfEmpDtls/EmpDtls.
create your xml accordingly.
2) To write it log of the concurrent program use the following fnd utility
LOG file writing:-
FND_FILE.PUT_LINE(FND_FILE.LOG, 'ABCD in Log File');
OUTPUT file writing:-
FND_FILE.PUT_LINE(FND_FILE.OUTPUT, 'ABCD in Out File');
3) Bursting program may goes into error, in that case will suggest you to raise a SR with Oracle.
4) Sample rtf file,code,bursting control file is attached for reference
References:- 1) https://metalink.oracle.com 2) Oracle XML Publishern( Release 12) B31410-01 Disclaimer:- This is a knowledge sharing site. This topic talks about a custom solution. Oracle may not provideyou a support for any data corruption or any other problem in your custom code/problem arises because of thecustom code. The author is not responsible for any kind of system/data problem appears because of usages ofthis code.Reader/implementer must do it on his/her own risk/responsibility.
7/19/13 3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email 8/8
Sig n in | Repor t A bu se | Pr in t Pa g e | Rem ov e A ccess | Powered By Google Sit es
Č
SampleBursting_control.xml Suman Kaly an Malaker, ċ ďv .1(1k) Dec 17 , 2011 , 12:41 AM
Test.rtf Suman Kaly an Malaker, ĉ ďv .1(40k) Dec 17 , 2011 , 12:43 AM
XX_TEST_XML_GEN_PKG.pck Suman Kaly an Malaker, ċ ďv .1(6k) Dec 17 , 2011 , 12:43 AM
Comments
You do not have permission to add comments.