<?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: stiring operation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370575#M809052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: text TYPE string VALUE `Roll :over`, &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;SEARCH text FOR ':'. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search ends at the first hit and sy-fdpos is set to the offset of the found pattern or to the word in the search area. If the pattern is not found, then sy-fdpos is set to value 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2008 09:05:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-25T09:05:55Z</dc:date>
    <item>
      <title>stiring operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370573#M809050</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;How can i search for a symbol in the string.&lt;/P&gt;&lt;P&gt;For example in need to search wheather &lt;STRONG&gt;:&lt;/STRONG&gt; is there or not in the following string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Euro:hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 09:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370573#M809050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T09:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: stiring operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370574#M809051</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;use cs statment in the if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;if   string cs ':'.&lt;/P&gt;&lt;P&gt;   .....&lt;/P&gt;&lt;P&gt;endif.&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;Santosh Thorat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 09:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370574#M809051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T09:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: stiring operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370575#M809052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: text TYPE string VALUE `Roll :over`, &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;SEARCH text FOR ':'. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search ends at the first hit and sy-fdpos is set to the offset of the found pattern or to the word in the search area. If the pattern is not found, then sy-fdpos is set to value 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 09:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370575#M809052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T09:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: stiring operation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370576#M809053</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 search a character field for a particular pattern, use the SEARCH statement as follows:&lt;/P&gt;&lt;P&gt;SEARCH &amp;lt;c&amp;gt; FOR &amp;lt;str&amp;gt; &amp;lt;options&amp;gt;.&lt;/P&gt;&lt;P&gt;The statement searches the field &amp;lt;c&amp;gt; for &amp;lt;str&amp;gt; starting at position &amp;lt;n1&amp;gt;. If successful, the return code value of SY-SUBRC is set to 0 and SY-FDPOS is set to the offset of the string in the field &amp;lt;c&amp;gt;. Otherwise, SY-SUBRC is set to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;str&amp;gt;----&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;Function&lt;/P&gt;&lt;P&gt;&amp;lt;pattern&amp;gt;--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="-------" /&gt;Searches for &amp;lt;pattern&amp;gt; (any sequence of characters).--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;Trailing blanks are ignored.&lt;/P&gt;&lt;P&gt;.&amp;lt;pattern&amp;gt;.----&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;Searches for &amp;lt;pattern&amp;gt;. Trailing blanks are not ignored.&lt;/P&gt;&lt;P&gt;*&amp;lt;pattern&amp;gt;----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;A word ending with &amp;lt;pattern&amp;gt; is sought.&lt;/P&gt;&lt;P&gt;&amp;lt;pattern&amp;gt;*----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;Searches for a word starting with &amp;lt;pattern&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Words are separated by blanks, commas, periods, semicolons, colons, question marks, exclamation marks, parentheses, slashes, plus signs, and equal signs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;option&amp;gt; in the SEARCH FOR statement can be any of the following:&lt;/P&gt;&lt;P&gt;  ABBREVIATED&lt;/P&gt;&lt;P&gt;Searches the field &amp;lt;c&amp;gt; for a word containing the string in &amp;lt;str&amp;gt;. The characters can be separated by other characters. The first letter of the word and the string &amp;lt;str&amp;gt; must be&lt;/P&gt;&lt;P&gt;the same.&lt;/P&gt;&lt;P&gt;  STARTING AT &amp;lt;n1&amp;gt;&lt;/P&gt;&lt;P&gt;Searches the field &amp;lt;c&amp;gt; for &amp;lt;str&amp;gt; starting at position &amp;lt;n1&amp;gt;. The result SY-FDPOS refers to the offset relative to &amp;lt;n1&amp;gt; and not to the start of the field.&lt;/P&gt;&lt;P&gt;  ENDING AT &amp;lt;n2&amp;gt;&lt;/P&gt;&lt;P&gt;Searches the field &amp;lt;c&amp;gt; for &amp;lt;str&amp;gt; up to position &amp;lt;n2&amp;gt;.&lt;/P&gt;&lt;P&gt;  AND MARK&lt;/P&gt;&lt;P&gt;If the search string is found, all the characters in the search string (and all the characters in between when using ABBREVIATED) are converted to upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;DATA STRING(30) VALUE 'This is a little sentence.'.&lt;/P&gt;&lt;P&gt;WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;ULINE /1(26).&lt;/P&gt;&lt;P&gt;SEARCH STRING FOR 'X'.&lt;/P&gt;&lt;P&gt;WRITE: / 'X', SY-SUBRC UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;SY-FDPOS UNDER 'SY-FDPOS'&lt;/P&gt;&lt;P&gt;SEARCH STRING FOR 'itt '.&lt;/P&gt;&lt;P&gt;WRITE: / 'itt ', SY-SUBRC UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;SY-FDPOS UNDER 'SY-FDPOS'&lt;/P&gt;&lt;P&gt;SEARCH STRING FOR '.e .'.&lt;/P&gt;&lt;P&gt;WRITE: / '.e .', SY-SUBRC UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;SY-FDPOS UNDER 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;SEARCH STRING FOR '*e'.&lt;/P&gt;&lt;P&gt;WRITE: / '*e ', SY-SUBRC UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;SY-FDPOS UNDER 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;SEARCH STRING FOR 's*'.&lt;/P&gt;&lt;P&gt;WRITE: / 's* ', SY-SUBRC UNDER 'SY-SUBRC',&lt;/P&gt;&lt;P&gt;SY-FDPOS UNDER 'SY-FDPOS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To just compare if there is string like that, then do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF STR CS ':'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2008 09:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/stiring-operation/m-p/3370576#M809053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-25T09:08:44Z</dc:date>
    </item>
  </channel>
</rss>

