<?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 inserting line feed in text. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876890#M1594334</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;I have a text which needs to be created in header/item texts of sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; text ='THIS IS!HEADERTEXT!WELCOME' .. &lt;/P&gt;&lt;P&gt;now it needs to be saved  in the header/item text as shown below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS IS&lt;/P&gt;&lt;P&gt;HEADER TEXT&lt;/P&gt;&lt;P&gt;WELCOME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.,  '!' needs to be replaced by the line feed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE all OCCURRENCES OF '!' in text WITH cl_abap_char_utilities=&amp;gt;cr_lf. .but still am unable to save the text with line feed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me the alternatives. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sures&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 05:29:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-16T05:29:28Z</dc:date>
    <item>
      <title>inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876890#M1594334</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;I have a text which needs to be created in header/item texts of sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; text ='THIS IS!HEADERTEXT!WELCOME' .. &lt;/P&gt;&lt;P&gt;now it needs to be saved  in the header/item text as shown below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS IS&lt;/P&gt;&lt;P&gt;HEADER TEXT&lt;/P&gt;&lt;P&gt;WELCOME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.,  '!' needs to be replaced by the line feed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE all OCCURRENCES OF '!' in text WITH cl_abap_char_utilities=&amp;gt;cr_lf. .but still am unable to save the text with line feed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest me the alternatives. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sures&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 05:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876890#M1594334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T05:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876891#M1594335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;REPLACE all OCCURRENCES OF '!' in text WITH cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where have you written this code? How are you "saving" this text? Please elaborate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 05:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876891#M1594335</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-05-16T05:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876892#M1594336</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;The replace statement will work fine.. It will result in "THIS IS##HEADERTEXT##WELCOME." But then how you are saving your text in Sales header/text. Explain briefly about your requirement. Where you are trying to see the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimala P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 06:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876892#M1594336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T06:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876893#M1594337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using below one in the replace statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 06:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876893#M1594337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T06:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876894#M1594338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = 'THIS IS!HEADER TEXT!WELCOME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to save the text as &lt;/P&gt;&lt;P&gt;THIS IS &lt;/P&gt;&lt;P&gt;HEADER TEXT&lt;/P&gt;&lt;P&gt;WELCOME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that means "!" should be replace by the line feed so that the next character will be printed on the next line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls. suggest the possibilities to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 06:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876894#M1594338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T06:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876895#M1594339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vimala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, in debuggind mode its appearing as 'THIS IS##HEADER TEXT##WELCOME' ..but when i execute it , in the output its showing as 'THIS IS##HEADER TEXT##WELCOME' rather  than in different lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to save the text in differentl lines in the header text of the sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 06:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876895#M1594339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T06:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876896#M1594340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suresh,&lt;/P&gt;&lt;P&gt;Do you use the function 'SAVE_TEXT'  for saving the header text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, you have split the text in three different lines of internal table which you are filling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Filippo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 07:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876896#M1594340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T07:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876897#M1594341</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 check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:lv_string type string.
data:it type table of string.

lv_string = 'THIS IS!HEADERTEXT!WELCOME' .
split lv_string at '!' into table it.
loop at it into lv_string.
  if sy-tabix = 1.
  lines-tdformat = '*'.
  else.
  lines-tdformat = '/'.  
  endif.
  lines-tdline = lv_string.
  append lines.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 07:58:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876897#M1594341</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-05-16T07:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876898#M1594342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 08:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876898#M1594342</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-05-16T08:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876899#M1594343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
lv_string = 'THIS IS
                 HEADERTEXT
                 WELCOME' .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 08:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876899#M1594343</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-05-16T08:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876900#M1594344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sures,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe following approach works:&lt;/P&gt;&lt;P&gt;If not, you can further try ASCII-code 10 instead of 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  lv_hex_cr  TYPE x VALUE 13 LENGTH 4,
  lv_char_cr TYPE c
.
FIELD-SYMBOLS:
  &amp;lt;lv_char_cr&amp;gt; TYPE c
.

ASSIGN lv_hex_cr TO &amp;lt;lv_char_cr&amp;gt; CASTING TYPE c.
MOVE &amp;lt;lv_char_cr&amp;gt; TO lv_char_cr.
REPLACE all OCCURRENCES OF '!' in text WITH lv_char_cr
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Hubert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 11:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876900#M1594344</guid>
      <dc:creator>hubert_heitzer</dc:creator>
      <dc:date>2011-05-16T11:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: inserting line feed in text.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876901#M1594345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the following code for your requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lt_message_body TYPE bcsy_text VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;            ls_message      TYPE string,&lt;/P&gt;&lt;P&gt;            ls_text         TYPE string VALUE 'THIS IS!HEADERTEXT!WELCOME',&lt;/P&gt;&lt;P&gt;            lv_char         TYPE c      VALUE '!',&lt;/P&gt;&lt;P&gt;            ls_rest         TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT ls_text AT lv_char INTO ls_message ls_rest.&lt;/P&gt;&lt;P&gt;APPEND ls_message TO lt_message_body.&lt;/P&gt;&lt;P&gt;WHILE ls_rest IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;  MOVE ls_rest TO ls_text.&lt;/P&gt;&lt;P&gt;  CLEAR ls_message.&lt;/P&gt;&lt;P&gt;  SPLIT ls_text AT lv_char INTO ls_message ls_rest.&lt;/P&gt;&lt;P&gt;  APPEND ls_message TO lt_message_body.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;APPEND ls_rest TO lt_message_body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"lt_message_body" will contain the text in desired format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Koushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 12:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-line-feed-in-text/m-p/7876901#M1594345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-16T12:16:19Z</dc:date>
    </item>
  </channel>
</rss>

