You are on page 1of 13

How to create an Excel Output File through Concurrent Program

All this without affecting the standard program and only a teeny tiny bit of
technie stuff. This technique applies to any concurrent request that executes
via Oracle Reports. The only major difference in the process is the content of
the (RTF) Template, plus changing a few names for your report.
1. Copy concurrent program you want funky output from
System Administrator > Concurrent > Program > Define
Query Program "Active Users"
Click the "Copy To" Button
Program: Active Users - BIP
Short Name: XXXX_FNDSCURS
Application: Application Object Library
Check Include Incompatible Programs
Check Include Parameters
Click OK
Change the Output Format to XML
Save

2. Add your new concurrent program to your required request group


System Administrator > Security > Responsibility > Request

Query:
Group: System Administrator Reports
Application: Application Object Library
Add new Request:
Program: Active Users - BIP
Save

3. Run the request


System Administrator > Requests > Run
Name: Active Users - BIP
Submit
If you view the output, you can see the XML Source

4. In Microsoft Word create a file with the following contents save as RTF file,
say ActiveUsersBIP.rtf.
Note: Nice to use BIP Template Builder, and form fields, but here I display
the real tags for clarity. Software for (BI Template Builder - Patch 5887917 &
Microsoft .Net 2.0 Framework).
Username
<?for-each: G_RESPS?
><?../../USER_NAME?>

Resp

Start

End

<?
<?
<?END_DATE?> <?
RESPONSIBILITY_NAME START_DATE?
end for-each?>
?>
>

5. Define XML Publisher Data Definition and Template


XML Publisher Administrator > Data Definitions
Click Create Data Definition
Name: Active Users - BIP
Code: XXXX_FNDSCURS
Note: the code must match the concurrent program short name
Application: Application Object Library
Note: match the Application to the concurrent program application
Leave defaults for remaining fields
Click Apply

XML Publisher Administrator > Templates


Click Create Template
Name: Active Users - BIP
Code: XXXX_FNDSCURS
Note: the code must match the concurrent program short name
Application: Application Object Library
Note: match the Application to the concurrent program application
Data Definition: Active Users - BIP
Type: RTF
Click File, Browse and upload your RTF template file ActiveUsersBIP.rtf
created earlier
Language: English
Click Apply

6. Run the request


System Administrator > Requests > Run
Name: Active Users - BIP
Notice the Layout has been set by default to Active Users - BIP
Click the "Layout" button and change the Format to Excel
Add, OK.
Submit

7. View request output and save as CSV


View > Requests
Click "View Output" from your concurrent request
At the Open or Save, choose Open
Note: Excel should open with the output from your file. If your Internet
Explorer window pops up then disappears, you need to add your eBusiness
Server to your Trusted hosts. In IE 6 this is under Tools, Internet Options,
Security, click the "Sites" button under to Trusted Sites, uncheck "Require
server verification (https)...", put your fully qualified hostname under "add
this web site" then click OK. For Internet Explorer 7 or 6 add your site to
Local Intranet Zone. Tools, Internet Options, Security, click Local Intranet,
Sites, Advanced, Add your fully qualified hostname, e.g.
http://myappserver.mydomain.com

Click File (or Page) > Save As and choose Save as type: "CSV (Comma
delimited) *.csv"

All done! Well, some screenshots might be nice... UPDATE: Added


screenshots!
Now just waiting for Excel Analyzer to arrive with the eBusiness Suite

Displayed following error message when try to open an excel file with MS Excel
2007.

The File You are Trying to Open, 'FNDWRR.exe' is in a Different Format Than Specified By The File
Extension [ID 467256.1]
Modified 10-MAR-2010

Type PROBLEM

Status PUBLISHED

In this Document
Symptoms
Changes
Cause
Solution

Applies to:
BI Publisher (formerly XML Publisher) - Version: 5.6.3 to 5.6.3 - Release: 5 to 5
Information in this document applies to any platform.
***Checked for relevance on 10-Mar-2010***

Symptoms
You are generating excel output file via XML Publisher.
You defined a viewer pointing to MS Excel for file having EXCEL extension.

You installed MS OFFICE 2007 on your client PC.


When reviewing the generated output file, MS Excel is raising a pop-up window showing :
"The file you are trying to open, 'FNDWRR.exe' is in a different format than specified by the file
extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you
want to open the file now?"
If you select "Yes", then file is opened without any other issue.
This pop-up was not raised in previous version of MS Office.

Changes
Migrated to MS Office 2007.

Cause
This is due to a new security feature introduced by MS OFFICE 2007.
There are references to this new behavior in Microsoft forums.

Solution
Please review your Microsoft documentation or contact your Microsoft support center for more information
about this feature.

Related

Products

Oracle E-Business Suite > Applications Technology > Technology Components > BI Publisher
(formerly XML Publisher)

Keywords
XML PUBLISHER; MICROSOFT; FEATURES; EXCEL; FNDWRR.EXE

Method to avoid getting error message while opening Excel file in Oracle 11i with
MS Excel 2007

After upgrading to Excel 2007, you may get the following error when you try to open an excel
document:
The file you are trying to open .xlsx is in a different format than specified by the file
extension. verify the file is not corrupted and is from trusted source before opening the file.
Do you want to open the file now?
This errors particularly occurs when youre trying to open an XLS file (Excel 2000-2003) with
Excel 2007.
The easiest way to solve this problem, is to insert the following registry key. This will suppress
the notification:
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Security]
ExtensionHardening=dword:00000000
The step-by-step instructions are as follows:
1. Click Start, click Run, type regedit.exe and press ENTER. This will open your Registry
2. Navigate to
HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SEC
URITY
3. Right click in the right window and choose New -> DWORD
4. In the Name field, type ExtensionHardening (without the quotes)
5. Verify that the data has the value 0
I advice the steps above to solve the problem, despite the fact that it is quick and dirty.
If you want a more constructive way, you should define MIME types and associate them with
extensions.
When you use a Document Management System (like Sharepoint or Livelink), you can try
adding these:
.xls = application/msexcel
.xlsx = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

You might also like