Excel output filename
I am outputting data from reports to excel using mimetype=application/vnd.ms-excel
but when it opens the file/sheet is called rwservlet.
If I try to open another report which uses the same method at the same time it wont let me becuase it says already one document called rwservlet open.
How can I give the file a name. I have tried adding &DESNAME=myfile but it does not make any difference.
Any ideas ?
Thanks in advance,
Russell
hello,
since what you are opening in excel is actually a live stream, and not a file, your browser decides to use some part of the URL, in this case the last string before the parameters, as the file name.
there's nothing you can do about that from reports.
thanks,
ph.
Similar Messages
-
How to convert Abap output/excel output into pie charts
Hi.......
I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
Points wud be surely rewarded.............Thank in AdvanceHi Younus Khan,
sample code to load output to excel sheet.
Use function module GUI_UPLOAD
The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\test.csv'
FILETYPE = 'ASC'
TABLES
DATA_TAB = itab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17.
or,
U can use the FM
SAP_CONVERT_TO_XLS_FORMAT
to convert itab data to excel
check this FM also
GUI_DOWNLOAD
And, for converting into xml format. I did it in ecc6.0
*& Report ZTESTSDN
REPORT ztestsdn.
TABLES: vekp,
likp,
vbak.
TYPE-POOLS: ixml.
DATA: itab LIKE but000 OCCURS 0 WITH HEADER LINE.
TYPES: BEGIN OF my_xml ,
data(256) TYPE x,
END OF my_xml.
DATA: xml_table TYPE TABLE OF my_xml.
DATA: l_xml_size TYPE i,
ld_fullpath TYPE string.
START-OF-SELECTION.
SELECT * FROM but000 INTO TABLE itab UP TO 10 ROWS.
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ','
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
I_XML_DOC_NAME =
IMPORTING
pe_bin_filesize = l_xml_size
TABLES
i_tab_sap_data = itab
CHANGING
i_tab_converted_data = xml_table
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = l_xml_size
filename = 'C:\test.txt'
filetype = 'BIN'
IMPORTING
filelength = l_xml_size
TABLES
data_tab = xml_table
FIELDNAMES =
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
You can go use ADOBE AIR for developing the pie chart widget...
kindly reward if found helpful.
cheers,
Hema. -
Excel output of report on client machine
excel output report on client machine
hello
i am running report from app server, output is excel file...
using following URL
web.show_document(rpt_url ||'&report='||rpt_path||'batch_idcards_print_excel.rdf&desformat=spreadsheet&destype=file&desname=c:\batch.xls','_blank');
----this stores the excel file at app server under c:\
now i want to save it on client machine... how can i do that ?
from one forum, i got help , so i changed URL as below
web.show_document(rpt_url ||'&report='||rpt_path||'batch_idcards_print_excel.rdf&desformat=spreadsheet&mimetype=application/msexcel&destype=FILE&title=batch.xls','_blank');
when i open report, no window opens for saving file...a new window opens and gets closed itself immediately...
wht is the problem?... client machine having MS office excel 2003...Dear
Could you, please, tell us what you've done to solve this issue? We're facing the same problem, and until now we couldn't figure out what is exactly happening.
Thanks in advance for any help. -
XML Publisher report not printing excel output due to special characters
Hello,
I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
Tried changing the XML encoding and it doesn't help (both mentioned below)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
Do anyone have a solution for this
Thanks in advance
Edited by: user10317098 on Jan 16, 2012 10:58 AMHi,
Check this links that might help you..
https://forums.oracle.com/thread/1018488
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
Here the Exact solution from Oracle
In the XML PUBLISHER ADMINISTRATOR Resp..
Click the administration..
then Click HTML Output
Then in the Base Image URI Give the url of your application for example
http://Test.Test.com:8000/OA_MEDIA/
And then
Image File Directory give this as per your application setup
/u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
Thanks & Regards
Srikkanth.M -
XML Publisher Report EXCEL output Huge stored as Web Pages
Hello
I have a XML Publisher Report which generates EXCEL output and the output file size is huge.
What I notice that it is stored as Web Pages *.htm; *.html (Save as Type) in Excel this is the reason it is huge.
If I save as Microsoft Office Excel Workbook *.xls it Reduce the size.
I don't know how to save as ".xls" through XML Publisher using PL/SQL.
Any body knows? please Help..
XML Publisher Template Builder for WORD
Version 5.6 Build 45
PATCH BUG_NUMBER
XDO.H *3263588*
4.5.0 *3554613*
5.0.0 *3822219*
5.5.0 *4206181*
5.0.1 *4236958*
5.6.0 *4561451*
5.6.1 *4905678*
5.6.2 *5097966*
5.6.3 *5472959*
Thanks.Hi Vetsrini,
We're on 10.1.3.4.1 and siebel 8.1.1.3 and when trying to open a report from within siebel in the output format EXCEL (selected from the parameter applet), it just opens the document in the browser.
Is there a way to get it to open directly in Excel? I guess the reason is the file extension*.EXCEL, how could we get the extension to be in excel format (xls)?
We don't want our users to have to do this themself.
Regards,
Hakan -
Bypass Header and Footer in Excel output
I have a Requirement like this
I need to have the report output in the below three formats
PDF,EXCEL,HTML
But when we see the ouput in EXcel it should not have the Footer and Header Scetion ,
remaining two output formats (PDF,HTML) must have the Footer and Header Section.
Any one having any idea about this issue.
Thanks in Advance.
Have a Nice day.Hi @BIPuser.
I said the same thing to them but they said no that is final option but we need only single template for all the outputs alos it should handle the bypassing of header and footer for excel output.
Thanks for your reply, If i come across anything i will let u know. -
Excel output (with graphics)
Hello,
I am using Oracle reports 10g 1.2.0 version.
We need to generate oracle reports in Excel format ("real" Excel, not delimited text) with tabular data and
also graphics.
I used desformat=spreasheet. But is is giving only one worksheet.
I've found the "Output to Excel with Oracle9i Reports"
demo but the Excel template in the demo is very simple and doesn't have graphics.
Then I've found the following:
http://otn.oracle.com/products/reports/htdocs/getstart/examples/excel_output/result/excel.jpg
a) The above site has excel output with multiple worksheets.
which is similar to what we need but I wasn't able to find related source (excel_emp.jsp).
b) Using jsp if we can ahieve multiple worksheets with grapahics, please provide us examples.
c) http://www.oracle.com/technology/products/reports/htdocs/getstart/demonstrations/excel/index.html --This site is not working to find the demo.
Could you please help me in this?
Thank you for any help.carla,
the example you mentioned uses the JSP web source that is only available in oracle9i reports.
in theory you can create any excel output. it is just a matter of creating the template and then adding the reports tags to populate it with data.
you could then use reports' URL engine to produce files from this output.
there are certainly ways to do it, but they are only available in oracle9i reports (9.0.2 and higher)
regards,
philipp -
How to display Excel output in browser instead of client desktop
Hi,
Similar to PDF and Text output, Is it possible to display Excel Output In browser itself.
Whenever we try to view the report where the output type is excel, the output opens in Excel Desktop version.
We have a requirement where we need the output to be displayed in browser itself.
I have tried modyfing the Viewer profiles but was not able to get the desired result. We are currently working on E-Business Suite 11g.
Regards,
Sandeepfor ideas look at
Export to Excel of a Financial Reporting (FR) Report Opens the Excel File in the Workspace Browser Window (Doc ID 1300573.1)
and
How to configure Internet Explorer to open Office documents in the appropriate Office program instead of in Internet Ex…
so in your case it is vice-versa -
Excel Output For Standard Report In R12
Hi Experts,
My Client wants Excel Output for Standard Reports ( ex:-Open Purchase Order Report (by cost center)_xml)
I changed the default output to Excel in Template of xml publisher administrator Responsibility.
Now it is showing the Excel output, but The layout of report is not same as layout which in text output of standard report.
Please guide me is there any solution to develop the reports layout in ms-excel using xml file rather than rtf template.
Thanks
Durga.Hi Alex,
Thanks for your replay.
Generating the new rtf template which is same as standard layout is difficult task for us. Actually we have 120 reports which have same requirement.
Is there any other solution for this . please guide me
Thanks
Durga
Edited by: 805567 on Jan 23, 2012 12:33 PM -
How to remove the white space the in Excel output
Hi All,
I was working with Oracle Apps r12.
We have developed a custom report using xml and the report output type is Excel. when ran the report it completed with normal and the excel output is generated,We have a column called Amount and its having a white space before the amount.
So that we cannot able to do any aggregate function with that data.
For example the column called Amount
28523.20
32569.00
25369.25
in excel the output is coming like this, So when we select this three column and try to do any aggregate function it not giving any value.
I have tried Trim but its dos'nt works, because the values are already trimed.
Can any one could help on this.
Thanks & regards
SrikkanthHi All,
solved.
Using this link i have removed the white space in my rtf and the white space in excel has removed
http://office.microsoft.com/en-in/word-help/show-or-hide-formatting-marks-HP005189641.aspx
Regards
Srikkanth -
Chart(graph) is not displaying in my Excel output
Hi All,
I was working with oracle EBZ R12, and bi publisher 10g,
I have developed a RTF with graph, when i moved the RTF and run the report through application (the Excel output is not showing the Graph,but in pdf output the graph is coming fine).
I have gone through this documents
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
and the forum question already raised for the same.
https://forums.oracle.com/thread/1018488
But i dont know the exact path of the web.xml file to change as mentioned in the links. Can any one help on this to resolve this issue.
Thanks & Regards
Srikkanth.MHi,
Its looks like this might be the customization issue please have a look at the OSS Notes 457497 and refer to the questions 2, 3 & 4 may be you can get the idea (Specially 4).
Why are some texts not printed at all?
Answer:
Which texts are printed depends on the Customizing settings of purchasing.
Go to Customizing for purchasing.
Choose "Messages -> Texts for Messages -> Define Texts for <Purchasing Document>". Choose "Print Document <Purchasing Document>". Select "Texts for Document Items" and add a new entry.
You must specify a value for the print sequence in the detailed screen for your new entry.
Let me know in case of any.
Regards,
SRinivas -
Problem with Excel output format
Hi Guys,
I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
Example Numeric fields --> Right Aligned, text fields --> Left Aligned
One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
Our client want excel output on priority.
Is there any limitation for excel output format of reports?
It is very urgent for us please help.
Any help would be highly appreciated.
Thanks,
Pragati
Edited by: user11237443 on Aug 27, 2009 1:22 AMHi Mahi,
Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
I have read that blog for excel limitations but i have more question?
1) What about the negative values?
if any field is displaying negative amount then excel not displaying right value for that:(
2)How can we align header or data?
Do XMLP with EBS provide any solution for formatting in excel?
3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
Here are so many formatting issues do we need to write any code in xml for that?
Please help.
Many Thanks,
Pragati -
When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
Does any one knows the answer please advice?Hello,
This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
MHTML and XHTML are more verbose formats than binary .xls.
It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file). This is a known limitation of RTF layout templates.
BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
Bogdan -
Problem with images in XML with excel output
Hello:
I made an XML concurrent program, with excel output, but i am having a problem:
The rtf template has a logo (bmp image), but it is not showing in the excel (if i execute the concurrent in the oracle applications). However, if i create the xml in Oracle Reports in my computer, and then load that xml in the rdf template in word, i can see the logo in the excel preview. I don't know why is it not showing when i execute the program in applications.
If someone can help me with this, i will be very grateful.
Greetings
Message was edited by:
user632438xml cP, will not give you a image in excel output,..
In RDF there is a placeholder for image, and the image is located in certain location, at runtime it picks and render the output with logo.
but xml CP, will get the data in xml type and merge with rtf to get the output you wanted..
if you have the rtf with logo embedded in it, if output is of pdf or rtf output , then it will display the logo ,.
in excel currently it is not possible to show the logo,..
excel you see could be xml-excel or csv-excel not the true binary excel.
to get the logo embedded ,for that you have to wait on tim for the excel template, which will be release in near future i guess.. -
Image in Excel output of XML Publisher
Hi,
I have tried to generate output of an XML report in Excel format, its working fine.
There is an image in the RTF, the image is not displayed in the Excel output (its showing like 'X').
I have followed the following steps:
1)Insert > picture > from file > FNDSSCORP.gif
2) Right Click on picture > Format Picture
3) Enter as follows in the Web tab of Format Picture url:’${OA_MEDIA}/FNDSSCORP.gif’}
Can anyone please help me on this, this is very urgent.
Thanks, DivyaYou should put this issue on the XML Pub forum.
I remember some specific setting required for linking images off the instance top. Check the XML Pub dev guide.
--Shiv
Maybe you are looking for
-
I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory slots.Is it compatible and would like to know about the cost?
-
Get bind variables of a dynamic view object
I seem unable to retrieve the bind variables for a dynamically created view object, even though I can do the same thing for a regular view object. Here is the code: newVO = repServ.createViewObjectFromQueryStmt("newQry",strSql); VariableValueManager
-
Had Photoshop Elements 12 on my other Mac that recently got smashed, new one has no CD drive. How do I install Elements with my product key? Purchasing an external CD drive is not an option at this time after forking over the 2500 for the new Mac...
-
Hi, I am working on a CRM IPM project for a music company. I have a problem while maintaining the OR billing documents. The billing documents are not getting transferred to Accounting. The error code reads as "Maintain entry in the field "Business pl
-
APPEAR IN ABAP CERTIFICATION EXAM IN APRIL
Can anyone please suggest me for the certifcation exam which will be in the end of april.I have done the course from SISL.Which book is very important among the five books?Dums question is helpful?Please also mention which chapter of is very importan