cancel
Showing results for 
Search instead for 
Did you mean: 

MIME-Download Unicode System

Former Member
0 Kudos

Hello,

i am trying to send the content of an internel table via mime-download from ITS to open Excel on WebGui.

I am doing this in an Unicode-System.

In fact, the content is shown in Excel, but not correctly.

The chars like 'ÖÜÄ' etc. are not shown correctly.

What do i have to do to avoid this.

Has someone an idea for me?

My coding is something like: mime-download itab tablesize 'application/vnd.ms-excel' .

I suspect that mime-download is unicode-unable?

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

cris_hansen
Advisor
Advisor
0 Kudos

Hi Taner,

Are you using the methods from class cl_gui_frontend_services to have this export? You can try using method CLIPBOARD_EXPORT, which contains a call to the ITS_CLIPBOARD_EXPORT function.

You should avoid using any FM to have this export done; the recommended way to have upload/download functionality in your custom program (via WEBGUI) is using the methods from the a.m. class.

I hope this helps.

Best regards,

Cristiano

Former Member
0 Kudos

Hello Cristiano,

no i am not using the class cl_gui_frontend_services, because this does not open excel directly and there does not happen

any download to excel with the class-methods from Web-Gui.

The macro mime-download opens Excel directly, fills Excel with needed data from Web-Gui. It works fine.

The only problem i have is, some of the characters are shown wrong. So i thought, it might be an unicode problem.

We are working in unicode system now. At non-unicode system, all characters are shown as well.

Thanx a lot for answers

Regards

cris_hansen
Advisor
Advisor
0 Kudos

Hi Taner,

Please use FM ALEWEB_DOWNLOAD instead of macro mime-download.

SAP note 608489 will help you in this process.

Best regards,

Cristiano

Former Member
0 Kudos

Hello Cristiano,

thanx a lot for your response.

It works with the FM 'ALEWEB_DOWNLOAD'.

But you have to give attention to the parameters:

mime_type = 'application/vnd.ms-excel'

DATA_TYPE = 'RAW'

I dont know how to determine the parameter data_len.

I have just taken a long integer, like 9999999999, it works. But here it must be the data size of the internal table.

Have you got any suggestions?

Regards

Former Member
0 Kudos

Hello Cristiano,

thanx a lot for your response.

It works with the FM 'ALEWEB_DOWNLOAD'.

But you have to give attention to the parameters:

data_len = 999999999

mime_type = 'application/vnd.ms-excel'

DATA_TYPE = 'RAW'

I dont know how to determine the parameter data_len.

I have just taken a long integer, like 999999999, it works. But here must be the data size of the internal table.

Have you got any suggestions?

Regards

Edited by: taner öztürkmen on Jul 13, 2010 6:02 PM

Edited by: taner öztürkmen on Jul 13, 2010 6:03 PM