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: 

how to generate a text file with values from internal table

Former Member
0 Kudos

hi,

can anybody help me out to get the values from different internal table written into a text file.

regs,

raja

3 REPLIES 3

Former Member
0 Kudos

hi

use the function module

gui_download,

give the internal table name and other parameter

regards

karthik

Former Member
0 Kudos

used gui_download,ws_download,cl_gui_file_save.

data: ld_filename type string ;

ld_filename = 'c:\demo.txt'.

DATA: begin of it_datatab occurs 0,

row(500) type c,

end of it_datatab.

HII

call function 'GUI_DOWNLOAD'

exporting

filename = ld_filename

filetype = 'ASC'

tables

data_tab = it_datatab[]

exceptions

file_open_error = 1

file_write_error = 2

others = 3.

Former Member
0 Kudos

first combine the data of all internal table into one internal table and then finally download the data from internal table into text file / excel file . this you can do it either from your program using gui_download or directly from your abap debuger.

plz reward points if helps.

regards,

Rahul