Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Export Simple list output to Excel sheet.

Former Member
0 Kudos

Hi gurus,

I have a list output as follows.

A main header

Sub header 1

table entries.

sub header 2.

table entries ,......etc.

now i want to export the same format to an excel sheet which need to sent as a mail attachment.

Is there any FM for this ? i dont want the format to be disturbed.

can headers and other entries defferentiated with colors ?

kindly help on this.

Edited by: deepan adhi on Oct 4, 2009 9:52 AM

3 REPLIES 3

former_member205763
Active Contributor
0 Kudos

All the list output data must be in some output internal table so use this fm SAP_CONVERT_TO_XLS_FORMAT to get the data into excel.

0 Kudos

Hi Karthik,

thanks for the reply.

yes there is a final internal table.

But on doing so , the format i have mentioned in the question would be changed.

i want the output format to be maintained in the excel sheet too.

thanks.

0 Kudos

write the list to memory,

and the read this memory into an internal table. this will be exactly the same way as its printed on your screen. download it.

or

create an internal table of type string, add pass data from your final internal table in the exact way you are putting it in the output.

and download this string internal table.