<?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 SPLIT for line break on ## in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081751#M975969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a message for an internal abap ticket system.&lt;/P&gt;&lt;P&gt;The message is entered by an user on a bsp site. The Function module i have to use only takes the message as a table of char200 lines. So i have to put every 200 chars in another line of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is: I can't recognize the line breaks of the HTML. They are in the String from the site as ##. I tried the following: The split statement does not recognize the ## and does not split properly. can anyone please help? help will be rewarded!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;while split_while = 'X'.

    clear lwa_text2.
    lwa_text = lv_html.
    replace all occurrences of lwa_text in lv_html with ''.

    "add new lines on '##'
    split lwa_text at '##' into table lt_split in character mode.
    if lt_split is initial.
      loop at lt_split into lwa_text.
        append lwa_text to lt_text.
      endloop.
    else.
      append lwa_text to lt_text.
    endif.


    if lv_html is initial.
      clear split_while.
    endif.
  endwhile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS a lot !&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 14:59:31 GMT</pubDate>
    <dc:creator>alpaca</dc:creator>
    <dc:date>2008-06-27T14:59:31Z</dc:date>
    <item>
      <title>SPLIT for line break on ##</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081751#M975969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a message for an internal abap ticket system.&lt;/P&gt;&lt;P&gt;The message is entered by an user on a bsp site. The Function module i have to use only takes the message as a table of char200 lines. So i have to put every 200 chars in another line of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is: I can't recognize the line breaks of the HTML. They are in the String from the site as ##. I tried the following: The split statement does not recognize the ## and does not split properly. can anyone please help? help will be rewarded!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;while split_while = 'X'.

    clear lwa_text2.
    lwa_text = lv_html.
    replace all occurrences of lwa_text in lv_html with ''.

    "add new lines on '##'
    split lwa_text at '##' into table lt_split in character mode.
    if lt_split is initial.
      loop at lt_split into lwa_text.
        append lwa_text to lt_text.
      endloop.
    else.
      append lwa_text to lt_text.
    endif.


    if lv_html is initial.
      clear split_while.
    endif.
  endwhile.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS a lot !&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 14:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081751#M975969</guid>
      <dc:creator>alpaca</dc:creator>
      <dc:date>2008-06-27T14:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT for line break on ##</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081752#M975970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use the  CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF instead of ##.&lt;/P&gt;&lt;P&gt;use:&lt;/P&gt;&lt;P&gt; split lwa_text at CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF into table lt_split in character mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; split lwa_text at '##' into table lt_split in character mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 15:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081752#M975970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T15:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT for line break on ##</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081753#M975971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP usually uses the # symbol for special characters that it can't interpret. Try having a look in class CL_ABAP_CHAR_UTILITIES at the attributes. A common one is the Carriage Return / Line Feed characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 15:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081753#M975971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T15:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT for line break on ##</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081754#M975972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM  "RKD_WORD_WRAP" to split the text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RKD_WORD_WRAP'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          textline            = wa_final-ldesc&lt;/P&gt;&lt;P&gt;          outputlen           = 72&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          out_lines           = i_outlen&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          outputlen_too_large = 1&lt;/P&gt;&lt;P&gt;          OTHERS              = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 15:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081754#M975972</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-06-27T15:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: SPLIT for line break on ##</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081755#M975973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;he guys:) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot !! 3 very helpful answers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; rewarded !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 15:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-for-line-break-on/m-p/4081755#M975973</guid>
      <dc:creator>alpaca</dc:creator>
      <dc:date>2008-06-27T15:15:33Z</dc:date>
    </item>
  </channel>
</rss>

