<?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: ABAP COMMAND REPLACE  (Points will be awarded) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704902#M626585</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 Command will replace only the first String.&lt;/P&gt;&lt;P&gt;You can use Translate Command for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg.,&lt;/P&gt;&lt;P&gt;Data : String(20) Type C Value 'Ad$$$$$$$$$$$$$'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE STRING USING '$ '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2007 08:34:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-13T08:34:17Z</dc:date>
    <item>
      <title>ABAP COMMAND REPLACE  (Points will be awarded)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704899#M626582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Guys &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string e.g Ad$$$$$$$$$$$$$.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I use REPLACE '$' WITH ' ' INTO L_NAME, replace command only replaces the first $ with '   ' from string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I want to replace all $ signs. Note I am using SAP 4.6C and I think the command replace all occurance not working 4.6C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also not no of occurances of $ is not fix in field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704899#M626582</guid>
      <dc:creator>adnanmaqbool</dc:creator>
      <dc:date>2007-08-13T08:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP COMMAND REPLACE  (Points will be awarded)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704900#M626583</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;This is the Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF '$' WITH ' ' INTO L_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704900#M626583</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-13T08:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP COMMAND REPLACE  (Points will be awarded)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704901#M626584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adnan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use replace all occurances of '$' WITH ' ' INTO L_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704901#M626584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP COMMAND REPLACE  (Points will be awarded)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704902#M626585</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 Command will replace only the first String.&lt;/P&gt;&lt;P&gt;You can use Translate Command for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg.,&lt;/P&gt;&lt;P&gt;Data : String(20) Type C Value 'Ad$$$$$$$$$$$$$'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE STRING USING '$ '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704902#M626585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP COMMAND REPLACE  (Points will be awarded)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704903#M626586</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;&lt;/P&gt;&lt;P&gt;otherwise find the length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen ( l_name).&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;REPLACE '$' WITH ' ' INTO L_NAME.&lt;/P&gt;&lt;P&gt;l_name = l_name.&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;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704903#M626586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP COMMAND REPLACE  (Points will be awarded)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704904#M626587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE STRLEN to get the length of the string,&lt;/P&gt;&lt;P&gt;declare a in index as i,&lt;/P&gt;&lt;P&gt;count from index one as first character and than you use the REPLACE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 08:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704904#M626587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-13T08:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP COMMAND REPLACE  (Points will be awarded)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704905#M626588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;alternatively you use this&lt;/P&gt;&lt;P&gt;[code]&lt;/P&gt;&lt;P&gt;sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while sy-subrc = 0.&lt;/P&gt;&lt;P&gt;REPLACE '$' WITH ' ' INTO L_NAME.&lt;/P&gt;&lt;P&gt;endwhile.[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kostas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2007 09:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-command-replace-points-will-be-awarded/m-p/2704905#M626588</guid>
      <dc:creator>kostas_tsioubris</dc:creator>
      <dc:date>2007-08-13T09:19:28Z</dc:date>
    </item>
  </channel>
</rss>

