Application Development and Automation 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: 
Read only

File type in Session Method

Former Member
0 Likes
560

Hi All,

This is in the session method in the upload function....

I am getting error"""""Unable to interpret "FILE NAME". Possible causes of error: incorrect spelling or comma error.""""" and the code is as follows..

  • TO UPLOAD FLAT FILE TO INTERNAL TABLE.

CALL FUNCTION 'UPLOAD'

  • EXPORTING

*CODEPAGE =''

FILENAME = 'E:\RAJASAP\SELECTIONSCREEN.TXT'

FILETYPE ='ASC'

  • ITEM = ' '

could any one help me in this issue.

Message was edited by:

Rajashekhar Reddy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

Hi,

<b>uncomment exporting</b>

  • TO UPLOAD FLAT FILE TO INTERNAL TABLE.

CALL FUNCTION 'UPLOAD'

<b>EXPORTING</b>

*CODEPAGE =''

FILENAME = 'E:\RAJASAP\SELECTIONSCREEN.TXT'

FILETYPE ='ASC'

  • ITEM = ' '

3 REPLIES 3
Read only

Former Member
0 Likes
540

hi rajashekar reddy

use GUI_UPLOAD funtion with correct path

it won't give error

Read only

Former Member
0 Likes
541

Hi,

<b>uncomment exporting</b>

  • TO UPLOAD FLAT FILE TO INTERNAL TABLE.

CALL FUNCTION 'UPLOAD'

<b>EXPORTING</b>

*CODEPAGE =''

FILENAME = 'E:\RAJASAP\SELECTIONSCREEN.TXT'

FILETYPE ='ASC'

  • ITEM = ' '

Read only

varma_narayana
Active Contributor
0 Likes
540

Hi Rajasekhar..

See the Changes in BOLD

CALL FUNCTION 'UPLOAD'

<b>EXPORTING</b> "you have to uncomment this..

*CODEPAGE =''

FILENAME = 'E:\RAJASAP\SELECTIONSCREEN.TXT'

FILETYPE ='ASC'

  • ITEM = ' '

And one more thing

Call the FM GUI_UPLOAD instead of UPLOAD which is Obsolete .

<b>Reward if Helpful</b>