<?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: Help regarding the Syntax &amp;quot;REPLACE&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012722#M711955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Goldie, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it like below:&lt;/P&gt;&lt;P&gt;Do.&lt;/P&gt;&lt;P&gt;REPLACE f   ...WITH g ...INTO h. &lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;else.&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;This will keep on replacing the field with new one till it exists and when not it will exit out of loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if reply is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2007 12:53:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-13T12:53:32Z</dc:date>
    <item>
      <title>Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012717#M711950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;        I'm stuck with a problem..... i am trying to  REPLACE ALL OCCURRENCES OF 'AND' WITH 'AND datab LE' INTO s_where-low&lt;/P&gt;&lt;P&gt;and since im working with 4.6 this syntax gives me an syntax error as it wont recognize "ALL OCCURRENCES OF" as valid syntax,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone plssss give me an alternative to achieve the above...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goldie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 12:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012717#M711950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T12:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012718#M711951</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; do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REPLACE 'AND' WITH 'AND datab LE' INTO  s_where-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 12:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012718#M711951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T12:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012719#M711952</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  like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF 'AND' IN s_where-low WITH ''AND datab LE'.&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>Tue, 13 Nov 2007 12:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012719#M711952</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-11-13T12:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012720#M711953</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;See the example below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: c4(4) TYPE C. 
c4 = 'abab'. 
REPLACE ALL OCCURRENCES OF 'ab' IN c4 WITH 'CCC'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 12:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012720#M711953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012721#M711954</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;see this example.u have to write like this.&lt;/P&gt;&lt;P&gt;DATA:   text1      TYPE string       VALUE 'I know you know',&lt;/P&gt;&lt;P&gt;        sub_string TYPE string       VALUE 'know',&lt;/P&gt;&lt;P&gt;        new        TYPE string       VALUE 'should know that'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF sub_string in text1 with new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ text1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 12:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012721#M711954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T12:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012722#M711955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Goldie, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it like below:&lt;/P&gt;&lt;P&gt;Do.&lt;/P&gt;&lt;P&gt;REPLACE f   ...WITH g ...INTO h. &lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;else.&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;This will keep on replacing the field with new one till it exists and when not it will exit out of loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if reply is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 12:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012722#M711955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012723#M711956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u satish but this syntax only replaces the first occurrence i want to replace all the occurrence's of the word!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 04:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012723#M711956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T04:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012724#M711957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u Prashant Sriram and Bharat the syntax still gives me an error im workin on 4.6 and i think "ALL OCCURRENCES OF" addition to the REPLACE syntax results in an error .... im looking for an alternative  solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 04:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012724#M711957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T04:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help regarding the Syntax "REPLACE"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012725#M711958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check Possible Operations of REPLACE below "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;replacing values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: t4(10) TYPE c VALUE 'abcdefghij',&lt;/P&gt;&lt;P&gt;      string4 LIKE t4,&lt;/P&gt;&lt;P&gt;      str41(4) TYPE c VALUE 'cdef',&lt;/P&gt;&lt;P&gt;      str42(4) TYPE c VALUE 'klmn',&lt;/P&gt;&lt;P&gt;      str43(2) TYPE c VALUE 'kl',&lt;/P&gt;&lt;P&gt;      str44(6) TYPE c VALUE 'klmnop',&lt;/P&gt;&lt;P&gt;      len4 TYPE i VALUE 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string4 = t4.&lt;/P&gt;&lt;P&gt;WRITE string4.&lt;/P&gt;&lt;P&gt;REPLACE str41 WITH str42 INTO string4.&lt;/P&gt;&lt;P&gt;WRITE / string4.&lt;/P&gt;&lt;P&gt;string4 = t4.&lt;/P&gt;&lt;P&gt;REPLACE str41 WITH str42 INTO string4 LENGTH len4.&lt;/P&gt;&lt;P&gt;WRITE / string4.&lt;/P&gt;&lt;P&gt;string4 = t4.&lt;/P&gt;&lt;P&gt;REPLACE str41 WITH str43 INTO string4.&lt;/P&gt;&lt;P&gt;WRITE / string4.&lt;/P&gt;&lt;P&gt;string4 = t4.&lt;/P&gt;&lt;P&gt;REPLACE str41 WITH str44 INTO string4.&lt;/P&gt;&lt;P&gt;WRITE / string4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;P&gt;Hope it Helps .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 04:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-regarding-the-syntax-quot-replace-quot/m-p/3012725#M711958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T04:40:26Z</dc:date>
    </item>
  </channel>
</rss>

