<?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 extension in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625267#M1089468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be the folder has a '.' in its name. I thinks that this solution doesn´t work in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 12:13:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T12:13:54Z</dc:date>
    <item>
      <title>File extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625263#M1089464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   is there any class or FM that allow to get file extension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625263#M1089464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: File extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625264#M1089465</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;I think u can use SPILT AT '.' in file name variable to get file extension.&lt;/P&gt;&lt;P&gt;FM not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Dwaraka.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625264#M1089465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: File extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625265#M1089466</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;No sush FM as per my search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One suggestion is, get the file name in a variable,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then split it into two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: str1 TYPE string, &lt;/P&gt;&lt;P&gt;      str2 TYPE string, &lt;/P&gt;&lt;P&gt;      str3 TYPE string, &lt;/P&gt;&lt;P&gt;      itab TYPE TABLE OF string, &lt;/P&gt;&lt;P&gt;      text TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `What a drag it is getting old`. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT space INTO: str1 str2 str3, &lt;/P&gt;&lt;P&gt;                          TABLE itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625265#M1089466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: File extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625266#M1089467</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;You can do it with a small code.&lt;/P&gt;&lt;P&gt;Once you get the file name get the string length. From the string lenth get the last three letter of the file name it will give you your extenstion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : W_fnam(100) type c value 'D:\test.txt',&lt;/P&gt;&lt;P&gt;                w_strlen type i,&lt;/P&gt;&lt;P&gt;                w_ext(3) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_strlen = strlen (w_fnam).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_strlen = w_strlen - 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_ext = w_strlen+0(3).&lt;/P&gt;&lt;P&gt;write: w_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is TXT.&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;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625266#M1089467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: File extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625267#M1089468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be the folder has a '.' in its name. I thinks that this solution doesn´t work in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625267#M1089468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: File extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625268#M1089469</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 the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SODIS_GET_FILE_EXTENSION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the eniter fielname as the input eg;  &lt;STRONG&gt;SAMPLE.DAT&lt;/STRONG&gt; then the output will be .DAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625268#M1089469</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-10-15T12:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: File extension</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625269#M1089470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the Function module&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PC_SPLIT_COMPLETE_FILENAME&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 12:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-extension/m-p/4625269#M1089470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T12:26:38Z</dc:date>
    </item>
  </channel>
</rss>

