Out put to Excel from Reports
hi all,
Our current Reports version is Report Builder 6.0.8.22.0. We are having a report with 4 level grouping. When we generated Excel output, the data in excel is coming as follows :-
The first 3 groups of data is coming in the first row and the 4th level data is coming in the second row. How to achieve every thing in the same line?
For the report i created layout through Report Wizard and didn't disturb the arrangement of the fields.
Can any one suggest a solution??
Thanks.
nivas.
Its not possible to export data directly from 6i to excel but you can export in text file and then open it in excel it will open very easily but keep it in you mind first eliminate all report groups.
and
There is a trick to capture Oracle Reports output (text output) into a excel sheet.
Basic Steps :
1) Set the output format for the report to XML
2) Run the report to generate output.
3) Save the output file locally as a XML file.
4) Open the file using MS Excel.
5) To make it more beautiful, you may use a MS Excel Template
and read below may be this will be helpful to u
http://kr.forums.oracle.com/forums/thread.jspa?threadID=853876
Reports 6i Matrix Output in Excel Format
Similar Messages
-
Hi,
Please help me in this requirement.
Is there any option to get the out put of report 6i out put to excel format file.Its not possible to export data directly from 6i to excel but you can export in text file and then open it in excel it will open very easily but keep it in you mind first eliminate all report groups.
and
There is a trick to capture Oracle Reports output (text output) into a excel sheet.
Basic Steps :
1) Set the output format for the report to XML
2) Run the report to generate output.
3) Save the output file locally as a XML file.
4) Open the file using MS Excel.
5) To make it more beautiful, you may use a MS Excel Template
and read below may be this will be helpful to u
http://kr.forums.oracle.com/forums/thread.jspa?threadID=853876
Reports 6i Matrix Output in Excel Format -
I need to invoke Excel from Reports 3.0.
I need to invoke Excel from Reports 3.0. I need to insert into
Excel Data which is output of a report. Can someone help me with
a sample code of how we can invoke Excel and Get data.
Thanks in Advance
RaviRavi,
The Forms Demos include an example of how to do this.
It will be easy to adapt to Reports (the OLE2 built-ins are the
same).
Also, Reports 3.0 is quite old and not supported anymore.
Hope this helps,
Pedro
[email protected] -
Dear Experts,
When I am exporting out put of T-code MC-Q to excel, all data coming in one row, but in many columns. How to fix this problem.
Regards
IshuIts not possible to export data directly from 6i to excel but you can export in text file and then open it in excel it will open very easily but keep it in you mind first eliminate all report groups.
and
There is a trick to capture Oracle Reports output (text output) into a excel sheet.
Basic Steps :
1) Set the output format for the report to XML
2) Run the report to generate output.
3) Save the output file locally as a XML file.
4) Open the file using MS Excel.
5) To make it more beautiful, you may use a MS Excel Template
and read below may be this will be helpful to u
http://kr.forums.oracle.com/forums/thread.jspa?threadID=853876
Reports 6i Matrix Output in Excel Format -
Re: How to save/download the report in excel from Report painter.
Dear Sapmates,
I have created Cost element and Cost centere reports using report painter. Both the reports consists of nine coloumns. I would like to have the report in the excel. I tried the folliwng options :
1. System -> List -> Save -> Local file
2. Settings -> Options -> Microsoft Excel
3. Print and then try to save using the spool request number using SP02.
But neither of the ways worked to download or save the file in the excel format.
Could anybody of you please help me out with this.
Many thanks in advance.
Best regards,
Pabbi.After executing the report, select from the top menu:
Report --> Export
In the export to presentation server screen, select spreadsheet as the export format and enter the file location and name in the output file section. Then hit enter or click on the green check mark.
another pop up box will show and this time click on continue.
It will now create the output. check the output location you have entered before for the file.
Hope this helps.
Shail -
Export to Excel from Report region (pl/sql returning sql query)
Hello all,
I have encountered an interesting problem. I have an HTMLDB application with a lot of sql reports coded straight inside the report region. In order to better organize my reports, I decided to
1. make all my report regions of type "Pl/Sql function returning SQL query"
2. create a package inside my database schema which houses all reports as pl/sql functions returning VARCHAR2, the string returned being the report query
3. just calling "return package_name.function_name" from inside my report region of type "Pl/sql function returning SQL query".
This technique seemed to work perfectly. The reports were being returned as expected. I was then asked to provide the "Export to Excel" capability to all my reports. This seemed like a piece of cake using HTML DB's "Export to Excel" extension. However, the "export to excel" does not function correctly when my reports are inside a package in the database. HTML DB tries to export but inside the excel spreadsheet, instead of seeing row data, I see:
<pre>failed to parse SQL query:
ORA-00936: missing expression
<!-- select a.username, b.table_name, 'View Row Data' from schema_browser_user_list a, all_tables b where a.user_id = and a.username = b.owner order by b.table_name asc
--!>
</pre>
I am building my query string inside of my package functions by using a combination of literal strings and concatenating them with some parameter values being passed in. It seems that the HTML DB engine which exports the report to excel does not properly understand the concatenation of variables as can be seen by the empty space to the right of the equal sign in the "a.user_id = " clause. Does anybody have any input as to whether this is a known issue or if I am doing something wrong? Thanks a lot for your time.
- Kenny R.James,
Thanks for the quick reply. I think you mis-understood what I'm doing. All I'm doing is creating packaged functions which return VARCHAR2. The VARCHAR2 that they return is the report query. With this technique, I no longer have to type the query into the HTML DB report region. Instead, I make the report region a "Pl/sql function returning sql query" and make the following call: return package_name.function_name(some_application_items passed in as parameters)
This makes for a much more organized html db app. The problem is that the "export to excel" function does not correctly interpret the VARCHAR2 that my packaged functions are returning. Is this a better explanation? Thanks again for your time.
- Kenny R. -
SSRS exporting to excel from Report Viewer is not respecting boolean critera
Symptom:
What's happening is that we are selecting a
set of criteria eg: start date, drop down filter and a bit field.
After running the report against this criteria it comes up in the report viewer with the correct results.
However after we export the current results to Excel the results in Excel are different because it seems
that exporting
re-ran the report without the selected bit field when SSRS should have taken the current run and converted it. This isn't happening on all bit fields either
which is the oddest part. However all of the bit parameters are setup the same in the RDL.
We're Loading the report into and rendering it in the Report Viewer control and then leveraging the Report Viewer's Render Routine to export on a button click.
The result to Excel.
<asp:imagebutton
ImageUrl="/Images/excel.png"
id="btnExportExcel"
runat="server"
ToolTip="Export to Formatted Excel"
Height="20"
Width="20"
/>
...logic to setup the out parameters in the Render routine.
bytes = ReportViewer1.ServerReport.Render("EXCEL",
Nothing, mimeType, encoding, extension, streamids, warnings)
Response.Buffer =
True
Response.Clear()
Response.ContentType = mimeType
Response.AddHeader("content-disposition",
"attachment; filename=" & ReportViewer1.ServerReport.ReportPath.Split("/")(2) &
"." + extension)
Response.BinaryWrite(bytes)
Response.Flush()
Response.End()
I wanted to know if anyone has seen this odd behavior and if there's situation where the server would re-render the report when exporting to a particular format? I would also like to add that no errors
came up either.Report Viewer 2008
ProductVersion
FileVersion FileName
10.0.30319.1
10.0.30319.1 ...\Microsoft.ReportViewer.Common.dll
10.0.30319.1
10.0.30319.1 ...\Microsoft.ReportViewer.WebForms.dll
Report Server
SQL Server 2008 R2
Report Server Version
Microsoft SQL Server Reporting Services Version 10.50.2769.0
2008 RDL's
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"> -
Urgent: Out put to Excel
hi,
We are using Reports version 6.0.8.22.0 on 9.0.1.0.1.
We are having reports whose output comes in two lines. The report works fine on the screen. But when i generate the delimited output then the order of the data is changing from the output on screen. And the Headings and data are not coinciding in the excel output. how to achieve correct result?
thanks in advance.
nivas.Try using DESFORMAT=DELIMITEDDATA
The column order will be as in your data model -
Output required in MS Excel from Reports Oracle 10g error with built in pac
Hi All,
Our requirement is to get matrix report output in MS Excel. For that i found a report online. However, im having issues with Built-in Package OLE2.obj_type.
Below is the report log file:
******* Custom: Version : UNKNOWN
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XX_MATRIX_REPORT module: XX_MATRIX_REPORT
Current system time is 10-AUG-2012 17:23:17
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.UTF8
Enter Password:
REP-0736: There exist uncompiled program unit(s).
REP-0736: There exist uncompiled program unit(s).
REP-1247: Report contains uncompiled PL/SQL.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1247: There exist uncompiled program unit(s).
REP-1247: Report contains uncompiled PL/SQL.
Report Builder: Release 10.1.2.3.0 - Production on Fri Aug 10 17:23:19 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program exited with status 1
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 11242010.
Review your concurrent request log and/or report output file for more detailed information.
Executing request completion options...
Output file size:
0
Finished executing request completion options.
Concurrent request completed
Current system time is 10-AUG-2012 17:23:20
Please Help!!!After Report:
function AfterReport return boolean is
begin
RPT2XLS.release_memory;
srw.user_exit('FND SRWEXIT');
srw.message(101,'After Report');
return (TRUE);
end;
RPT2XLS package body:
PACKAGE BODY RPT2XLS IS
TYPE ExcelCell IS RECORD(RowNo binary_integer,
ColNo binary_integer,
Val varchar2(2000),
FontName varchar2(20),
FontSize binary_integer,
FontStyle binary_integer,
FontColor binary_integer,
BgrColor binary_integer,
Format varchar2(60),
Align xlHAlign
TYPE ExcelCells IS TABLE OF ExcelCell;
Cell ExcelCells := ExcelCells();
CurrentRow binary_integer := 1;
PROCEDURE new_line IS
BEGIN
CurrentRow := CurrentRow + 1;
END;
PROCEDURE put_cell(ColNo binary_integer, CellValue in varchar2,
FontName in varchar2 DEFAULT null,
FontSize in binary_integer DEFAULT null,
FontStyle in binary_integer DEFAULT null,
FontColor in binary_integer DEFAULT null,
BgrColor in binary_integer DEFAULT null,
Format in varchar2 DEFAULT null,
Align in xlHAlign DEFAULT null
) IS
BEGIN
Cell.Extend;
Cell(Cell.Last).RowNo := CurrentRow;
Cell(Cell.Last).ColNo := ColNo;
Cell(Cell.Last).Val := CellValue;
Cell(Cell.Last).FontName := FontName;
Cell(Cell.Last).FontSize := FontSize;
Cell(Cell.Last).FontStyle := FontStyle;
Cell(Cell.Last).FontColor := FontColor;
Cell(Cell.Last).BgrColor := BgrColor;
Cell(Cell.Last).Format := Format;
Cell(Cell.Last).Align := Align;
END;
PROCEDURE run IS
Application OLE2.OBJ_TYPE;
Workbooks OLE2.OBJ_TYPE;
Workbook OLE2.OBJ_TYPE;
Worksheets OLE2.OBJ_TYPE;
Worksheet OLE2.OBJ_TYPE;
WorkCell OLE2.OBJ_TYPE;
WorkColumn OLE2.OBJ_TYPE;
WorkFont OLE2.OBJ_TYPE;
WorkInterior OLE2.OBJ_TYPE;
ArgList OLE2.LIST_TYPE;
BEGIN
Application := OLE2.create_obj('Excel.Application');
OLE2.set_property(Application, 'Visible', 1);
Workbooks := OLE2.get_obj_property(Application, 'Workbooks');
Workbook := OLE2.invoke_obj(WorkBooks, 'Add');
Worksheets := OLE2.get_obj_property(Workbook, 'Worksheets');
Worksheet := OLE2.get_obj_property(Application, 'ActiveSheet');
for i in Cell.First .. Cell.Last
loop
if Cell(i).Val is not null then
ArgList := OLE2.create_arglist;
OLE2.add_arg(ArgList, Cell(i).RowNo);
ole2.add_arg(ArgList, Cell(i).ColNo);
WorkCell := OLE2.get_obj_property(Worksheet, 'Cells', ArgList);
ole2.destroy_arglist(ArgList);
ole2.set_property(WorkCell, 'Value', Cell(i).Val);
ole2.set_property(WorkCell, 'NumberFormat', Cell(i).Format);
if Cell(i).Align is not null then
ole2.set_property(WorkCell, 'HorizontalAlignment', Cell(i).Align);
end if;
WorkFont := OLE2.get_obj_property(WorkCell, 'Font');
WorkInterior := ole2.Get_Obj_Property(WorkCell, 'Interior');
if Cell(i).FontName is not null then
OLE2.set_property(WorkFont, 'Name', Cell(i).FontName);
end if;
if Cell(i).FontSize is not null then
OLE2.set_property(WorkFont, 'Size', Cell(i).FontSize);
end if;
if mod(Cell(i).FontStyle, 2) = 1 then
OLE2.set_property(WorkFont, 'Bold', 1);
end if;
if mod(Cell(i).FontStyle, 4) > 2 then
OLE2.set_property(WorkFont, 'Italic', 1);
end if;
if mod(Cell(i).FontStyle, 8) > 4 then
OLE2.set_property(WorkFont, 'Underline', 2);
end if;
if Cell(i).FontColor is not null then
OLE2.set_property(WorkFont, 'ColorIndex', Cell(i).FontColor);
end if;
if Cell(i).BgrColor is not null then
OLE2.set_property(WorkInterior, 'ColorIndex', Cell(i).BgrColor);
end if;
OLE2.release_obj(WorkInterior);
OLE2.release_obj(WorkFont);
OLE2.release_obj(WorkCell);
end if;
end loop;
ArgList := ole2.create_arglist;
ole2.add_arg(ArgList, 'A:Z');
WorkColumn := ole2.Get_Obj_Property(WorkSheet, 'Columns', ArgList);
ole2.destroy_arglist(ArgList);
ole2.invoke(WorkColumn, 'AutoFit');
OLE2.release_obj(WorkColumn);
OLE2.release_obj(Worksheet);
OLE2.release_obj(Worksheets);
OLE2.release_obj(Workbook);
OLE2.release_obj(Workbooks);
OLE2.release_obj(Application);
END;
PROCEDURE release_memory IS
BEGIN
Cell := ExcelCells();
SYS.DBMS_SESSION.free_unused_user_memory;
END;
END;
We are getting the error in log file Report contains uncompiled PL/SQL.
due to ole2.obj_type... -
Export to Excel from Reports produces corrupt file format
Whenever I choose to export to excel results of custom reports I am unable to open the file as I am told the file format is corrupt. The contents show as containing xml data and even changing the extension from xls to xml does not get me anywhere.
If I save the report and then download I am still informed the file format does not match the extension but the fie will open in Excel.Hi,
Please raise a ticket or provide the URL if the issue is still there.
Kind Regards,
Alex -
Dear all,
From the report runtime preview is it possible to export the data displayed to excel thru OLE2 or any other method.
Is it at all feasible..the how..
Using reports 6i
pl. email also to [email protected]
regards,Hi ,
try with generate file to delimited.
So that you can get .csv file.
--Basava.S -
With filter values iam not able to see out put of a web report
Hi,
I had a web report. for the webreport,data provider is Query. My requirement is to change the description of calculated KF. I have changed the description of Calculated KF in Query and transported it to Quality system. But when i execute the Web Report directly in web browser the changes in the description of calculated KF are shown. But when i execute through some URL with some filter values in the web template iam unable to find the changes.
Please help me on this.
Thanks & Regards
BharathiHi Ajay,
i had a web template. For this web template query is the data provider. In my requirement i need to change the description of calculated key figure.
Calculated key fig: OED Disconnect
Change description of Calculated key figure from OED to IEG(IEG disconnect).
I have changed the calculated KF desc from OED to IEG in development and transported to quality system. i can even find the changes in query also.When i execute the web template built on query directly through browser iam able to see the change in the description of calculated KF.
But when i execute through some URL(http:// bwqa/sap/bw/pub?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=T_ECA_DTL_REPORT_BYUNIT&FILTER_IOBJNM_1=ZMREQCC&FILTER_VALUE_1=000001522&DATA_MODE=HYBRID) with some filters like filter_iobjnm_1= ZMREQCC and data mode = hybrid iam unable to find the changes in the calculated kf description.
But when i execute the url (http:// bwqa/sap/bw/pub?sap-language=EN&bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=T_ECA_DTL_REPORT_BYUNIT) without filter values i can find the changes in the description of calculated KF.
Kindly update me why the changes are not reflecting when i use filters.
Thanks & Regards
Bharathi -
Hi I Need Perfect Out Put For This Clasical Report Plz
REPORT YSALES_REPORT_SATISH no standard page heading
line-size 400
line-count 40(5).
TABLES
Tables : vbak, "Sales Document Header Level1
vbap, "Sales Document Header level1
kna1. " General data in customer Master
Internal Tabel For T_VBAP.
DATA : Begin of t_vbap occurs 0,
matnr like vbap-matnr,
posnr like vbap-posnr,
vbeln like vbap-vbeln,
arktx like vbap-arktx,
kwmeng like vbap-kwmeng,
cmkua like vbap-cmkua,
end of t_vbap.
Internal Tabel For T_TAB.
DATA : Begin of t_tab occurs 0,
kunnr like vbak-kunnr,
vbeln like vbak-vbeln,
audat like vbak-audat,
netwr like vbak-netwr,
vkorg like vbak-vkorg,
name1 like KNA1-name1,
land1 like KNA1-land1,
end of t_tab.
Internal Tabel For T_FINAL.
DATA : Begin of t_final occurs 0,
kunnr like vbak-kunnr,
vbeln like vbak-vbeln,
audat like vbak-audat,
netwr like vbak-netwr,
vkorg like vbak-vkorg,
matnr like vbap-matnr,
posnr like vbap-posnr,
arktx like vbap-arktx,
kwmeng like vbap-kwmeng,
cmkua like vbap-cmkua,
name1 like KNA1-name1,
ladn1 like KNA1-land1,
end of t_final.
*SELECTION SCREEN
selection-screen begin of block b1 with frame title text-b03.
parameters : P_kunnr like vbak-kunnr.
select-options : S_vbeln for vbak-vbeln,
S_audat for vbak-audat.
SELECTION-SCREEN END OF BLOCK B1.
*START-OF-SELECTION.
start-of-selection.
select matnr posnr vbeln arktx kwmeng cmkua from vbap
into table t_vbap
where vbeln in S_vbeln .
select single kunnr vbeln audat netwr vkorg from vbak
into t_tab
where vbeln in S_vbeln.
select single name1 land1 from kna1
into (t_tab-name1,t_tab-land1)
where kunnr = p_kunnr.
end-of-selection.
Loop At T_VBAP.
loop at t_vbap.
read table t_tab with key vbeln = t_vbap-vbeln.
MOVE-CORRESPONDING ITAB_VBAK to ITAB_FINAL.
move :
t_tab-vbeln to t_final-vbeln,
t_tab-kunnr to t_final-kunnr,
t_tab-audat to t_final-audat,
t_tab-vkorg to t_final-vkorg,
t_tab-netwr to t_final-netwr.
t_tab-name1 to t_final-name1,
t_tab-land1 to t_final-land1.
append t_final.
clear t_final.
endloop.
Loop At t_final.
loop at t_final.
write : /1 sy-vline, 2 t_final-vbeln color 4,
20 sy-vline, 21 t_final-posnr color 5,
40 sy-vline, 41 t_final-matnr color 2,
60 sy-vline, 61 t_final-arktx color 1,
80 sy-vline, 81 t_final-kwmeng color 7,
100 sy-vline, 101 t_final-cmkua color 3,
120 sy-vline, 121 t_final-kunnr color 6,
140 sy-vline, 141 t_final-audat color 2,
160 sy-vline, 161 t_final-netwr color 6,
180 sy-vline, 181 t_final-vkorg color 1,
210 sy-vline, 211 t_final-name1 color 7,
230 sy-vline, 231 t_final-ladn1 color 5,
250 sy-vline.
endloop.
uline /1(250).
*TOP-OF-PAGE
top-of-page.
uline /50(24).
write : /50 sy-vline , 52 'SALES ORDER DETAILS' COLOR 6,
74 SY-VLINE.
ULINE /50(24).
ULINE /1(250).
write : /1 SY-VLINE, 2 'SALES DOC NO',
20 SY-VLINE, 21 'SALES DOC ITEM',
40 SY-VLINE,41 'MATERIAL NO',
60 SY-VLINE, 61 'SHORT SALES TEXT',
80 SY-VLINE, 81 'CUMM ORDER SALES',
100 SY-VLINE, 101 'REQ DEVL DATE',
120 SY-VLINE, 121 'CUSTOMER NO',
140 SY-VLINE, 141 'DOC DATE' ,
160 SY-VLINE, 161 'NET VALUE SALES',
180 SY-VLINE, 181 'SALES ORG',
210 SY-VLINE, 211 'CUSTOMER NAME',
230 SY-VLINE, 231 'CUSTOMER CONTY' ,
250 SY-VLINE.
ULINE /1(250).Hi
Check the sy-subrc value after each select statement.
if sy-subrc = 0.
Proceed.....
else.
message E398(00) with 'No Data found'.
endif.
Thank-You.
regards
vinsee -
Hi
I want to be able to export the output of oracle*report in excell, but i want to export only some colunn/data not the entire data
Can someone help me
tks
alei've not to develop reports as new , my reports are already developed.
I need a generic way to apply in oracle*report to choose data to be exported in excell. So i 've not to modify the source of my reports
tks
Ale -
Defaulting Concurent Request out put to Excell
hi All,
Is there any option to default the output type to one type and disable others.
Many Thankshi Tim
Thanks for the reply, is there any chance of making this provision in future........because some client are forcing such that certain reports should be viewed in only particular formats only......
Thanks
Maybe you are looking for
-
What are the steps for upgrading os x 10.5.8 to 10.6.7
I'm thinking of upgrading from 10.5.8 to 10.6.x. Can I just install over the top of 10.5.8 or do I need to do something beforehand? Do I just insert the disk and run? Much obliged.
-
What can apple do about a stolen/missing iphone 5?
Is there any way that the iphone can be tracked if my it is disconnected from my cell phone provider?
-
IOS 5 downland complete then file processing an error 3259 comes out what to do
I have trying to download IOS 5 on my Iphone , however, everytime the download is complete and file processing starts i get an error 3259 and that the connection timed out. I check my internet connection, its ok. I connected my laptop to the internet
-
How do install plug-in to CS 5?
I am trying to upgrade my Photomatix Pro to their latest version and after emailing them they sent me an authorization code and I was successful in installing the latest version after I removed the previous version. My problem is installing their pl
-
How to define the size of report area and its elements?
How can I define the report area size and its elements? And how can I define that for each printed paper, the details area will repeat horizontally or vertically? Is there any way to change the measuring units? Are there any difference between Crysta