Skip to Content
0
Former Member
Apr 24, 2007 at 12:21 PM

reading data from flat file to internal table without selection screen

118 Views

i'm reading from presentatiion server.

i have a sample notepad file with contains perners like

1

2

3

4

now i need to read this notepad file to internal table

after reading to internal table simply i need to add one more perner through program.

for this i'm taking an internal table

Data: begin of it_p0001 occurs 0,

pernr(20),

end of it_p0001.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

FILENAME = 'C:\TEST.TXT'

FILETYPE = 'ASC'

TABLES

DATA_TAB = it_p0001.

but this function module giving an exception "File_open_error".

how to trouble shoot that.