Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

Read_Text with the smart style then create attachment

$
0
0

Hi Experts,

 

I need to send an email with an attachment. The content of the attachment comes from a document text which can be retrieved via the READ_TEXT FM.

 

The problem is, the user maintain the text with the Graphical PC Editor. User can enter anything in the text and sometimes the user uses the tab character to format and align the text.

 

When I get the content of the text and attach it using the cl_document_bcs. The tab alignment get messy, and after further research, this is because the the text in SAP uses the SYSTEM smart style, where the font family, font size and the tab width are different than the default word document.

 

My question is, how to get the content of the text and make it an attachment with a good tab alignment? (maybe to get the text content along with the styles that it has?)

 

 

 

Thank you,

Suwandi C.


Viewing all articles
Browse latest Browse all 3280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>