<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to format string text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079636#M1704233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the delayed reply,&lt;/P&gt;&lt;P&gt;The itab i populate while fetching data is a ztructure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, to populate the excel sheet, i pass the values to a new structure in this form&lt;/P&gt;&lt;P&gt;data: it_attach &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;solisti1 &lt;SPAN class="L0S52"&gt;INITIAL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SIZE &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S32"&gt;The structure solisti1 has one component of type SO_TEXT255&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S32"&gt;Looking forward to your expertise.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 04:34:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-05T04:34:29Z</dc:date>
    <item>
      <title>How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079634#M1704231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;I am passing my internal table as String into an excel sheet. But i need to Bold and change font etc for some values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;Is there any way i can use xml tags or anything else to get the output i want ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;Would appreciate some help on this.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 11:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079634#M1704231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-02T11:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079635#M1704232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your Itab Data is displayed in SAP List. Or any CHAR255 field of ALV..? &lt;/P&gt;&lt;P&gt;or Do you just have the Data in the ITAB of type String/Char.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 11:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079635#M1704232</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2012-11-02T11:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079636#M1704233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for the delayed reply,&lt;/P&gt;&lt;P&gt;The itab i populate while fetching data is a ztructure .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, to populate the excel sheet, i pass the values to a new structure in this form&lt;/P&gt;&lt;P&gt;data: it_attach &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;solisti1 &lt;SPAN class="L0S52"&gt;INITIAL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SIZE &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S32"&gt;The structure solisti1 has one component of type SO_TEXT255&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S32"&gt;Looking forward to your expertise.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 04:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079636#M1704233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-05T04:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079637#M1704234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes you can play around with XML tags&lt;/P&gt;&lt;P&gt;Try doing an reverse engineering&lt;/P&gt;&lt;P&gt;save the excel sheet in the form of HTML and try identify the source&lt;/P&gt;&lt;P&gt;and try populating the tag with required values into internal table and then you can achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this example, it is achieved in same way what is said&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ABAP/email/Index.htm"&gt;http://www.saptechnical.com/Tutorials/ABAP/email/Index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;S.Janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 04:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079637#M1704234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-05T04:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079638#M1704235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay Jenagar, I'll try and see&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 04:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079638#M1704235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-05T04:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079639#M1704236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can work with CL_IXML to do this or you can use OLE.&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Formatted+Excel+as+Email+Attachment"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Formatted+Excel+as+Email+Attachment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can find lot of articles for OLE here in SCN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shambu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 05:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079639#M1704236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-05T05:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079640#M1704237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Shambu but actually i think i cant use OLE cause my program needs to run in the background&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 05:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079640#M1704237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-05T05:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079641#M1704238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Befor moving your entries in structure, try using FORMAT INTENSIFIED. I am not sure about font change but you can hit n trial below for BOLD option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.FORMAT INTENSIFIED INPUT.&lt;/P&gt;&lt;P&gt;&amp;nbsp; WRITE 5 'JOHN'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;FORMAT INTENSIFIED OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Addition 1&lt;/P&gt;&lt;P&gt;... COLOR n [ON] or ...COLOR OFF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Color of line background . n can have the following values: &lt;/P&gt;&lt;P&gt;OFF or COL_BACKGROUND Background &lt;/P&gt;&lt;P&gt;1 or COL_HEADING Headers (grayish blue) &lt;/P&gt;&lt;P&gt;2 or COL_NORMAL List body (bright gray) &lt;/P&gt;&lt;P&gt;3 or COL_TOTAL&amp;nbsp; Totals (yellow) &lt;/P&gt;&lt;P&gt;4 or COL_KEY&amp;nbsp; Key columns (bluish green) &lt;/P&gt;&lt;P&gt;5 or COL_POSITIVE Positive threshold value(green) &lt;/P&gt;&lt;P&gt;6 or COL_NEGATIVE Negative threshold value (red) &lt;/P&gt;&lt;P&gt;7 or COL_GROUP&amp;nbsp; Control levels (violet) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 05:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079641#M1704238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-05T05:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079642#M1704239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the more reason to use CL_IXML.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 05:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079642#M1704239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-05T05:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079643#M1704240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Since you mention solisti1 I am asuming that you are using fm SO_NEW_DOCUMENT_ATT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can compose your mail using html with the full power of html in your hand.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Your user can copy and paste the content to Excel while retaining the fancy appearance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to specify the "PACKING_LIST" entry as sopcklsti1-doc_type&amp;nbsp; = 'HTML'&lt;BR /&gt;You need to create a string that will contain the full html for the main message or attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are done you have to chop the string to fit SOLISTI1-line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: big_string TYPE string ."Contain the html message&lt;/P&gt;&lt;P&gt;DATA: it_contents TYPE srm_t_solisti1 .&lt;BR /&gt;DATA: st_contents LIKE LINE OF it_contents .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DO .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; st_contents-line = big_string .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND st_contents TO it_contents .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHIFT big_string LEFT BY 255 PLACES .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF big_string IS INITIAL.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDDO .&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; big_string = '' .&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; A test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/153303" height="248" width="543" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 06:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079643#M1704240</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2012-11-05T06:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to format string text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079644#M1704241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this tag &lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;&lt;SPAN class="pun"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;b&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;bold&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;b&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt; &lt;/P&gt;&lt;P&gt;Reference from &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://stackoverflow.com/questions/9999713/html-text-with-tags-to-formatted-text-in-an-excel-cell"&gt;http://stackoverflow.com/questions/9999713/html-text-with-tags-to-formatted-text-in-an-excel-cell&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 07:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-format-string-text/m-p/9079644#M1704241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-05T07:21:26Z</dc:date>
    </item>
  </channel>
</rss>

