‎2008 Aug 11 6:32 AM
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...?
‎2008 Aug 11 6:57 AM
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.
‎2008 Aug 11 7:43 AM
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.
‎2008 Aug 11 8:33 AM
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.
‎2008 Sep 09 11:37 AM
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.