Skip to Content
0
Jun 23, 2009 at 12:25 PM

HTML code appearing in single cell of excel

41 Views

Hi ,

My requirement was to mail the data in the an internal table as an attachment.

I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to do.

I am converting the data in the internal table into html format using WWW_ITAB_TO_HTML fm.

I am then passing this html data to the SO_NEW_DOCUMENT_ATT_SEND_API1.While doing so i am naming the attached as AAA .XLS.

The same code is present in the unicode and non-unicode systems.

When the user clicks on the mail attachment in non-unicode system, he is able to view the data in the html format in excel sheet.

In the non-unicode system, i observed that the entire HTML code sits in a single cell of the excel attachment.As a result i cannot see the data.

Also the first line of the html code is empty and the second line contains script. It does not contain an

Can someone provide some solution to the problem ?

Thanks,

Avanish Joshi