<?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 remove ##  symbol from string. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619119#M1440197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am bale to get the text without ## symbol in test program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_string =  ' ##He completed successful delivery of ##NanoTime cons. ##He did '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; split w_string at '.' into w_string1 w_string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSM_REPLACE_CHAR_BY_SPACE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT_STRING        = w_string1&lt;/P&gt;&lt;P&gt;    CHAR                = '#'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT_STRING        = w_string1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SSM_REPLACE_CHAR_BY_SPACE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT_STRING        = w_string2&lt;/P&gt;&lt;P&gt;    CHAR                = '#'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT_STRING        = w_string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : w_string1.&lt;/P&gt;&lt;P&gt;write : w_string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i use same code in my development it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my origibnal code is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split ls_instr3 at '. ' into w_str1 w_str2 w_str3 w_str4. +++&amp;gt; here  ls_instr3  is with text from FM output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SSM_REPLACE_CHAR_BY_SPACE'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT_STRING        = w_str2&lt;/P&gt;&lt;P&gt;    CHAR                = '#'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT_STRING        = w_str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in debugging mode when i change the text  with copy paste. I mean just copying the same text from w_str2 and pasting in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting why this not working.  as per my observation, when we hardcode the text it is working. when getting the text from FM and passing it to   CALL FUNCTION 'SSM_REPLACE_CHAR_BY_SPACE' it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve the above issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even below one :::---&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data l_string type string VALUE `## The replacement ## was sucessful !!!`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace ALL OCCURRENCES OF REGEX '(##)' in l_string with ''.&lt;/P&gt;&lt;P&gt;CONDENSE l_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : l_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;having the same problem. In test program it is working. in my original development it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Kishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 12:38:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-02T12:38:58Z</dc:date>
    <item>
      <title>how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619103#M1440181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing a problem to remove ## symbol from string field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using following different ways to remove it , it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : text1 TYPE  string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text1 = ' ## He completed ## successful'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) REPLACE all occurrences of '##' IN:&lt;/P&gt;&lt;P&gt;        text1 WITH '  ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) TRANSLATE text1  using  '##   '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) find is also not working to find the ##.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;always subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any boady help to sole the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 11:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619103#M1440181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619104#M1440182</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;Replace # with horizontal tab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Local Constants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONSTANTS : lc_tab(1) TYPE c VALUE                    "Horizontal Tab&lt;/P&gt;&lt;P&gt;                                 cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 11:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619104#M1440182</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2010-02-01T11:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619105#M1440183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because ## is actually some garbage character. You should search the forum for CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 11:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619105#M1440183</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-01T11:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619106#M1440184</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;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;symbol is used for new line carried feed variable. It can be replaced with the following code.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Replace all occurances of CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB in string with space&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Replace all occurances of CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE in string with space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manas M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 12:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619106#M1440184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619107#M1440185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope using  REPLACE solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 12:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619107#M1440185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T12:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619108#M1440186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; # symbol is used for new line carried feed variable.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should re-phrase it as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;symbol is generally used as a replacement character for new line carried feed variable.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 12:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619108#M1440186</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-01T12:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619109#M1440187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Suhas Saha wrote:&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; Kumar Manas Mishra wrote:&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; # symbol is used for new line carried feed variable.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; You should re-phrase it as :&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; # symbol is generally used as a replacement character for new line carried feed variable.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; BR,&lt;/P&gt;&lt;P&gt;&amp;gt; Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is because Kumar mindlessly copy&amp;amp;pasted it from Abhii's post in this thread: &lt;SPAN __jive_macro_name="thread" id="1553515"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kumar's user ID will be deleted for repeatedly violating the forum rules and ignoring moderator requests / warnings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 14:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619109#M1440187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619110#M1440188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How long will the Guest-o-blaster take for charging up ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 14:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619110#M1440188</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-02-01T14:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619111#M1440189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Almost unbelievable persistence!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are warming up the guest-o-blaster and documenting a few things...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 15:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619111#M1440189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-01T15:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619112#M1440190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  try this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: p_string TYPE string VALUE 'ABC##DE##F#G',&lt;/P&gt;&lt;P&gt;      l1 TYPE i,&lt;/P&gt;&lt;P&gt;      l2 TYPE C,&lt;/P&gt;&lt;P&gt;      l3 TYPE string,&lt;/P&gt;&lt;P&gt;      l4(2) TYPE c VALUE '  ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l1 = strlen( p_string ).&lt;/P&gt;&lt;P&gt;DO l1 TIMES.&lt;/P&gt;&lt;P&gt;l1 = l1 - 1.&lt;/P&gt;&lt;P&gt;l2 = p_string+l1(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if l2 ca 'QWERTYUIOPLKJHGFDSAZXCVBNM0987654321 '.&lt;/P&gt;&lt;P&gt;   CONCATENATE l2 l3 INTO l3.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  REPLACE l2 WITH l4 INTO l2.&lt;/P&gt;&lt;P&gt;  CONCATENATE l2 l3 INTO l3 SEPARATED BY space.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;WRITE: l3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 05:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619112#M1440190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T05:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619113#M1440191</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 use the following code as an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data l_string type string VALUE `## The replacement ## was sucessful !!!`.

