<?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 how to find a string into 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-into-another-string/m-p/3838754#M923006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     I'm trying to give a validation on the input file name which is given below.I dont want to hard code the path.when i'm giving F4 help it should pick only &lt;/P&gt;&lt;P&gt;' C.028 Project Plan balances_DMTHMPLAN ' file .if the file having different name is picked than it should give an error.&lt;/P&gt;&lt;P&gt;I'm trying to do this via this code.&lt;/P&gt;&lt;P&gt;Can anyone help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_FILE NP ' &lt;STRONG&gt;C.028 Project Plan balances_DMTHMPLAN&lt;/STRONG&gt;' .&lt;/P&gt;&lt;P&gt;   IF SY-FDPOS = 1.&lt;/P&gt;&lt;P&gt;     MESSAGE E000 WITH TEXT-001 .&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2008 12:19:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-13T12:19:20Z</dc:date>
    <item>
      <title>how to find a string into another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838754#M923006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     I'm trying to give a validation on the input file name which is given below.I dont want to hard code the path.when i'm giving F4 help it should pick only &lt;/P&gt;&lt;P&gt;' C.028 Project Plan balances_DMTHMPLAN ' file .if the file having different name is picked than it should give an error.&lt;/P&gt;&lt;P&gt;I'm trying to do this via this code.&lt;/P&gt;&lt;P&gt;Can anyone help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_FILE NP ' &lt;STRONG&gt;C.028 Project Plan balances_DMTHMPLAN&lt;/STRONG&gt;' .&lt;/P&gt;&lt;P&gt;   IF SY-FDPOS = 1.&lt;/P&gt;&lt;P&gt;     MESSAGE E000 WITH TEXT-001 .&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838754#M923006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a string into another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838755#M923007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CS keyword and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means contains string&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838755#M923007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a string into another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838756#M923008</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;SEARCH f FOR g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nicole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838756#M923008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a string into another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838757#M923009</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;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF P_FILE NS ' C.028 Project Plan balances_DMTHMPLAN' .
   MESSAGE E000 WITH TEXT-001 .
ENDIF. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838757#M923009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a string into another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838758#M923010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dheeraj, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          You can try using CS (Contains String) or CP (Contains Pattern ). But be specific , as it is case-sensitive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_FILE CS ' &lt;STRONG&gt;C.028 Project Plan balances_DMTHMPLAN&lt;/STRONG&gt;' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_FILE CP ' &lt;STRONG&gt;C.028 Project Plan balances_DMTHMPLAN&lt;/STRONG&gt;' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose the kind of syntax as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful to you. If you need further information, revert &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nagaraj T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838758#M923010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a string into another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838759#M923011</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 find keyword.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIND 'C.028 Project Plan balances_DMTHMPLAN' in file.
IF subrc &amp;lt;&amp;gt; 0.
  MESSAGE e000(zmsg_tab) with 'error'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838759#M923011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a string into another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838760#M923012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;You can use this code with little bit modifications as of ur requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_FILE TYPE RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      PROGRAM_NAME  = SYST-CPROG&lt;/P&gt;&lt;P&gt;      DYNPRO_NUMBER = SYST-DYNNR&lt;/P&gt;&lt;P&gt;      FIELD_NAME    = ' '&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FILE_NAME     = P_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_FILE NE 'C.028 Project Plan balances_DMTHMPLAN'.&lt;/P&gt;&lt;P&gt; MESSAGE i000(Z50871MSG) WITH 'error' .&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;Sandeep Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 12:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838760#M923012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T12:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a string into another string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838761#M923013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 14:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-a-string-into-another-string/m-p/3838761#M923013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T14:16:26Z</dc:date>
    </item>
  </channel>
</rss>

