YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Creating Excel Reports using XML

Using the XML Publisher creating reports in Binary Excel, so that the user will be able to do all the functions of Excel

Ajith VijayanSr.Oracle HRMS/Financials DeveloperWSSC [email protected]

Page 2: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

AGENDA Query Design

Data Definition Design

Data Definition Registration in APPS

Concurrent Program Registration

Excel Template Design1. Data Separation Based on groups

2. Splitting the Report into Multiple Sheets

Data Template Registration

Quick facts

Question/Answer

Page 3: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

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_amtfrom WSSC_HRPIU_14_Overtime_Pay_Vwhere element_entry_start_date between :P_DATE1 and :P_DATE2and pay_period_start_date >=:P_DATE1and pay_period_end_date <=:P_DATE2group by emp_no,full_name,org_num ||'-'||org_name,grade,position_number,position_name,Job,hours,current_amt,ytd_amtorder by 3

Page 4: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

group for Org

group for emp

Page 5: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Data Definition Registration in e-Business Suite

Seeded Responsibility

Code should be same as the short name in the concurrent program

Attach the xml file here

Page 6: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Concurrent Program Registration

Same as Code from Data Definition

Standard format

Standard format

Page 7: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Sample XML Out Put

o/p by group of org

o/p by group of org

Page 8: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Excel Template Design

BI Tab

Click Here

Required Sheet

Page 9: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Data Separation Based on Groups

Group 1

Group 2

Click Here

Page 10: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Applying a Defined Name to a Cell

By Default the name will be based on Position

enter the name using the XDO_ prefix and the tag name from the data.

Page 11: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

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?

Highlight the cells that make up the group

Group Name

Page 12: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Highlight the cells that make up the group

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?

Group Name

Page 13: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Preparing the XDO_METADATA Sheet

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.TheData Constraints section does not require any content, but also must be present as

shown.

Page 14: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Add the Total

Page 15: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

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)?>

Page 16: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Test it by Clicking

Page 17: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Excel Template Design(Splitting the Report into Multiple Sheets)

Highlight the Group

Enter the group Name

Page 18: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Use the set of commands to define the logic to split the report data into multiple sheets, as described in the following list:• Use XDO_SHEET_? to define the logic by which to split the data onto a new

sheet.• Use XDO_SHEET_NAME_? to specify the naming convention for each sheet.

Page 19: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able
Page 20: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Data Template Registration

Seeded Responsibility

Page 21: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able
Page 22: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

22

Page 23: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Quick Facts

• After editing or entering the value here always hit Enter Key.

• Where ever you use any function like sum, count etc. always use lower cases.

• Before you upload the template Hide this portion of the sheet.

Page 24: Creating Excel Reports using XML - storage.googleapis.com · Creating Excel Reports using XML Using the XML Publisher creating reports in Binary Excel, so that the user will be able

Related Documents