Saving XL Reports to Excel file problem
Dear Experts,
I have generated a report with XL Reporter, and I save it to disk. However, when I open up the Excel file in another PC that does not have SAP Business One and XL Reporter installed.
The Excel file content was not displayed, all that was shown are the XL Reporter formulae..etc.
How can I save the Excel file to disk so that I can display the file properly (with report values, not xlreporter formula) in a PC with no XL Reporter installed?
Warmest Regards,
Chinho
Hi
We had a problem with reports generated in Excel 2003 and being viewed in Excel 2007. There is a file excel.exe.config which needs to be dropped into: \Program Files\Microsoft Office\OFFICE12 on the machines that need to view the spreadsheets.
I cannot remember where this file came from but it may cure your problem. It must be on the SAP site somewhere.
Hope this helps.
Regards
Stewart Clark
Similar Messages
-
Unable to export report to excel file from SAP
Hi all,
I have a problem to download data from a report. The XL gets downloaded in a different format than my colleague.
We are using the same XL version but two weeks back the SAP GUI 730 got reinstalled to my machine and since then the problem
started.
Can you please confirm is there is any particular user settings for this?
I have login in any different working ( SAP Export ) machine with my login ID and Password and try to export the report to excel file from SAP, and I have same issue . Same we have requested another user to login in my machine with their ID and Password and check the same, They have tried and its working for then in my machine.
see screenshots attached.
Thanks.Execute report>
Right click anywhere in the report output and select Spreadsheet.
A pop up box will appear, select which export option you would like to use and click green check.
NOTE: If you don't see this option then goto Settings>Switch List then try above said.
Thanks,
Kumar -
Steps to save a Query/Report as Excel file in Share folder
Hi,
I have a requirement where i need to schedule a BI report automatically on a daily basis and save it in a Sharepoint folder as a excel file. I have gone through the Forums but didnt get a clear idea on how to proceed this with. I read about RSCRM_BAPI transaction but i hope we need to do this manually to save the file each time. Also, in Broadcaster there are options only to send Email & save in Portal.
So, if anybody have idea on saving a Query/Report as excel file in a Share folder automatically, kindly help me in suggesting the steps to do this activity.
Regards,
MuraliHi
1. Create Three Floders in AL11 i.e. in Apllication Server. Eg Name it F1, F2 and F3.
2. First dump the .csv files into F1. (Name xyz.csv).
3. Then using UNIX/WINDOWS (depends on your OS) script , first check the file is there are not in F1, if yes then rename the file with date and time or date and transfer the files from F1 to F2 i.e xyz06032010.csv.
4. Then Create a small ABAP program to check the file in F2, if it is there then Trigger the Event, and using that event you execute teh PC.
5. Then using UNIX/WINDOWS (depends on your OS) script , transfer the files from F2 to F3 i.e xyz06032010.csv
6. Next day morning F1 and F2 are empty and F3 is having the backup files.
So use this method, I used the similar logic and it is working fine.
Timinings are importent i.e what time you need to dump the fule in F1 and what time you need to run UNIX/WINDOWS (depends on your OS) script , transfer the files from F1 to F2 and what time UNIX/WINDOWS (depends on your OS) script , transfer the files from F2 to F3.
OR
1. Create Two Floders in AL11 i.e. in Apllication Server. Eg Name it F1 and F2
2. First dump the .csv files into F1. (Name xyz.csv)
3. Then load the data using InfoPackage, through PC.
4. At the end of the load Attach a simple Program to Move the xyz.csv file from F1 to F2.
5. So next day the file will come to F1 and the it will load and at the end it will move to F2.
Else you can use simple one or two lines of UNIX/WINDOWS (depends on your OS) script to move the file from F1 to F2 , once you load is over.
While moving the file from F1 to F2 you can append the date at the end of the file and then move to F2, it is use full for future reference.
See Blogs and Article, similar logic...
https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
How to transfer the Data from SAP-System to Non-SAP system without additional Cost/License
/people/surendrakumarreddy.koduru/blog/2009/03/11/how-to-transfer-the-data-from-sap-system-to-non-sap-system-without-additional-costlicense
To Check the Files/Reports in Application Server and Trigger Mail Alerts.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/4096bf2d-bcea-2b10-4ab4-e0683830d9b2&overridelayout=true
Thanks
Reddy
Edited by: Surendra Reddy on Mar 12, 2010 6:41 AM -
When I export my Crystal report to excel file (97-2000)
it does not show the Boxes and lines in excel file.
I am using CR 11 and MS Office 2003
please guide me how to solve this problem
Edited by: mian ghous on Feb 10, 2009 1:59 PMBut, DUDE, it IS possible using borders! Each of the border options has a formula field that you can code to tell Crystal in effect "on this line of the report, I want xxx borders".
Let's start with the easiest example: Say you want the line to go around the column heading (full box). then lines down each side of the column until the end, then for the the subtotal you want lines on three sides (all but top). Set all four borders for the heading field to Single, set the right and left borders for the data field to Single, and set all but the top border for the subtotal field to Single.
To expand this, let's say there is no subtotal, and you want the last value in the field to have a bottom border. Set the header and data field borders as above, except for the bottom border of the data field, use the following formula (basic syntax):
if {field} = NextValue({field}) then
formula = crNoLine
else
formula = crSingleLine
end if
If you want the line across the top of the data field on the first detail row (i.e., not around the header), use the same logic as above, except using PreviousValue().
HTH,
Carl
Edited by: Carl Sopchak on Feb 11, 2009 8:25 AM -
Export Report to Excel File & query design??? Urgent
Hi all,
1) It seems that I cannot use any BEx tools/function afer I export query report to excel file, such as refresh query report,...etc. If I am wrong, please let me know.
2) I have about 18 free CHARs in my report as my clien request (all variables are optional), now I only can run the query in the specific period, otherwise the report will show error and cannot run it. Why? is there any way I can fix it?
Thanks.
J.Hi Prvaeen,
That is what i see in my excel file after exported.
Here is the error I got from web report:
The URL http://sdcbwqa03.amcc.com:8100/sap/bw/BEx was not called due to an error.
Note
The following error text was processed in the system BWQ : Invalid dynamic line component.
The error occurred on the application server sdcbwqa03_BWQ_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Form: COPY_SETXX_LINE of program CL_RSR_REQUEST================CP
Form: GET_DATA_CELLS of program CL_RSR_REQUEST================CP
Form: COMPUTE_NOP of program CL_RSR_LIST_CALCULATION=======CP
Form: COMPUTE_ORDER of program CL_RSR_LIST_CALCULATION=======CP
Form: COMPUTE of program CL_RSR_LIST_CALCULATION=======CP
Form: REQUEST_DATA of program CL_RSR_REQUEST================CP
Form: READ_DATA_INTERNAL of program CL_RSR_REQUEST================CP
Form: READ_DATA of program CL_RSR_REQUEST================CP
Form: READ_DATA of program CL_RSR_WWW_VIEW===============CP
Form: RENDER of program CL_RSR_WWW_ITEM===============CP
Thanks.
J. -
Reg: Download report into Excel file
Hi All,
While downloading the ALV report into excel file(System -> List -> Save -> Local file) or (List -> Export -> Local file), i cannot download full report in to excel. Even though the report contains just 200 rows(I can able to download about 90 lines).
Some reports can able to download all the data, even the report is very big. Currently I am blind to solve, anyone can help me to solve this issue.
Thanks in advance.The most elegant way of downloading ALV display data to EXCEL is displaying the excel in the SAP GUI screen itself. Select "Excel in Place" and then save it from there. Before that you need to let the VB script of SAP know as trusted macro. This is done by opening a blank excel file then go to Tools > options > Security > Macro Security > Trusted Publishers (tab) > (check) Trust access to Visual Basic Project. This activation is one time activation. Once you do this you can see ALV display exactly like in normal ALV with all the colors fields etc.
-
Extract the report into excel file
how to extract the report into excel file?
which function module i have to use ?Hi Pavan,
If you want to download the displayed list in the Excel file,then at the time when the list is displayed on the screen, you can go to System option on the menu bar,from there go to List and then Save.You will get a pop up which shows you all the formats of download available.Select the one you want to and mention the target path of the file on the Presentation server.
Secondly,you can use the T-codes "CG3Y" to download the data from the Application Server to the Presentation Server and T-code "CG3Z" for vice-versa.
Or else you can use any of the FMs to first download the ABAP list to the ASCII or the BIN format and then convert it to excel using the FM "SAP_CONVERT_TO_XLS_FORMAT" or "TEXT_CONVERT_XLS_TO_SAP
I hope I have tried to answer your query.
In case of any further queries,please let know.
Regards,
Puneet Jhari. -
Saving html tables as excel files
I am generating some html tables and need to look into the possibility of saving them as an excel file. Could anybody point to any possible venues or means to do such a thing?
I have written a page that uses javascript to do just that - although it only works with IE. Here's pretty much all of the relevant code:
function CreateExcelSheet()
var x=myTable.rows
var xls = new ActiveXObject("Excel.Application")
xls.visible = true
xls.Workbooks.Add
for (i = 0; i < x.length; i++)
var y = x.cells
for (j = 0; j < y.length; j++) {
xls.Cells( i+1, j+1).Value = y[j].innerText
}The table that is copied from had to appear in the HTML form. This is updated using PHP in my case - if your table is static, you can give it an id - to match "myTable" or change the reference that is in the CreateExcelSheet function.<table style="display: none" id="myTable" border="1">
<tr><td> </td></tr>
</table>It's called via a button:<form action="#" method="post"><input type="submit" onclick="CreateExcelSheet(); return false;" value="Open as Excel spreadsheet" /></form>You can use my web form here: http://betterwindowssoftware.com/tabletoexcel.php -
While saving alv report to local file(excel) OA number not coming fully..
HI,
actually in my aliv report output OA no contains 10 characters (0010100276) but after saving into local file (excel) , it appearing in excel file only 7 characters(1010027) any one plz tell what is the reason how we rectify it.......
with regards
Ganesh.Hello Ganesh,
When you export the file from SAP to your PC, select "unconverted" radio button. Enter a file name and path, then save it with a text file (.txt) extension. Then do the following steps on your PC.
1. Open the Excel application.
2. Open the text file in the application. The system will automatically open the text import wizard.
3. Select "Fixed Width", then press next pushbutton.
4. After you parse the columns, press next pushbutton.
5. Go to the column where you want to keep leading zeros. Select "Text" in the "Column data format" box.
Kind Regards,
Rae Ellen Woytowiez
Edited by: Rae Ellen Woytowiez on Mar 8, 2011 4:27 PM -
GUI_UPLOAD - EXCEL FILE PROBLEM
Hi All,
I am using GUI_UPLOAD function for BDC. I want to upload a file but there i m gatting error. I tried with both file type excel & txt.
While running the recording it takes ##### chars.
Regards,
Dilip
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'c:\excel.xls'
FILETYPE = 'BIN'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = it_bdcDear Dilip,
I have used GUI_UPLOAD a lot, but never like this.
Well i'll tell you to upload .txt file . Download or save EXCEL file as text delimited by tab as it gets saved normally. Dont forget that except characters all other fields are in formatted as text field in Excel, they will get alinged as a normal text field only.
My txt file have data like below.
RAJESH 10
RAJSALECHA 11
BCONE 13
Then in program i have done as below.
Report ZTEST5.
PARAMETERS : FILE TYPE RLGRAP-FILENAME.
DATA : BEGIN OF IT OCCURS 0,
NAME(20),
AGE(4),
END OF IT.
DATA : PATH TYPE STRING.
PATH = FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = PATH
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = IT.
LOOP AT IT.
WRITE : /1 IT-NAME COLOR 1, 20 IT-AGE COLOR 4.
ENDLOOP.
Kindly see this and tell me if you face any problem in it.
Raj Salecha
[email protected] -
Exporting report to excel encoding problem..
Hi All!
A have a problem about encoding. I have a report and I export it into excel file. Everything is in a way. But unicode characters is not written in correct encoding. And I use encoding type everywhere "UTF-8"
I use contentType as
<%page contentType="application/vnd.ms-excel;charset=UTF-8" pageEncoding="UTF-8"%>
and print out as
StringBuffer sb = new StringBuffer();
JspWriter writer = pageContext.getOut();
writer.print(sb);
...Please help me. I couldn't solve this problem.Hi
Actually i have been doing a lot of experimentation in this for past some days.
The various alternatives are as follows:
a> DESFORMAT=SPREADSHEET attribute in case of Oracle 10g Release 2, in this case the formatting will be maintained but the report will consist of empty cells and merged cells which is not required.
b> in case of Oracle 9i, the following link may be helpful to you http://download-west.oracle.com/docs/cd/B14099_15/bi.1012/b13895/orbr_paptoexcel.htm#CIHFDJAJ . But in this case ,also the problem of empty cellas and merged cells cannot be removed.
c> the option which i have preferred is to use the tool rep2excel which is easily downloadable from http://www.lv2000.com/. With some minor changes in the report formatting u will get the desired output. You may inclde the scripts given in the manual to include the software in your normal execution. The problem of empty cells and merged cells can also be removed.
For any further queries of how to use the tool do feel free to ask -
Alv report into excel file.
Hello experts,
I have alv report , and i want to export this alv to excel file, how can i do this ?
Thanks for your help.
Avi.Hi Avi,
U can download to any format by using ctrlshiftF9 or using the button to 'Local File'. Then apopup appears as:
In which format should the list
be saved ?
And some radio buttons. U select the 'SPreadsheet' option for excel.
And click enter.Then it will prompt for the Directory and filename for saving.
Keerthi -
Saving the report in Excel format form BO
Hi Team,
Would like to know how to provide/grant an access to User to save his/her BO reports in Excel format. Save as option is not being highlited for the user for saving the data into EXcel format.
Thanks.Hi,
Just check the preferences in the WEBI,
Just goto the option under preferences and check whether Prioritize easy data processing in Excel is enabled.
Select a priority for saving to MS Excel:
Prioritize easy data processing in Excel
Regards,
Ragoth.C -
I want to make my report a excel file
My Dear:
I want make my report no display data in Pdf but when I call it make A excel file
how this??
I use Developer 10g R2
thanks
Edited by: user222 on 18/01/2011 01:40 مHi,
To get excel output from Oracle Reports without coding, you should please try the Rep2excel tool.
For more information, please see http://www.lv2000.com/rx/ -
Save alv report as excel file directly from program
Hello guys,
I require this in my work.
I want to save the ALV report tat is to be generated in the filepath that is given in the selection screen (want to save it locally eg: my windows desktop) and in the layout which is also given in the selection screen.
your comments will be very much appreciated.
Thanks in Advance,
JohnyHi Johny,
Actually we have an option to download report output in ALV but it does not download the specified on Selection-screen. For this Create on button for Excell download by setting PF status. and use USER_COMMAND event to trigger when u click on the button and download data to specified path.
1.
declare events table like this.
data :
i_events type slis_t_event,
w_events like line of i_events.
2.
Build events table .
w_events-name = 'USER_COMMAND' .
w_events-form = 'USER_COMMAND' .
append w_events to i_events.
clear w_events.
w_events-name = 'PF_STATUS_SET' .
w_events-form = 'PF_STATUS_SET' .
append w_events to i_events.
clear w_events.
3.
pass this events table through REUSE_ALV_GRID_DISPLAY.
4.
USER_COMMAND and PF_STATUS_SET call back subroutines should be like this in your case. These are nowhere called using PERFORM statement in ur program.
5.
PF_STATUS_SET' subroutine should be like this.
*& Form pf_status_set
form pf_status_set using extab type slis_t_extab.
set pf-status 'STATUS1' excluding g_extab.
"If you write like above Standard status will be gone.
"For that u have to copy standard status of any ALV program which has standard status.
"1. goto SE41 tcode. give program SAPLKKBL and status :STANDARD_FULLSCREEN .
2.Click on the Copy status button below program is ur program and status ur program status.
3. After that create your own button for Excel downlod.
endform. "pf_status_set
6.
USER_COMMAND subroutine should be like this.
*& Form user_command
form user_command using ucomm like sy-ucomm
selfield type slis_selfield.
case ucomm .
when 'XLS_DOWN'.
perform download_to_xls.
endcase.
endform. "user_command
Here is the sample program to download data into Excel file with header and Columns..
Check this program by running.
*& Report ZVENKAT_DOWNLOAD_XLS_WITH_HEAD
REPORT zvenkat_download_xls_with_head.
" Data retrieval related declarations
TYPES:
BEGIN OF t_emp_dat,
pernr TYPE pa0001-pernr,
persg TYPE pa0001-persg,
persk TYPE pa0001-persk,
plans TYPE pa0001-plans,
stell TYPE pa0001-stell,
END OF t_emp_dat,
t_attachment TYPE solisti1.
DATA:
w_emp_data TYPE t_emp_dat,
w_attachment TYPE t_attachment.
DATA:
i_emp_data TYPE STANDARD TABLE OF t_emp_dat,
i_attachment TYPE STANDARD TABLE OF t_attachment.
PARAMETERS: p_file TYPE string DEFAULT 'c:\tmp\test.xls'.
"Start-of-selection.
START-OF-SELECTION.
PERFORM get_data.
PERFORM build_xls_data_and_download.
"Form get_data from PA0001
FORM get_data.
SELECT pernr
persg
persk
plans
stell
FROM pa0001
INTO CORRESPONDING FIELDS OF TABLE i_emp_data
UP TO 4 ROWS.
ENDFORM. " get_data
"Form build_xls_data_and_download
FORM build_xls_data_and_download.
"If you have Unicode check active in program attributes then
"you will need to declare constants as follows.
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS:
con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
DATA :l_lines TYPE char10.
DESCRIBE TABLE i_emp_data LINES l_lines.
CONCATENATE 'Total no of records:' l_lines
INTO w_attachment
SEPARATED BY con_tab.
CONCATENATE con_cret
w_attachment
INTO w_attachment.
APPEND w_attachment TO i_attachment.
CLEAR w_attachment.
CONCATENATE 'PERNR' 'PERSG' 'PERSK' 'PLANS' 'STELL'
INTO w_attachment
SEPARATED BY con_tab.
CONCATENATE con_cret
w_attachment
INTO w_attachment.
APPEND w_attachment TO i_attachment.
CLEAR w_attachment.
LOOP AT i_emp_data INTO w_emp_data.
CONCATENATE w_emp_data-pernr
w_emp_data-persg
w_emp_data-persk
w_emp_data-plans
w_emp_data-stell
INTO w_attachment
SEPARATED BY con_tab.
CONCATENATE con_cret w_attachment
INTO w_attachment.
APPEND w_attachment TO i_attachment.
CLEAR w_attachment.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = p_file
write_field_separator = con_tab
TABLES
data_tab = i_attachment.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. "build_xls_data_and_download
I hope that it helps u .
Regards,
Venkat.O
Maybe you are looking for
-
please help. I have tried deleting songs on my iPhone 5c and all but one song on each album have deleted. When I try to delete these songs they just start playing. Show all music is off.
-
Converting PR into Schedule lines in mass
All SAP Gurus, We have scheduling agreements for several materials. Now in day to day working, various user departments rais the PR for these items. Then we enter the schedule for these items into the scheduling agreement (with reference to PR). But
-
How to combine text with variable in process flow
Hi, I have created a function that returns the environment that a process flow is running in, Production, Test or Development. I have been able to bind the output of the function into a variable in a process flow and bind the variable to the subject
-
I was getting this below error when iam trying to run the clientgen ant task if you could provide a solution for this that will great and this error code I got from bea site it talks this saying as been fixed in sp3 but still was working on sp4 (CR12
-
IMovie 09 voiceovers silent - another iMovie09 bug
Hello, in addition to all the iMovie bugs reported, I now observe from time to time, that iMovie changes volume of the latest voiceovers on its own. I did the following: 1. I changed some things in my iMovie project. Especially I added some voiceover