Application Development 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: 

HTML code appearing in single cell of excel

0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Just for those who face a similar issue, i have used the BCS class to send the email and it works fine.

Check the BCSEXample programs on usage

0 Kudos

Hi Avanish ,

Thanks a lot for your response . It solved my problem .

We use BCS classes for this type of purposes .

Thanks & Regads

Nikhil