<?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: Replace string by space in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368566#M808445</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; Try the below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: val1  type  char10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  val1 = '1,2,3,4,5'.&lt;/P&gt;&lt;P&gt;  write : / val1.&lt;/P&gt;&lt;P&gt;  do.&lt;/P&gt;&lt;P&gt;  replace ',' with ' ' into val1.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;  write : / val1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 02:22:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T02:22:45Z</dc:date>
    <item>
      <title>Replace string by space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368565#M808444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to replace all ',' appear in a strng by space. So, i use&lt;/P&gt;&lt;P&gt;replace all occurrences of ',' in tempStr with space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the outcome is all pattern are replaced, and concatenate together. For example, i have string &lt;/P&gt;&lt;P&gt;tempStr = '1,2,3,4,5,6,7'&lt;/P&gt;&lt;P&gt;But the result is &lt;/P&gt;&lt;P&gt;tempStr = 1234567&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i replace the string by space. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 01:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368565#M808444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T01:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string by space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368566#M808445</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; Try the below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: val1  type  char10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  val1 = '1,2,3,4,5'.&lt;/P&gt;&lt;P&gt;  write : / val1.&lt;/P&gt;&lt;P&gt;  do.&lt;/P&gt;&lt;P&gt;  replace ',' with ' ' into val1.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;  write : / val1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 02:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368566#M808445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T02:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string by space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368567#M808446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: tempStr type string value '1,2,3,4,5,6,7'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF REGEX ',' IN tempstr WITH ''.&lt;/P&gt;&lt;P&gt;write:/ tempstr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 03:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368567#M808446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T03:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace string by space</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368568#M808447</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : tempstr type string,&lt;/P&gt;&lt;P&gt;temp(2) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempStr = '1,2,3,4,5,6,7'&lt;/P&gt;&lt;P&gt;temp = ', '.&lt;/P&gt;&lt;P&gt;Translate tempstr using temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write tempstr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 04:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-string-by-space/m-p/3368568#M808447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T04:14:17Z</dc:date>
    </item>
  </channel>
</rss>

