<?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 simple query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218558#M476015</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;     I have situation where I want to remve word "plant" from the characer string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g      harry mark plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the above string I want to move the word "plant".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should I go about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2007 18:00:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-27T18:00:25Z</dc:date>
    <item>
      <title>simple query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218558#M476015</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;     I have situation where I want to remve word "plant" from the characer string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g      harry mark plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the above string I want to move the word "plant".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should I go about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 18:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218558#M476015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T18:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: simple query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218559#M476016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make use of delete or replace keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str = "harry mark plant".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurence of "plant" in str with space.&lt;/P&gt;&lt;P&gt;this might not be the exact syntax. just check with F1 help. and the same with delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Prabhu  S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 18:01:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218559#M476016</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2007-04-27T18:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: simple query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218560#M476017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Str(20) = 'harry mark plant'&lt;/P&gt;&lt;P&gt;use REPLACE command to replace the word plant with space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 18:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218560#M476017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T18:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: simple query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218561#M476018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using SHIFT command. For e.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STR1 = 'harry mark plant'&lt;/P&gt;&lt;P&gt;STR2 = 'plant'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHIFT STR1 RIGHT DELETING TRAILING STR2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SKJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 18:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218561#M476018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T18:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: simple query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218562#M476019</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: WA_STRING TYPE STRING VALUE 'harry mark plant'.
                                                                        
REPLACE ALL OCCURRENCES OF 'plant' IN WA_STRING WITH ' '.
WRITE: / WA_STRING.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 18:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218562#M476019</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-27T18:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: simple query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218563#M476020</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;To replace a string in a field with a different string, use the REPLACE statement.&lt;/P&gt;&lt;P&gt;REPLACE &amp;lt;str1&amp;gt; WITH &amp;lt;str2&amp;gt; INTO &amp;lt;c&amp;gt; [LENGTH &amp;lt;l&amp;gt;].&lt;/P&gt;&lt;P&gt;The statement searches the field &amp;lt;c&amp;gt; for the first occurrence of the first &amp;lt;l&amp;gt; positions of the&lt;/P&gt;&lt;P&gt;pattern &amp;lt;str1&amp;gt;. If no length is specified, it searches for the pattern &amp;lt;str1&amp;gt; in its full length.&lt;/P&gt;&lt;P&gt;Then, the statement replaces the first occurrence of the pattern &amp;lt;str1&amp;gt; in field &amp;lt;c&amp;gt; with the string&lt;/P&gt;&lt;P&gt;&amp;lt;str2&amp;gt;. If a length &amp;lt;l&amp;gt; was specified, only the relevant part of the pattern is replaced.&lt;/P&gt;&lt;P&gt;If the return code value of the system field SY-SUBRC is set to 0, this indicates that &amp;lt;str1&amp;gt; was&lt;/P&gt;&lt;P&gt;found in &amp;lt;c&amp;gt; and replaced by &amp;lt;str2&amp;gt;. A return code value other than 0 means that nothing was&lt;/P&gt;&lt;P&gt;replaced. &amp;lt;str1&amp;gt;, &amp;lt;str2&amp;gt;, and &amp;lt;len&amp;gt; can be variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T(10) VALUE 'abcdefghij',&lt;/P&gt;&lt;P&gt;STRING LIKE T,&lt;/P&gt;&lt;P&gt;STR1(4) VALUE 'cdef',&lt;/P&gt;&lt;P&gt;STR2(4) VALUE 'klmn',&lt;/P&gt;&lt;P&gt;STR3(2) VALUE 'kl',&lt;/P&gt;&lt;P&gt;STR4(6) VALUE 'klmnop',&lt;/P&gt;&lt;P&gt;LEN TYPE I VALUE 2.&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;REPLACE STR1 WITH STR2 INTO STRING.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;REPLACE STR1 WITH STR2 INTO STRING LENGTH LEN.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;REPLACE STR1 WITH STR3 INTO STRING.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;STRING = T.&lt;/P&gt;&lt;P&gt;REPLACE STR1 WITH STR4 INTO STRING.&lt;/P&gt;&lt;P&gt;WRITE / STRING.&lt;/P&gt;&lt;P&gt;The output appears as follows:&lt;/P&gt;&lt;P&gt;abcdefghij&lt;/P&gt;&lt;P&gt;abklmnghij&lt;/P&gt;&lt;P&gt;abklmnefgh&lt;/P&gt;&lt;P&gt;abklghij&lt;/P&gt;&lt;P&gt;abklmnopgh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 18:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218563#M476020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T18:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: simple query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218564#M476021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 06:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-query/m-p/2218564#M476021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-28T06:37:32Z</dc:date>
    </item>
  </channel>
</rss>

