Creating Excel Report Using XML
Creating Excel Report Using XML
Ajith Vijayan
Sr.Oracle HRMS/Financials Developer
WSSC
Ajith.vijayan@wsscwater.com
AGENDA
Query Design
Data Definition Design
Data Definition Registration in APPS
Concurrent Program Registration
Excel Template Design
1. Data Separation Based on groups
2. Splitting the Report into Multiple Sheets
Data Template Registration
Quick facts
Question/Answer
QUERY DESIGN
select emp_no
,full_name
,org_num ||'-'||org_name Org
,grade
,position_number
,position_name
,Job
,to_number(hours) hours
,to_number(current_amt) current_amt
,to_number(ytd_amt) ytd_amt
from WSSC_HRPIU_14_Overtime_Pay_V
where element_entry_start_date between :P_DATE1 and :P_DATE2
and pay_period_start_date >=:P_DATE1
and pay_period_end_date <=:P_DATE2
group by emp_no
,full_name
,org_num ||'-'||org_name
,grade
,position_number
,position_name
,Job
,hours
,current_amt
,ytd_amt
order by 3
group for Org
Seeded Responsibility
Standard format
Standard format
Sample XML Out Put
o/p by group of org
Click Here
Required Sheet
Data Separation Based on Groups
Click Here
Group 1
Group 2
Applying a Defined Name to a Cell
enter the name using the XDO_ prefix and the tag name from the data.
Group Name
Click the Name box and enter the name using the XDO_GROUP_ prefix and the tag
name for the group from the data. For eg: XDO_GROUP_?G_EMP?
Click the Name box and enter the name using the XDO_GROUP_ prefix and the tag name
for the group from the data. For eg: XDO_GROUP_?G_ORG?
BI Publisher requires the presence of a sheet called "XDO_METADATA" to process the template. This sheet must follow the specifications
defined here.
The format consists of two sections:the header section and the data constraints
section.Both sections are required. In the header section, all the entries in column A
must be listed, but a value is required for only one:Template Type, as shown.The
Data Constraints section does not require any content, but also must be present as
shown .
Add the Total
In the Data Constraints section, in Column A, enter the defined name of the cell:
XDO_?TOTAL_CURR_AMT?
In Column B enter the calculation as an XPATH function. To calculate the sum of the
SALARY element for all employees in the group, enter the following:
<?sum(.//CURRENT_AMT)?>
Test it by Clicking
Excel Template Design(Splitting the Report into Multiple Sheets)
Seeded Responsibility
22
Quick Facts
• After editing or entering
the value here always hit
Enter Key.