2008 Feb 13 3:27 PM
Hi experts,
I have a requirement to send ALV report as excel file to external receiver. The excel file should be formatted like the ALV list (with all sums .).
Till now to send excel I was using SO_DOCUMENT_SEND_API1. I assume, that if I will pass to this function proper formatted internal table, I will be able to send a file which will be opened on receiver frontend in format, in which ALV list was designed (?).
Can I download the ALV list to internal table so all the formats, the whole layout, will be kept in excel file?
Thank you
Hi experts,
I have a requirement to send ALV report as excel file to external receiver. The excel file should be formatted like the ALV list (with all sums .).
Till now to send excel I was using SO_DOCUMENT_SEND_API1. I assume, that if I will pass to this function proper formatted internal table, I will be able to send a file which will be opened on receiver frontend in format, in which ALV list was designed (?).
Can I download the ALV list to internal table so all the formats, the whole layout, will be kept in excel file?
Thank you
2008 Feb 13 3:37 PM
May be create a spool of your ALV and read the spool and send it thru
fm SO_DOCUMENT_SEND_API1.
a®
2008 Feb 13 4:12 PM
Hi,
how to convert then sap-spool to excel file?
thank you
Regards
Juzio
2008 Feb 13 4:25 PM
Try this way
"1. Call the following fm to read the spool.
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
"2. Call the following fm to convert the Spool output into XLS format
CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = '|'
I_LINE_HEADER = '-'
I_FILENAME = 'ZTEST.xls'
TABLES
I_TAB_SAP_DATA = i_spool_output
CHANGING
i_tab_converted_data = i_spool_excel
a®
2008 Feb 13 4:34 PM
hi
good
SAP Recommends the Use of Report RSTXPDFT4 to Convert spool to PDF. You can download your PDF to Presentation Server also using this report.
thanks
mrutyun^
2008 Feb 13 4:38 PM
2008 Feb 13 5:18 PM
Hi,
Please refer to the [link|http://www.sapdev.co.uk/reporting/email/attach_xls.htm]
Thanks,
Sriram Ponna.
2008 Feb 14 8:50 AM
Hi all,
PLEASE read the question. i know how to send an email, the problem is i need to send it formatted like ALV list (with sums) as excel attachement. The idea was to send it first to the sap-spool, get it from there, convert to excel and send. i know how to read spool, but with FM SAP_CONVERT_TO_XLS_FORMAT i am not able to convert the spool to xls. The changing parameter of this FM remains empty after function call. What can be wrong? i call the FM with parameters from the anwser above.
thank you.