Sei sulla pagina 1di 8

GENERATING AN XML REPORT USING XML PUBLISHER

Summary Steps: 1. Create Oracle Report(MODULE5.RDF) 2. Define/Register Concurrent Program(TEST_REPORT1) 3. Create Template Definition and Template(TEST_REPORT.RTF)) 4. Run CP and Show XML Publisher report in PDF format(TEST_REPORT.pdf)
Step 1: Create Oracle Report(MODULE5.rdf)
1. Open Report Builder Follow below screen shots to complete Oracle Report creation.

2. Save file as MODULE5.rdf. Compile and check for errors. Close Report Builder. 3. Now move this file to $AP_TOP/reports/US Or Keep file in local directory and set file path in profile option 'FND: Override Directory' at user level.

Step 2: Define/Register Concurrent Program(TEST_REPORT)


1.Register Executable Navigate to System Administrator->Concurrent->Program->Executable Provide following information as shown in the picture. Executable: TEST_REPORT Short Name: TEST_REPORT Application: Payables Execution Method: Oracle Reports

Execution File Name: MODULE5

.STEP3: Navigate to System Administrator->Concurrent->Program->Define Provide following information as shown in the picture. Program: TO DISPLAY XML REPORT Short Name: TEST_REPORT Application: Payables Executable Name: Oracle Reports Format: XML CP definition looks like this after creation

Points To Note:
o Note down Executable name. We need to use this in XML Publisher definition to refer this CP. o XML Publisher engine needs data input in XML format. So always select format as XML.( Final output will be PDF/RTF/HTML.. as selected by you in report submission.) o Add new CP to the Request Group, then add Request Group to your Responsibilty.

Step 4:
Create Template Definition and Template(TEST_REPORT.rtf) 1.Create Template Definition Navigate to XML Publisher Administrator->Data Definitions Click Create Data Definition button. Provide following information as shown in the picture. Code: TEST_REPORT1 Name: TEST_REPORT1(your choice) Application: Payables(your choice) Click Apply. Definition looks like this after creation

Points To Note:
Value given in the Code field must be same as the Executable name TEST_REPORT

STEP5:
Create Template Navigate to XML Publisher Administrator->Templates Click Create Template button. Provide following information as shown in the picture. Code: TEST_REPORT1(your choice) Name: REPORT5(your choice) Application: Payables(your choice) Type: RTF Data Definition: REPORT5 Upload template TEST_REPORT.rtf. Click Apply Template looks like this after creation.

Step 6:
Run CP and Show XML Publisher report in PDF format(TEST_REPORT.pdf) 1. Submit Request If you want final output in different format(RTF, HTML, etc), click Options button and change the Format type. Default is PDF

STEP7:.
CP Output(PDF)

XML PUBLISHER REPORT

Potrebbero piacerti anche