<?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: Finding a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-a-string/m-p/6208314#M1377265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ld_lg_suffix = STRLEN( ld_structurename ) + 4.  " + 4 for the '.txt'
ld_lg_prefix = STRLEN( ld_filename ) - ld_lg_suffix - 1.  " - 1 for the '_'
ld_prefix = ld_filename(ld_lg_prefix).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2009 10:55:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-25T10:55:15Z</dc:date>
    <item>
      <title>Finding a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-a-string/m-p/6208313#M1377264</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 am reading one directory and reading files from there.To upload the files into my program I have to make the file path.But my files are named with some prefix characters which is not constant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest how to find the prefix while reading the file names from the directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some structure names already present in program.And the file names are named as some "prefix_the structurename.txt".I have to find the prefix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ginger on Sep 25, 2009 6:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 10:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-a-string/m-p/6208313#M1377264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T10:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-a-string/m-p/6208314#M1377265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ginger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ld_lg_suffix = STRLEN( ld_structurename ) + 4.  " + 4 for the '.txt'
ld_lg_prefix = STRLEN( ld_filename ) - ld_lg_suffix - 1.  " - 1 for the '_'
ld_prefix = ld_filename(ld_lg_prefix).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 10:55:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-a-string/m-p/6208314#M1377265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T10:55:15Z</dc:date>
    </item>
  </channel>
</rss>

