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: 

Data transfer from Internal table to MS-Excel

Former Member
0 Kudos

Hi,

I would like to know if there are ways to transfer the contents of an internal table to an excel sheet.

Thanks in advance,

Hema

7 REPLIES 7

Former Member
0 Kudos

hii

use GUI_DOWNLOAD

<b>http://www.thespot4sap.com/Articles/Download_to_excel.asp</b>check this link

<b>

Regards

Naresh

former_member188685
Active Contributor
0 Kudos

Hi,

check these links..

http://www.sapdevelopment.co.uk/file/file_updown.htm

Regards

vijay

Message was edited by: Vijay Babu Dudla

rahulkavuri
Active Contributor
0 Kudos

REPORT Z50657.

DATA: IMARD TYPE TABLE OF MARD WITH HEADER LINE.

START-OF-SELECTION.

SELECT * INTO TABLE IMARD UP TO 60 ROWS FROM MARD.

CALL FUNCTION 'WS_EXCEL'

EXPORTING

FILENAME = 'TS.XLS'

TABLES

DATA = IMARD.

REFER TO THIS THREAD TOO

Former Member
0 Kudos

use GUI_DOWNLOAD with field_separator = 'X'.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = 'C:\file.xls'

FILETYPE = 'ASC'

WRITE_FIELD_SEPARATOR = 'X'

TABLES

DATA_TAB = ITAB

  • EXCEPTIONS

  • FILE_WRITE_ERROR = 1

  • NO_BATCH = 2

regards

srikanth.

Former Member
0 Kudos

Hi,

Use the following FM.

1)ws_download

2)gui_download.

i think you can met your requirement

thanks

Sunil.

Former Member
0 Kudos

Hello Hema,

check these links:

www.visualsap.com/onecoltemplate.htm

regards,

keerthi.

Former Member
0 Kudos

HI,

use GUI_DOWNLOAD function module

follow this steps:

pass your final internal table to that

give file name

file type as DAT

give a parameter for filepath on the selection screen.

filename = your parameter name

filetype = 'ASC'

has_field_separator = 'X'

tables = your final internal table

rgds,

latheesh