<?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 Word Reverse in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807299#M346429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Abapers.&lt;/P&gt;&lt;P&gt;	I have long text like folder path with file name.&lt;/P&gt;&lt;P&gt;My problem is I want to get file name from that text.&lt;/P&gt;&lt;P&gt;Please let me know how I can do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2006 05:43:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-14T05:43:10Z</dc:date>
    <item>
      <title>Word Reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807299#M346429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Abapers.&lt;/P&gt;&lt;P&gt;	I have long text like folder path with file name.&lt;/P&gt;&lt;P&gt;My problem is I want to get file name from that text.&lt;/P&gt;&lt;P&gt;Please let me know how I can do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807299#M346429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Word Reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807300#M346430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY WITH THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZFNAME  =  'D:\TEST1\TEST2\TEST3\TESTFILE.XLS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          STRING    = ZFNAME&lt;/P&gt;&lt;P&gt;          LANG      = SY-LANGU&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          RSTRING   = ZFNAME&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          TOO_SMALL = 1&lt;/P&gt;&lt;P&gt;          OTHERS    = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;  WRITE:/ ZFNAME.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'ERROR REVERSING STRING'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  SPLIT  ZFNAME  AT  '\'  INTO  : ZFNAME1 ZFNAME2 .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ZFNAME  =  pr_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          STRING    = ZFNAME1&lt;/P&gt;&lt;P&gt;          LANG      = SY-LANGU&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;          RSTRING   = ZFNAME1&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          TOO_SMALL = 1&lt;/P&gt;&lt;P&gt;          OTHERS    = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;  WRITE:/ ZFNAME.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE:/ 'ERROR REVERSING STRING'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807300#M346430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Word Reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807301#M346431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RY WITH THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZFNAME = 'D:\TEST1\TEST2\TEST3\TESTFILE.XLS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;STRING = ZFNAME&lt;/P&gt;&lt;P&gt;LANG = SY-LANGU&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RSTRING = ZFNAME&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;TOO_SMALL = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;WRITE:/ ZFNAME.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE:/ 'ERROR REVERSING STRING'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;SPLIT ZFNAME AT '\' INTO : ZFNAME1 ZFNAME2 .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ZFNAME = pr_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STRING_REVERSE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;STRING = ZFNAME1&lt;/P&gt;&lt;P&gt;LANG = SY-LANGU&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RSTRING = ZFNAME1&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;TOO_SMALL = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;WRITE:/ ZFNAME.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;WRITE:/ 'ERROR REVERSING STRING'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807301#M346431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Word Reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807302#M346432</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;If u have the text in the format c_path = D:\sap\abap\text.txt then if u want to get the only file name then u can write as c_path+13(8) but it works only in case there is fixed length of folder and also the file name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807302#M346432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Word Reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807303#M346433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nelson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 05:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807303#M346433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T05:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Word Reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807304#M346434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data fname(30) type c.&lt;/P&gt;&lt;P&gt;FNAME = 'D:\TEST1\TEST2\TEST3\TESTFILE.XLS'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;perform filename.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form filename.&lt;/P&gt;&lt;P&gt;data flag type x value 'x'.&lt;/P&gt;&lt;P&gt;data fname1(30) type c.&lt;/P&gt;&lt;P&gt;data index type i value 1.&lt;/P&gt;&lt;P&gt;data len type i.&lt;/P&gt;&lt;P&gt;WHILE flag = 'x'.&lt;/P&gt;&lt;P&gt;len = strlen( fname ).&lt;/P&gt;&lt;P&gt;if index = len.&lt;/P&gt;&lt;P&gt;write: / fname.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;only file name will be available in fname.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;flag = ''.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;if fname+index(1) = '\'.&lt;/P&gt;&lt;P&gt;fname1 = fname+index.&lt;/P&gt;&lt;P&gt;fname = fname1.&lt;/P&gt;&lt;P&gt;index = 1.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;index = index + 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this will help u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 06:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807304#M346434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T06:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Word Reverse</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807305#M346435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gokul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use &amp;lt;b&amp;gt;SPLIT &amp;lt;/b&amp;gt;for this purpose.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Logic:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;I am writing the code below. here i am using Split to split the string at character '\' and the splitted substrings will be polpulated into the internal table ZFNAME2[].&lt;/P&gt;&lt;P&gt;So the last entry of internal table will contain the filename.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Here is the code:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;DATA: &amp;lt;/b&amp;gt;ZFNAME(60)  type c,&lt;/P&gt;&lt;P&gt;ZFNAME2 like table of ZFNAME with header line,&lt;/P&gt;&lt;P&gt;NLINES TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZFNAME = 'D:\TEST1\TEST2\TEST3\TESTFILE.XLS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SPLIT&amp;lt;/b&amp;gt; zfname at '\' into table zfname2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DESCRIBE TABLE&amp;lt;/b&amp;gt; ZFNAME2 LINES NLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ TABLE&amp;lt;/b&amp;gt; ZFNAME2 INDEX NLINES.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WRITE:&amp;lt;/b&amp;gt;  zfname2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definitely solve your purpose,&lt;/P&gt;&lt;P&gt;Prgaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2006 06:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/word-reverse/m-p/1807305#M346435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-14T06:06:45Z</dc:date>
    </item>
  </channel>
</rss>

