You are on page 1of 8

7/19/13

3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u

Sea r ch web

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 Elem ent Value in Oracle Online Pay slip 1 3 ) How to Enable/Disable Concurrent Program Param eter Dy nam ically 2 ) XML Publisher 1 ) Visual Representation of User Rating in XML Publisher 2 ) How to Retriev e XML Publisher Report output 3) How t o Use XML Burst ing t o Send XML Report via Email 3 ) Workflow Tutorial 4 ) Form Personalization How to Change Field Nam e 5) iRecruitm ent Data Migration How To Migrate Resum e 6 ) How to Restrict Agency from entering Duplicate Candidate 7 )How to Change User Password 8) How To Custom ise Vacancy Search in iRecruitm entAdding Subsidiary Logo 9 )Problem With XML Parsing Sit emap

Learning Topic > 2 ) XML Publisher >

3) How to Use XML Bursting to Send XML Report via Email

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

https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email

1/8

7/19/13

3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u
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 <x api: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 i m e t h e a bov e m en t i on ed pr ocess m a y gi v e y ou bu r st i n g er r or wh i l e r u n n i n g con cu r r en t pr ogr a m , t h en u se t h e a l t er n a t i v e m et h od m en t i on ed bel ow.

https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email

2/8

7/19/13

3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u

Alternatively the following can be used location="xdo://<output of the following query>/?getSource=true" <output of the following query> :s e l e c t l t . a p p l i c a t i o n _ s h o r t _ n a m e| |' . '| |l t . t e m p l a t e _ c o d e| |' . '| |l t . d e f a u l t _ l a n g u a g e| |' . '| | l t . d e f a u l t _ t e r r i t o r ya sb u r s t _ t e m p l a t e _ x d o _ l o c a t i o n f r o m a p p s . x d o _ t e m p l a t e s _ bl t w h e r el t . t e m p l a t e _ c o d e= ' < T e m p l a t eC o d e > ' ;h e r ev a l u e< T e m p l a t eC o d e >i s' X X _ T E S T _ X M L _ D T '

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 Publishers 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 applications design features and XML Publisher will recognize and maintain the design. Now create a RTF using basic Form Field Method(Using Microsoft Words form field feature).

https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email

3/8

7/19/13

3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u

once the rtf is created, save it local. Now create a data template(follow the navigation mentioned above).

https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email

4/8

7/19/13

3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u

Note:-Now take the temp location path(noted while discussing Bursting Control file) and put your rtf file also 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.

https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email

5/8

7/19/13

3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u

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

https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email

6/8

7/19/13

3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u

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 provide you a support for any data corruption or any other problem in your custom code/problem arises because of the custom code. The author is not responsible for any kind of system/data problem appears because of usages of this code.Reader/implementer must do it on his/her own risk/responsibility.

https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email

7/8

7/19/13

3) How to Use XML Bursting to Send XML Report via Email - Shareapps4u

SampleBursting_control.x ml (1 k) Test.rtf (40k) XX_TEST_XML_GEN_PKG.pck (6k)


Comments
You do not have permission to add comments. Suman Kaly an Malaker, Dec 1 7 , 201 1 , 1 2:41 AM Suman Kaly an Malaker, Dec 1 7 , 201 1 , 1 2:43 AM Suman Kaly an Malaker, Dec 1 7 , 201 1 , 1 2:43 AM v .1 v .1 v .1

Sig n in | Repor t A bu se | Pr in t Pa g e | Rem ov e A ccess | Powered By Googl e Si t es

https://sites.google.com/site/shareapps4u/learning-topic/xml-publisher/how-to-use-xml-bursting-to-send-xml-report-via-email

8/8

You might also like