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

GUI_UPLOAD recognizes EOF as a string

Former Member
0 Likes
761

Hi, developers.

We replaced function module "(WS_)UPLOAD" with "GUI_UPLOAD" in add-on programs recently.

Now a difference was found.

GUI_UPLOAD recognizes EOF (=end of file) as a string.

( WS_)UPLOAD ignores EOF because EOF is a signal, not a string.

Please tell me how to have GUI_UPLOAD ignore EOF!

To solve this problem, all I can do is change add-on programs using GUI_DOWNLOAD...?

4 REPLIES 4
Read only

Former Member
0 Likes
588

Hi Naomi,

1. Do you mean that when the file is uploaded

using gui_upload in an internal table,

you are also able to see that EOF character (displayed as #)

inside the internal table?

It could be some other character also inside your file.

eg. TAB.

The file reading is something which is done by

the operating system and provided to the application.

So, normally the EOF will be interpreted as a signal only,

and not a character/string.

regards,

amit m.

Read only

0 Likes
588

amit m.

Thank you for your information!

This is the upload file.

The file type is ASC.

line1: xxxxxxxxxxx

line2: yyyyyyyyyyy

line3: zzzzzzzzzzz

line4: EOF

And this is the uploaded internal table.

line1: xxxxxxxxxxx

line2: yyyyyyyyyyy

line3: zzzzzzzzzzz

line4:

"EOF" in line 4 gets garbled.

The garbled character's hxa code is "1A".

Could you give me more advise?

Naomi S.

Read only

0 Likes
588

Hi again,

1. Do you mean to say that LINE4 is empty.

If yes, then line4 should not be ideally there!

2. What you can do for checking purpose is

create a notepad file (.TXT) and try to save 3 or 4 lines

and then upload and check.

regards,

amit m.

Read only

0 Likes
588

To amit m.

Thank you for your cooperation.

But now I close my question

because SAP says it is a feature that GUI_UPLOAD recognizes EOF as a string on OSS.

Naomi S.