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: 

Is there a FM to download internal table to spreadsheet with diff formating

Former Member
0 Kudos

Hi,

Can anyone please tel me if we can change the format of fields downloaded to excel sheet.

Actually..i am displaying an ALV using reuse_alv_grid_display and also exporting the list to spreadsheet. But the problem is that during printout the last 2 columns are not getting displayed in excel.

So, is it possible that i can download to excel with, say, small font sizes.

5 REPLIES 5

0 Kudos

HI,

think problem with the fieldcatlog.

uncomment the parameter like ref_tabname for all fields if you pass that.

Former Member
0 Kudos

Hi Inder,

Please see the link below:

[ABAP code snippet to upload Excel file into an internal table & display it in alv format |http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=60655105]

Regards,

Md Ziauddin.

Former Member
0 Kudos

Ziauddin,

the snippet in the link is from excel to internal table but i want from internal table to excel and also reduce the font size in excel as i am not getting all the columns while printing the list from excel.

Sreeram,

i tried to uncomment that parameter but thats not resolving the issue.

0 Kudos

Use GUI_DOWNLOAD....

OttoGold
Active Contributor
0 Kudos

Read here: Happy reporting with Excel III: /people/otto.gold/blog/2010/06/23/happy-reporting-with-excel-iii-there-and-back

check also part 1 about OLE and part 2 about XML excel.

Regards Otto