<?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 String Manipulation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250031#M486219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to extract the file type from the name of a file.  For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\dir\files\filename.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extension = txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D:\filedir\morefiles\filename.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extension = html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2007 17:11:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-17T17:11:15Z</dc:date>
    <item>
      <title>String Manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250031#M486219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to extract the file type from the name of a file.  For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\dir\files\filename.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extension = txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D:\filedir\morefiles\filename.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extension = html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 17:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250031#M486219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T17:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: String Manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250032#M486220</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;FIND statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;  c    TYPE STRING, &lt;/P&gt;&lt;P&gt;  p(1) TYPE C, &lt;/P&gt;&lt;P&gt;  off  TYPE I,&lt;/P&gt;&lt;P&gt;  len type i,&lt;/P&gt;&lt;P&gt;  ext type string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c = 'C:\filename.txt'. &lt;/P&gt;&lt;P&gt;p = '.'. &lt;/P&gt;&lt;P&gt;FIND p IN c MATCH OFFSET off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = off + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ext = c+len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write ext.&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;DATA: C LIKE  SDBAH-ACTID,&lt;/P&gt;&lt;P&gt;EXT LIKE  SDBAD-FUNCT.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SPLIT_FILENAME'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    long_filename        = 'C:\FILENAME.TXT'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   PURE_FILENAME        = C&lt;/P&gt;&lt;P&gt;   PURE_EXTENSION       = EXT&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: C, EXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 17:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250032#M486220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T17:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: String Manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250033#M486221</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 use the function module CH_SPLIT_FILENAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the file name as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will split and get you the extension..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 17:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250033#M486221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T17:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: String Manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250034#M486222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this one&lt;/P&gt;&lt;P&gt;SO_SPLIT_FILE_AND_PATH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives u the path and the filename&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, 17 May 2007 17:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-manipulation/m-p/2250034#M486222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T17:21:47Z</dc:date>
    </item>
  </channel>
</rss>

