<?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 : want to replace the string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569438#M1078241</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 the data type length of variables..than it is coming right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : var1(2) type c.&lt;/P&gt;&lt;P&gt;Data : var2(4) type c.&lt;/P&gt;&lt;P&gt;Data : var3(12) type c.&lt;/P&gt;&lt;P&gt;Data : len type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2008 09:38:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-22T09:38:39Z</dc:date>
    <item>
      <title>REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569434#M1078237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I need to replace a word(GO) in a sentence with another word(GONE).  these words are stores in the variables var1(6) &amp;amp; var2(6) used the keyword REPLACE for this But I am getting some unwanted blank spaces. I used CONDENE keyword then also one blank space remains. I should not get any unwanted blank space. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : var1(6) type c.&lt;/P&gt;&lt;P&gt;Data : var2(6) type c.&lt;/P&gt;&lt;P&gt;Data : var3(15) type c.&lt;/P&gt;&lt;P&gt;Data : len type i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var1 = 'GO'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var2 = 'GONE'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var3 = 'ABCDGOEFGH'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen(var1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE var1LENGTH len WITH var2 INTO var3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the new sentence is coming like&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ABCDGONE  EFGH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used CONDENSE then again it is coming like.&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ABCDGONE EFGH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the sentence like &lt;STRONG&gt;ABCDGONEEFGH&lt;/STRONG&gt;&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;Lijo John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569434#M1078237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T09:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569435#M1078238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF 'GO' in var3 WITH 'GONE'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569435#M1078238</guid>
      <dc:creator>MilindMungaji</dc:creator>
      <dc:date>2008-09-22T09:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569436#M1078239</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 have to use &lt;STRONG&gt;CONDENSE var3 NO-GAPS&lt;/STRONG&gt; . (CONDENSE alone will reduce only to one space.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569436#M1078239</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-09-22T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569437#M1078240</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;Plz try and Check the Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condense (VAr1).&lt;/P&gt;&lt;P&gt;Condense(VAr2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace Var1 withe Var2 into Var 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:37:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569437#M1078240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T09:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569438#M1078241</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 the data type length of variables..than it is coming right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : var1(2) type c.&lt;/P&gt;&lt;P&gt;Data : var2(4) type c.&lt;/P&gt;&lt;P&gt;Data : var3(12) type c.&lt;/P&gt;&lt;P&gt;Data : len type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569438#M1078241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T09:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569439#M1078242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : var2(4) type c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569439#M1078242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T09:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569440#M1078243</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;I have changed the code written by you.&lt;/P&gt;&lt;P&gt;Check this-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data : var1(6) type c.
Data : var2(6) type c.
Data : var3(15) type c.
Data : len type i.


var1 = 'GO'.
var2 = 'GONE'.

var3 = 'ABCDGOEFGH'.

len = strlen( var1 ).

REPLACE var1 LENGTH len WITH var2 INTO var3.

condense var3 no-gaps.
write:var3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569440#M1078243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T09:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569441#M1078244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I cannot restrict the variable length. The data length will be keep changing as per the situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;va1 = 'Please raise the Travel Req'&lt;/P&gt;&lt;P&gt;var2 ='Please raise an Emergency Travel Req'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;STRONG&gt;some space should be there&lt;/STRONG&gt;. I dont want to chage that spaces also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lijo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569441#M1078244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569442#M1078245</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;Plz check your variable declaration part :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data : var1(2) type c.
Data : var2(4) type c.
Data : var3(12) type c.
Data : len type i.
&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;Use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" CONDENSE  var3 No-GAPS. "&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569442#M1078245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T09:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569443#M1078246</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 : var1(6) type c.&lt;/P&gt;&lt;P&gt;Data : var2(6) type c.&lt;/P&gt;&lt;P&gt;Data : var3(15) type c.&lt;/P&gt;&lt;P&gt;Data : len type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var1 = 'GO'.&lt;/P&gt;&lt;P&gt;var2 = 'GONE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var3 = 'ABCDGOEFGH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen( var1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE var1 LENGTH len WITH var2 INTO var3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense var3 no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write var3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surinder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 09:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569443#M1078246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: REPLACE : want to replace the string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569444#M1078247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
Data : var1(3) type c.
Data : var2(12) type c.
Data : var3(40) type c.
Data : len type i.

var1 = 'the'.
var2 = 'an Emergency'.
var3 = 'Please raise the Travel Req'.
len = strlen( var1 ).
REPLACE var1 LENGTH len WITH var2 INTO var3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 10:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-want-to-replace-the-string/m-p/4569444#M1078247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T10:26:11Z</dc:date>
    </item>
  </channel>
</rss>

