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

Cannot interpret data in file this error

former_member189009
Active Participant
0 Likes
882

when i use this FM to upload a txt,it occur this error:    Cannot interpret data in file

but the most strange is when i use my colleague computer to tun this program with the same txt document, it have no error.

so why this happen?

the FM like this:

CALL FUNCTION 'WS_UPLOAD'

    EXPORTING

*   CODEPAGE                      = ' '

       filename                      = a_file

       filetype                      = 'DAT'

     TABLES

       data_tab                      = itab

1 ACCEPTED SOLUTION
Read only

former_member189009
Active Participant
0 Likes
695

It is a stupid question,because my colleague just use the different program, which the upload template is different.

4 REPLIES 4
Read only

GauthamV
Active Contributor
0 Likes
695

WS_UPLOAD is an obsolete function module which is used in versions before ECC 5.0.

It is replaced with function module GUI_UPLOAD.

Are you passing the file name (a_file) manually or it is hard coded in program ?

You might have been using a variant in which file name had path related to your colleague.

Regards,

Gautham.

Read only

former_member189009
Active Participant
0 Likes
696

It is a stupid question,because my colleague just use the different program, which the upload template is different.

Read only

0 Likes
695

Hello Zhang,

I would like to know whether the problem with your program is resolved or not?

Thanks and Regards

Nivash S

Read only

0 Likes
695

it is resolved,thanks!