replace ALL OCCURRENCES OF REGEX '(##)' in l_string with ''.
CONDENSE l_string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read the following article for further detail on Regular expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Regex Toy- Testing Regular Expressions In ABAP|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f9cd701-0b01-0010-87b8-f86f9b7b823f]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 06:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619113#M1440191</guid>
      <dc:creator>Faaiez</dc:creator>
      <dc:date>2010-02-02T06:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619114#M1440192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faaiez Sallie ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine when i write a test program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i am using the same in my code it is not wotking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see my code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_content1 into ls_content1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_string = ls_content1-line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace ALL OCCURRENCES OF REGEX '(##)' in w_string  with ' '.&lt;/P&gt;&lt;P&gt;*CONDENSE w_string.&lt;/P&gt;&lt;P&gt;ls_content1-line = w_string.&lt;/P&gt;&lt;P&gt;*modify lt_content from ls_content1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am surprised.  please let me know what could be the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Kishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 07:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619114#M1440192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T07:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619115#M1440193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, it's time to ask a really silly and basic question. How do you know that hash characters exist in the string?. In previous posts it's already been pointed out that unprintable characters like line-feed and carriage returns will show as Hash characters when displayed/printed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't use &lt;STRONG&gt;REPLACE all occurances of '##&lt;/STRONG&gt;' unless there physically are hash characters in the string, which by all accounts sounds like there are not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If is a carriage-return/line-feed in the string you can remove it like this, as alrwady pointed out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_crlf(2) type X value '0D0A'. &lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF v_crlf IN str WITH SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 08:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619115#M1440193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619116#M1440194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use replace keyword in loop statement . definitly it will work as per your requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 08:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619116#M1440194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T08:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619117#M1440195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or simply use fm PREPARE_STRING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 09:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619117#M1440195</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2010-02-02T09:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619118#M1440196</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;find the test code below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: hex1(1)  TYPE x VALUE 'A0'.&lt;/P&gt;&lt;P&gt;DATA: hex2(1)  TYPE x VALUE '20'.&lt;/P&gt;&lt;P&gt;DATA: uhex1(2) TYPE x VALUE '00A0'.&lt;/P&gt;&lt;P&gt;DATA: uhex2(2) TYPE x VALUE '0020'.&lt;/P&gt;&lt;P&gt;DATA: char1(1) TYPE c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: test_string TYPE string VALUE 'Stuff in here'.&lt;/P&gt;&lt;P&gt;DATA: test_xstring TYPE xstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Convert the Character String to Binary String&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SCMS_STRING_TO_XSTRING'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    text   = test_string&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    buffer = test_xstring.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF cl_abap_char_utilities=&amp;gt;charsize = 1.&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURENCES OF hex1 IN test_xstring WITH hex2 IN BYTE MODE.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  REPLACE ALL OCCURENCES OF uhex1 IN test_xstring WITH uhex2 IN BYTE MODE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLEAR test_string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  convin  TYPE REF TO cl_abap_conv_in_ce.&lt;/P&gt;&lt;P&gt;CALL METHOD cl_abap_conv_in_ce=&amp;gt;create&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input = test_xstring&lt;/P&gt;&lt;P&gt;  RECEIVING&lt;/P&gt;&lt;P&gt;    conv  = convin.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL METHOD convin-&amp;gt;read&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    data = test_string.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE: / test_string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 11:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619118#M1440196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T11:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619119#M1440197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am bale to get the text without ## symbol in test program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; w_string =  ' ##He completed successful delivery of ##NanoTime cons. ##He did '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; split w_string at '.' into w_string1 w_string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSM_REPLACE_CHAR_BY_SPACE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT_STRING        = w_string1&lt;/P&gt;&lt;P&gt;    CHAR                = '#'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT_STRING        = w_string1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SSM_REPLACE_CHAR_BY_SPACE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT_STRING        = w_string2&lt;/P&gt;&lt;P&gt;    CHAR                = '#'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT_STRING        = w_string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : w_string1.&lt;/P&gt;&lt;P&gt;write : w_string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i use same code in my development it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my origibnal code is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split ls_instr3 at '. ' into w_str1 w_str2 w_str3 w_str4. +++&amp;gt; here  ls_instr3  is with text from FM output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'SSM_REPLACE_CHAR_BY_SPACE'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT_STRING        = w_str2&lt;/P&gt;&lt;P&gt;    CHAR                = '#'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT_STRING        = w_str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in debugging mode when i change the text  with copy paste. I mean just copying the same text from w_str2 and pasting in debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting why this not working.  as per my observation, when we hardcode the text it is working. when getting the text from FM and passing it to   CALL FUNCTION 'SSM_REPLACE_CHAR_BY_SPACE' it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to solve the above issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even below one :::---&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data l_string type string VALUE `## The replacement ## was sucessful !!!`.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace ALL OCCURRENCES OF REGEX '(##)' in l_string with ''.&lt;/P&gt;&lt;P&gt;CONDENSE l_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : l_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;having the same problem. In test program it is working. in my original development it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Kishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 12:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619119#M1440197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619120#M1440198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kishan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam not sure if you already tried with the class attributes.&lt;/P&gt;&lt;P&gt;Check this once:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:c_tab VALUE cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB,
      text1 TYPE string.

REPLACE ALL OCCURRENCES OF c_tab IN text1 WITH space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is not working check with new line attribute as well.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: c_new value cl_abap_char_utilities=&amp;gt;newline,
      text1 TYPE string.
REPLACE ALL OCCURRENCES OF c_new IN text1 WITH space.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 13:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619120#M1440198</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-02-02T13:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619121#M1440199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried with the same . No use..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Kishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 15:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619121#M1440199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T15:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove ##  symbol from string.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619122#M1440200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its done....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 09:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-remove-symbol-from-string/m-p/6619122#M1440200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-16T09:34:03Z</dc:date>
    </item>
  </channel>
</rss>

