‎2013 Nov 27 11:23 AM
Dear Team,
how to fetch text from so10 text to word document with styles . in my so10 text i have html code for bold , font size , etc.
thanks in advance.
‎2013 Nov 27 11:56 AM
Hi,
you could use the FM READ_TEXT, which is the standar function for reading texts.
If you already have the html tag codes in the text stream, downloading directly into a file with a extension associated to Word will open it i think.
Regards
‎2013 Nov 29 6:20 AM
HI Enrique,
thank you for replay, could you explain me in brief , how to download file with .html extension.
‎2013 Nov 27 12:00 PM
Hi Chandrakala,
I doubt weather we can get the style details from from SO10 directly, but you can the properties such bold under line etc using ole concept.
refer below link for more information, refer section b) Setting font attributes to know how to pass formatting to a word file
http://wiki.scn.sap.com/wiki/display/ABAP/Download+Data+into+Word+Document+using+OLE+Automation
Regards,
Bhushan
‎2013 Nov 28 5:55 AM
Hi Nagabhushan,
Thanks for reply. in my word document contains 4 paragraphs and it contains different styles.
hence i am using so10 text . below code for dispaly word:
1.fm : read_text ---> read so10 document
2. convert table data to xstring format .
3. for dispalying document: cALL METHOD CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE .
output is dispalyed as like below:
<p> <font face="Times New Roman" size="3"> Dear Sir/Madam, <BR> The Bill DDO Request is intiated and it is pending for your approval, please take action, go to the below path DDO 123 <br> apcfms->mss->budget approval. <BR><BR> <b> Regards,<br> SAP Support Team </b>. <br> <br> <br> <b><leftr><i><font color = "BLUE"> This is an auto generated Email. </b></leftr></i></font color> </P></font>
html tags also displayed as it is in so10 text.
‎2013 Nov 28 7:11 AM
Hi Chandrakala,
Don't use HTML tags in SO10 instead refer the link provided by me to format the Data in Word file.
Regards,
Bhushan
‎2013 Dec 02 5:54 AM
HI,
i have to pass table to word document table and some screen fields also hence i am created the so10 with html tags to design table and alignement properties , how to convert html tags .
‎2013 Dec 02 6:03 AM
Hi Chandrakala.
What you can do is simply store the text in SO10. Then use OLE to display as you need
Nabheet
‎2013 Dec 02 8:44 AM
hi ,
could you tell me how to pass standard text to ole, i have so10 text with html tags .
‎2013 Nov 27 12:18 PM
‎2013 Nov 29 6:21 AM
hi ,
I want convert so10 text to word document is there any other alternative .