how to create an excel output file through concurrent program

15
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

Upload: sivalord

Post on 17-Jan-2016

244 views

Category:

Documents


1 download

DESCRIPTION

How to Create an Excel Output File Through Concurrent Program

TRANSCRIPT

Page 1: How to Create an Excel Output File Through Concurrent Program

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 fromSystem Administrator > Concurrent > Program > DefineQuery Program "Active Users"Click the "Copy To" ButtonProgram: Active Users - BIPShort Name: XXXX_FNDSCURSApplication: Application Object LibraryCheck Include Incompatible ProgramsCheck Include ParametersClick OKChange the Output Format to XMLSave

2. Add your new concurrent program to your required request groupSystem Administrator > Security > Responsibility > Request

Page 2: How to Create an Excel Output File Through Concurrent Program

Query:Group: System Administrator ReportsApplication: Application Object LibraryAdd new Request:Program: Active Users - BIPSave

3. Run the requestSystem Administrator > Requests > RunName: Active Users - BIPSubmitIf you view the output, you can see the XML Source

Page 3: How to Create an Excel Output File Through Concurrent Program

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 Resp Start End<?for-each: G_RESPS?><?../../USER_NAME?>

<?RESPONSIBILITY_NAME?>

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

Page 4: How to Create an Excel Output File Through Concurrent Program

5. Define XML Publisher Data Definition and TemplateXML Publisher Administrator > Data DefinitionsClick Create Data DefinitionName: Active Users - BIPCode: XXXX_FNDSCURSNote: the code must match the concurrent program short nameApplication: Application Object LibraryNote: match the Application to the concurrent program applicationLeave defaults for remaining fieldsClick Apply

Page 5: How to Create an Excel Output File Through Concurrent Program

XML Publisher Administrator > TemplatesClick Create TemplateName: Active Users - BIPCode: XXXX_FNDSCURSNote: the code must match the concurrent program short nameApplication: Application Object LibraryNote: match the Application to the concurrent program applicationData Definition: Active Users - BIPType: RTFClick File, Browse and upload your RTF template file ActiveUsersBIP.rtf created earlierLanguage: EnglishClick Apply

Page 6: How to Create an Excel Output File Through Concurrent Program

6. Run the requestSystem Administrator > Requests > RunName: Active Users - BIPNotice the Layout has been set by default to Active Users - BIPClick the "Layout" button and change the Format to ExcelAdd, OK.Submit

Page 7: How to Create an Excel Output File Through Concurrent Program

7. View request output and save as CSVView > RequestsClick "View Output" from your concurrent requestAt the Open or Save, choose OpenNote: 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

Page 8: How to Create an Excel Output File Through Concurrent Program
Page 9: How to Create an Excel Output File Through Concurrent Program

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

Page 10: How to Create an Excel Output File Through Concurrent Program

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

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

Page 11: How to Create an Excel Output File Through Concurrent Program

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 5Information 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.

Page 12: How to Create an Excel Output File Through Concurrent Program

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

Page 13: How to Create an Excel Output File Through Concurrent Program

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 you’re 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\SECURITY 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