<?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 Problem with SEARCH statement in the program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403527#M817291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have below program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_1(03) TYPE C,&lt;/P&gt;&lt;P&gt;          V_2 TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_1 = '9.0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH V_1 FOR '.' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '.' IN V_1 WITH ' '.&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;&lt;/P&gt;&lt;P&gt;but search statement is not working,it sy-subrc eq 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me why it is like this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2008 18:39:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-22T18:39:13Z</dc:date>
    <item>
      <title>Problem with SEARCH statement in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403527#M817291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have below program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: V_1(03) TYPE C,&lt;/P&gt;&lt;P&gt;          V_2 TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_1 = '9.0'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH V_1 FOR '.' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE '.' IN V_1 WITH ' '.&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;&lt;/P&gt;&lt;P&gt;but search statement is not working,it sy-subrc eq 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me why it is like this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 18:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403527#M817291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T18:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SEARCH statement in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403528#M817292</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 this way...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: V_1(03) TYPE C,
V_2 TYPE STRING.

V_1 = '9.0'.

REPLACE '.' IN V_1 WITH ' '.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 18:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403528#M817292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T18:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SEARCH statement in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403529#M817293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From F1 on SEARCH:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement SEARCH has been replaced with the statement FIND in Release 6.10. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search patterns 'str' and '.str.' are identical apart from a few exceptions. You must &lt;/P&gt;&lt;P&gt;use '.str.' when the pattern str contains spaces (at the end), the '.' character (at the &lt;/P&gt;&lt;P&gt;beginning and end), or the '*' character (at the end). You should also use '.str.' when the &lt;/P&gt;&lt;P&gt;search string str is variable and you cannot predict when you write the statement what the &lt;/P&gt;&lt;P&gt;contents of the string will be. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v_1(03) TYPE c,
v_2 TYPE string.

v_1 = '9.0'.

SEARCH v_1 FOR '...' .         &amp;lt;====

IF sy-subrc EQ 0.

  REPLACE '.' IN v_1 WITH ' '.

ENDI&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it will compress the space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 22, 2008 1:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 18:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403529#M817293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T18:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SEARCH statement in the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403530#M817294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easy solution.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


DATA: V_1(03) TYPE C,
V_2 TYPE STRING.

V_1 = '9.0'.

TRANSLATE V_1 using '. '.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 19:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-search-statement-in-the-program/m-p/3403530#M817294</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-02-22T19:02:32Z</dc:date>
    </item>
  </channel>
</rss>

