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

encoding problem in xls

0 Likes
1,595

Hi All,

I have to read information from a txt file, which contains Greek language/characters.

Using gui_upload it is uploading and displaying some other character.

How to read from the txt file which should return the Greek character.

Advance thanks,

Balamurugan.R

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,103

Hello Bala,

I agree with the solution Prashant provided, you must use the addition CODEPAGE in GUI_UPLOAD func. module.

For Greek characters the SAP Codepage is 1704. You should try having a look @ SAP Note 73606.

Hope this helps.

BR,

Suhas

7 REPLIES 7
Read only

Former Member
0 Likes
1,103

Pass the codepage value wrt the language which you are uploading :

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
CODEPAGE = V_CODEPAGE
..........
..........

While saving the file in Notepad.. when you click on SAVE AS .. in ENCODING pass Unicode

Best regards,

Prashant

Read only

tarangini_katta
Active Contributor
0 Likes
1,103

Hi,

While ur saving the file save it is NON_unicode.

Then it will work for you.

Like this i have solved my pblm.

Thanks,

Read only

Former Member
0 Likes
1,103

Hi...

I dont think so its an encoding problem....may be the problem is with ur tabs in the text file..just check the tabs again and then try and upload file..see what is being uploaded in your internal table though file while debugging

thanks

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,104

Hello Bala,

I agree with the solution Prashant provided, you must use the addition CODEPAGE in GUI_UPLOAD func. module.

For Greek characters the SAP Codepage is 1704. You should try having a look @ SAP Note 73606.

Hope this helps.

BR,

Suhas

Read only

0 Likes
1,103

HI Suhas,

If bala is using unicode system it doesn#t matter by specifying code page as i suppose.

Because unicode system has to accept all the codepages.

so beeter to save the file in non unicoefformat.

Thanks,

Read only

0 Likes
1,103

Hi Suhas,

Thank you. It is working.

I am generating xls file and attach it for mail using FM

SO_NEW_DOCUMENT_ATT_SEND_API1 .

The Polish language symbol not appearing in XLS file.

what to do.

Thanks

Balamurugan.R

Read only

0 Likes
1,103

Good.