<?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: Replacing space with '.' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893767#M1689203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i checked then link in krupa's post.it solved my my problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i found another way to do it....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translate lv_uname using ' .' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here we have to give a space before the dot in the single qotes..&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;&lt;/P&gt;&lt;P&gt;Noufal Rahman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2012 16:55:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-07-05T16:55:03Z</dc:date>
    <item>
      <title>Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893760#M1689196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which I need to replace all the spaces in a string with '.'. When I write the below code it is throwing dumb ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;REPLACE &lt;SPAN class="L0S52"&gt;all &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;occurrences &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of&amp;nbsp; ' ' &lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;IN&amp;nbsp; &lt;/SPAN&gt;LV_UNAME&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'.' &lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error I am getting is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt; The exception, which is assigned to class 'CX_SY_REPLACE_INFINITE_LOOP', was&lt;/P&gt;&lt;P&gt;&amp;nbsp; not caught and&lt;/P&gt;&lt;P&gt; therefore caused a runtime error.&lt;/P&gt;&lt;P&gt; The reason for the exception is:&lt;/P&gt;&lt;P&gt; In the running program "ZSREE_TEST32", the command "REPLACE ALL OCCURENCES&lt;/P&gt;&lt;P&gt; OF "' '" ... " was to be executed. However, field "' '" has the length 0,&lt;/P&gt;&lt;P&gt; which would have resulted in an endless loop. Therefore, the program&lt;/P&gt;&lt;P&gt; was terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 11:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893760#M1689196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T11:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893761#M1689197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the dump says, you tried to replace the '' in an empty field.&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;If not lv_uname is initial.&lt;/P&gt;&lt;P&gt; replace all occ.......&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 11:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893761#M1689197</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-07-05T11:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893762#M1689198</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;It is always good to use the syntax FIND before REPLACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;FIND FIRST OCCURRENCE OF " "&amp;nbsp;&amp;nbsp; IN lv_uname.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;If Sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;REPLACE ALL OCC...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;if sy-subrc = 0, it means we have atleast one search string the field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;if sy-subrc NE 0, it means we dont have search sting in the field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;~Niranjan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893762#M1689198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T12:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893763#M1689199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try to use this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find space in LV_UNAME.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;REPLACE &lt;SPAN class="L0S52"&gt;all &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;occurrences &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of&amp;nbsp; space &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN&amp;nbsp; &lt;/SPAN&gt;LV_UNAME&amp;nbsp; &lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'.' &lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893763#M1689199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T12:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893764#M1689200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do (n) times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace ' ' with '.' into (your string)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n would be total words used in your string or if you sure string may not contain words more then 100 or 1000 or whatever then you can use fix number of loop ..i.e n = 10 or n = 100 or n = 1000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893764#M1689200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T12:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893765#M1689201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the following link&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/578006" title="http://scn.sap.com/thread/578006"&gt;http://scn.sap.com/thread/578006&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/1321898" title="http://scn.sap.com/thread/1321898"&gt;http://scn.sap.com/thread/1321898&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893765#M1689201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893766#M1689202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EDIT: IGNORE THIS POST. Krupa posted the correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is lv_uname actually a string, or is it something with a set length like sy-uname? If its something with a fixed length, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt; &lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;CODE&gt;DATA: lv_uname &lt;SPAN class="L0S52"&gt;TYPE syuname,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_length &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;i.&lt;BR /&gt; &lt;BR /&gt; lv_uname = &lt;SPAN class="L0S33"&gt;'John Doe'&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt; lv_length = strlen( lv_uname ).&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;DO &lt;/SPAN&gt;lv_length TIMES.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;lv_uname+sy-index(1) &lt;SPAN class="L0S52"&gt;IS &lt;/SPAN&gt;INITIAL.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_uname+sy-index(1) = &lt;SPAN class="L0S33"&gt;'.'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ENDIF.&lt;BR /&gt; ENDDO.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason though, this code is adding an extra '.' at the very end of lv_uname. You can always remove that one character though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lv_uname+lv_length(1) = space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:12:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893766#M1689202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T13:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893767#M1689203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i checked then link in krupa's post.it solved my my problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i found another way to do it....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translate lv_uname using ' .' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here we have to give a space before the dot in the single qotes..&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;&lt;/P&gt;&lt;P&gt;Noufal Rahman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 16:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893767#M1689203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T16:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893768#M1689204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't that what the second link in Krupa's post told you to do? That's not another way, its the way that was recommending.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 13:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893768#M1689204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-09T13:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893769#M1689205</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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Translate lv_uname &lt;SPAN class="L0S52"&gt;using &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;' . '&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Maria João Rocha&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 16:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893769#M1689205</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2012-07-09T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing space with '.'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893770#M1689206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just change ' ' to ` `.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 04:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-space-with/m-p/8893770#M1689206</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-07-10T04:49:51Z</dc:date>
    </item>
  </channel>
</rss>

