<?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: filename from complete file path in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860058#M927783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thr&lt;/P&gt;&lt;P&gt;use the FM &lt;/P&gt;&lt;P&gt;PC_SPLIT_COMPLETE_FILENAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward if helpful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;niharika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2008 06:22:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-23T06:22:59Z</dc:date>
    <item>
      <title>filename from complete file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860056#M927781</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;   can anybody let me know the method to get the filename from the complete filepath( this path includes both directory as well as filename)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860056#M927781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: filename from complete file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860057#M927782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use the FM &lt;/P&gt;&lt;P&gt;PC_SPLIT_COMPLETE_FILENAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This will give u the following things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DRIVE&lt;/P&gt;&lt;P&gt;EXTENSION&lt;/P&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;P&gt;NAME_WITH_EXT&lt;/P&gt;&lt;P&gt;PATH&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860057#M927782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: filename from complete file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860058#M927783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi thr&lt;/P&gt;&lt;P&gt;use the FM &lt;/P&gt;&lt;P&gt;PC_SPLIT_COMPLETE_FILENAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward if helpful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;niharika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:22:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860058#M927783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: filename from complete file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860059#M927784</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;Check the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : ig_path type standard table of tp_path,
       wg_path type tp_path.

data : g_lines     type i          ,
       g_filename  type string     .

parameter : p_input type rlgrap-filename.

  split p_input at '\' into table ig_path.

  describe table ig_path lines g_lines.
  read table ig_path index g_lines into wg_path.
  g_filename = wg_path-val.

write : g_filename.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860059#M927784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: filename from complete file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860060#M927785</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;general file path will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/home_STAR/GD2/&lt;STRONG&gt;zfile.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and file name will be  &lt;STRONG&gt;zfile.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so split the directory into variables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lc_colon typec char1 value '/'.&lt;/P&gt;&lt;P&gt;split lw_dir at at lc_colon into w_var1, w_var2, w_var3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_var3 will be the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sriram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860060#M927785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T06:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: filename from complete file path</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860061#M927786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
path = 'c:/test/xyz.txt'.

REPLACE ALL OCCURRENCES OF '/' in path with '\'.

find all OCCURRENCES OF '\' in path MATCH OFFSET off.
if sy-subrc &amp;gt; 0.
  fname = path.
else.
  off = off + 1.
  fname = path+off.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 06:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/filename-from-complete-file-path/m-p/3860061#M927786</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-05-23T06:37:45Z</dc:date>
    </item>
  </channel>
</rss>

