<?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: How to Find a String in another String in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636155#M875713</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 can use a RANGE too.&lt;/P&gt;&lt;P&gt;it's work for a field or an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF rtab OCCURS {10|n}, &lt;/P&gt;&lt;P&gt;        sign(1)   TYPE c, &lt;/P&gt;&lt;P&gt;        option(2) TYPE c, &lt;/P&gt;&lt;P&gt;        low       LIKE dobj, &lt;/P&gt;&lt;P&gt;        high      LIKE dobj, &lt;/P&gt;&lt;P&gt;      END OF sel. &lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;Reward point if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2008 09:36:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-04T09:36:02Z</dc:date>
    <item>
      <title>How to Find a String in another String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636152#M875710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using abap program ,&lt;/P&gt;&lt;P&gt;in this program i want to search one string in to another string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"How to Find a String in another String"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wether abap is having some functionality? pls send me the details about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Raghvendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 09:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636152#M875710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T09:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find a String in another String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636153#M875711</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 can use CS comparison operator for that or SEARCH statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the documentation on those keywords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 09:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636153#M875711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T09:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find a String in another String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636154#M875712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CS .. contains string &lt;/P&gt;&lt;P&gt;if v_string1 CS v_string2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 09:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636154#M875712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T09:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find a String in another String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636155#M875713</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 can use a RANGE too.&lt;/P&gt;&lt;P&gt;it's work for a field or an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF rtab OCCURS {10|n}, &lt;/P&gt;&lt;P&gt;        sign(1)   TYPE c, &lt;/P&gt;&lt;P&gt;        option(2) TYPE c, &lt;/P&gt;&lt;P&gt;        low       LIKE dobj, &lt;/P&gt;&lt;P&gt;        high      LIKE dobj, &lt;/P&gt;&lt;P&gt;      END OF sel. &lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;Reward point if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 09:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636155#M875713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T09:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find a String in another String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636156#M875714</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;Find out the positiomn of ur string in the orginal string in sy-fdpos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: text TYPE string VALUE 'Roll. .over Beethoven',&lt;/P&gt;&lt;P&gt;      pos TYPE i.&lt;/P&gt;&lt;P&gt;SEARCH text FOR 'ol'.&lt;/P&gt;&lt;P&gt;SEARCH text FOR ` `.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  pos = sy-fdpos + 2.&lt;/P&gt;&lt;P&gt;    SEARCH text FOR 'th' STARTING AT pos.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 09:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636156#M875714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T09:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find a String in another String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636157#M875715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this short example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF REPORT OCCURS 0,&lt;/P&gt;&lt;P&gt;         TEXT(255),&lt;/P&gt;&lt;P&gt;      END   OF REPORT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA: PRG LIKE SY-REPID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRG = SY-REPID.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;READ REPORT PRG INTO REPORT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;LOOP AT REPORT.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  SEARCH REPORT-TEXT FOR 'LOOP'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    WRITE: / SY-TABIX, SY-FDPOS, REPORT-TEXT(60).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 09:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636157#M875715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-04T09:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Find a String in another String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636158#M875716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey ..&lt;/P&gt;&lt;P&gt;try out this code ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lv_string = 'Hello World'.
FIND 'o' IN lv_string. "sets sy-subrc to 0 if 'o' was found, or 4 otherwise&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if useful , Reward&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards.&lt;/P&gt;&lt;P&gt;Anoop Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2008 10:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-in-another-string/m-p/3636158#M875716</guid>
      <dc:creator>anoop_gupta2</dc:creator>
      <dc:date>2008-04-04T10:06:57Z</dc:date>
    </item>
  </channel>
</rss>

