<?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: File name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990389#M706276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the contains string CS statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF v_name CS 'SH'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do ship to party logic&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE IF v_name CS 'SP'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do Sold to party logic&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDOF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2007 16:43:55 GMT</pubDate>
    <dc:creator>che_eky</dc:creator>
    <dc:date>2007-11-01T16:43:55Z</dc:date>
    <item>
      <title>File name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990385#M706272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a condition where I need to do some action based on the file name, for example if there id "SP" in the file name then its meant for Sold to party and if there is " SH" somewhere in the file name then it is meant ship to party.... and then based on this I have to perform some routines, for example if v_name = " SP" then perform v_sp else v_sh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can you please tell me how to acheive this thing, my file name is in v_name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 16:38:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990385#M706272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: File name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990386#M706273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF v_name CS 'SP'.
  PERFORM v_sp.
ELSEIF v_name CS 'SH'.
  PERFORM v_sh.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could have solved this very easily yourself by simply putting your cursor on an IF statement and pressing F1.&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;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 16:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990386#M706273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T16:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: File name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990387#M706274</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 way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF v_name CS 'SP'.
PERFORM v_sp.
ELSEIF v_name CS 'SH'.
PERFORM v_sa.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Perez C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Perez C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 16:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990387#M706274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T16:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: File name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990388#M706275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If V_name CS 'SP'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Do actions for Sold-to-party&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ELSEIF V_NAME CS 'SH'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Do actions for Ship-to-party&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 16:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990388#M706275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T16:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: File name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990389#M706276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the contains string CS statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF v_name CS 'SH'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do ship to party logic&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE IF v_name CS 'SP'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do Sold to party logic&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDOF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 16:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990389#M706276</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2007-11-01T16:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: File name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990390#M706277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_NP.

data: v_name(200) type c value 'SH_1000.txt'.

search v_name for 'SH'.
if sy-subrc = 0.
* call Peform for SH
endif.

search v_name for 'SP'.
if sy-subrc = 0.
* call Peform for SP - Sold to party
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 16:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990390#M706277</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-01T16:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: File name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990391#M706278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops sorry Nishant you just beat me haha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 16:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990391#M706278</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2007-11-01T16:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: File name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990392#M706279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass the complete file name to FM SPLIT_FILENAME .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have value in PURE_FILENAME ( FM Export parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now compare with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if pure_filename+0(2)  'SH'.&lt;/P&gt;&lt;P&gt;write the logic&lt;/P&gt;&lt;P&gt;elseif  pure_filename+0(2)  'SH'.&lt;/P&gt;&lt;P&gt;write the logic&lt;/P&gt;&lt;P&gt;elseif pure_filename+0(2)  'SH'&lt;/P&gt;&lt;P&gt;write the logic&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 17:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-name/m-p/2990392#M706279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T17:15:16Z</dc:date>
    </item>
  </channel>
</rss>

