2008 Aug 04 6:01 AM
Hi to all,
Can anybody tell me the function module to bring the output of a report in excel sheet in Microsoft Office 2007.
I have the function module which can print the output in Office 2003 but that FM is not working in case of office 2007.
Thanks in advance.
2008 Aug 04 6:07 AM
Hi...
You can use... GUI_DOWNLOAD function module.
and pass the following importing parameters..,
> FILENAME = p_file
> FILETYPE = 'DAT'
> WRITE_FIELD_SEPARATOR = 'X'
If every thing is ok...! Thats other setting problem. Because we can down load Excel 2007 with above function module..!
Thanks,
Naveen Inuganti.
Hi to all,
Can anybody tell me the function module to bring the output of a report in excel sheet in Microsoft Office 2007.
I have the function module which can print the output in Office 2003 but that FM is not working in case of office 2007.
Thanks in advance.
2008 Aug 04 6:07 AM
Hi...
You can use... GUI_DOWNLOAD function module.
and pass the following importing parameters..,
> FILENAME = p_file
> FILETYPE = 'DAT'
> WRITE_FIELD_SEPARATOR = 'X'
If every thing is ok...! Thats other setting problem. Because we can down load Excel 2007 with above function module..!
Thanks,
Naveen Inuganti.
2008 Aug 04 6:07 AM
2008 Aug 04 6:11 AM
2008 Aug 04 6:12 AM
Hi
Use this
CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
EXPORTING
i_field_seperator = 'X'
* I_LINE_HEADER =
i_filename = p_pcfile
* I_APPL_KEEP = 'X'
TABLES
i_tab_sap_data = it_excel
* CHANGING
* I_TAB_CONVERTED_DATA =
EXCEPTIONS
conversion_failed = 1
OTHERS = 2
.
2008 Aug 04 6:12 AM
Hi Abhijeet.
I would like to suggest a couple of references,
[SDN Library - Standard Reference - PDF - Creating Reports with Microsoft Office 2007 Data Files|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/105142f1-8f1e-2b10-ddac-dbbd038ba53b]
[SDN - Reference - MS Office 2007 and ALV queries download to excel|;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave
2008 Aug 04 6:14 AM
hiii
which FM you are using? i think GUI_DOWNLOAD will work here.try using that.
regards
twinkal
2008 Aug 04 6:20 AM
hi,
if u want automaticallu use GUI_DOWNLOAD or WS_DOWNLOAD
OR by manually
Execute the report goto LIST--> save/send --> office
2008 Aug 04 6:23 AM
Hi
Use the function module "SAP_CONVERT_TO_XLS_FORMAT" to upload the data to an excel file.
Hope it helps.
Murthy
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |