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 and UNICODE or UTF-8

Former Member
0 Likes
11,980

Hello,

I wanted to convert some files in SAP, i.e. :

- data is processed in MS Excell and saved as Unicode file

- I read the file into SAP, process the strings and write it back

The problem is that there are some special polish characters in the file. I read the file using GUI_UPLOAD FM, but I didn't manage not to have these special characters replaced (by # by default).

Anyone came across this problem before?

Regards,

Michal

Hello,

I wanted to convert some files in SAP, i.e. :

- data is processed in MS Excell and saved as Unicode file

- I read the file into SAP, process the strings and write it back

The problem is that there are some special polish characters in the file. I read the file using GUI_UPLOAD FM, but I didn't manage not to have these special characters replaced (by # by default).

Anyone came across this problem before?

Regards,

Michal

2 REPLIES 2
Read only

Former Member
0 Likes
4,046

Hi Michal,

Try this by sending value to the CODEPAGE parameter of the function module GUI_UPLOAD. Send the respective code page value to this parameter.

Satya

Read only

4,046

Hello Satya,

Actually I forgot to write that I used the CODEPAGE parameter... I tried two cases:

1. Save as Unicode (in Excel or Notepad) and than use CODEPAGE = "4103"

2. Save as UTF-8 in Notepad and use CODEPAGE = "4110"

In both cases the polish caracters are replaced by '#'.

In fact I tried many other code pages (all from tcp00a), but all other combinations return an error.

Regards,

Michal