<?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 FM required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870451#M673455</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;Is there ant FM or method available in ECC6.0 to split a filename and its path?&lt;/P&gt;&lt;P&gt;For Ex: if i give: /test.txt. it should spliti into  / and test.txt..Iknow there is FM SO_SPLIT_FILE_AND_PATH.But it is working with only \ it is not woking with forward slash like '/'.&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;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 09:14:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-27T09:14:47Z</dc:date>
    <item>
      <title>FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870451#M673455</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;Is there ant FM or method available in ECC6.0 to split a filename and its path?&lt;/P&gt;&lt;P&gt;For Ex: if i give: /test.txt. it should spliti into  / and test.txt..Iknow there is FM SO_SPLIT_FILE_AND_PATH.But it is working with only \ it is not woking with forward slash like '/'.&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;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870451#M673455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T09:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870452#M673456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about using the SPLIT statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870452#M673456</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-09-27T09:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870453#M673457</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;data: file(255), path(100), name(100) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file = 'c:\desktop\ file.doc'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FULL_NAME = file&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;STRIPPED_NAME = name&lt;/P&gt;&lt;P&gt;FILE_PATH = path&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;X_ERROR = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;write:/ name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870453#M673457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T09:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870454#M673458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi&lt;/P&gt;&lt;P&gt; use TRINT_SPLIT_FILE_AND_PATH Function Module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working for /&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;sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870454#M673458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T09:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870455#M673459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks But it will not work.&lt;/P&gt;&lt;P&gt;Because if are getting data from application server .&lt;/P&gt;&lt;P&gt;For example if the path is like:  /usr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case it is not splitting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 09:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870455#M673459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T09:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870456#M673460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead try Function Module "TRINT_SPLIT_FILE_AND_PATH"&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 05:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870456#M673460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-08T05:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870457#M673461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can consider replace all occurrence of &lt;SPAN style="color: #333333; font-size: 12px;"&gt; "\" in your path with "/" before you execute &lt;SPAN style="color: #333333; font-size: 12px;"&gt;SO_SPLIT_FILE_AND_PATH. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 05:20:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870457#M673461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-08T05:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870458#M673462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;I have found the fm &lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;DSVAS_DOC_FILENAME_SPLIT&lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; also very useful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;it work for both forward or backward slash&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Hitesh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 05:52:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870458#M673462</guid>
      <dc:creator>hitesh_gabani</dc:creator>
      <dc:date>2015-07-08T05:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: FM required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870459#M673463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to find what is the folder separator used by the operating system, you may use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a application server path:&amp;nbsp; &lt;STRONG&gt;DMC_MDS_GET_PATHSEPARATOR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For a presentation server path:&amp;nbsp; &lt;STRONG&gt;cl_gui_frontend_services&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;get_file_separator&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the separator....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose your input path is: &lt;STRONG&gt;\\servername\path\file.xls&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;STRING_REVERSE&lt;/STRONG&gt; function module to reverse the path. The output of this function module will be &lt;STRONG&gt;slx.elif\htap\emanrevres\\&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, split the output at the separator. Thus, you will get 2 seperate strings - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;slx.elif&lt;/STRONG&gt; and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;htap\emanrevres\\&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use again&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;STRONG&gt;STRING_REVERSE&lt;/STRONG&gt; to reverse both these strings, and thus you will have &lt;STRONG&gt;file.xls&lt;/STRONG&gt; and &lt;STRONG&gt;\\servername\path&lt;/STRONG&gt;, which is your filename and path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 13:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-required/m-p/2870459#M673463</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2015-07-08T13:37:13Z</dc:date>
    </item>
  </channel>
</rss>

