<?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: SHIFT statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383835#M812463</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;Try this one,It will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO.
        FIND '\' IN SECTION OFFSET l_offset OF p_file MATCH OFFSET l_off
                                                      MATCH LENGTH l_length .
        IF sy-subrc EQ 0.
          l_offset = l_off + l_length .
        ELSE.
          p_file = p_file(l_offset).
          EXIT.
        ENDIF.
      ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code p_file is the file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 15:44:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T15:44:41Z</dc:date>
    <item>
      <title>SHIFT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383832#M812460</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 have a string value like this. &lt;STRONG&gt;/usr/sap/temp/test.txt&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;I want the text before the last slash &lt;STRONG&gt;/&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;I mean, I want &lt;STRONG&gt;/usr/sap/temp&lt;/STRONG&gt; into one variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There can be any number of slash &lt;STRONG&gt;/&lt;/STRONG&gt; symbols in the main text. But, I need only the text before the last slash &lt;STRONG&gt;/&lt;/STRONG&gt;. I think, we have to use SHIFT statement to do this. But, I am not able to get it. Can someone help me on the same. it is quite urgent. Please share your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Paddu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Paddu K on Feb 13, 2008 7:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 13:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383832#M812460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T13:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: SHIFT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383833#M812461</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 FM SO_SPLIT_FILE_AND_PATH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 13:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383833#M812461</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2008-02-13T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: SHIFT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383834#M812462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using SPLIT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 13:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383834#M812462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: SHIFT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383835#M812463</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;Try this one,It will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO.
        FIND '\' IN SECTION OFFSET l_offset OF p_file MATCH OFFSET l_off
                                                      MATCH LENGTH l_length .
        IF sy-subrc EQ 0.
          l_offset = l_off + l_length .
        ELSE.
          p_file = p_file(l_offset).
          EXIT.
        ENDIF.
      ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code p_file is the file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 15:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift-statement/m-p/3383835#M812463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T15:44:41Z</dc:date>
    </item>
  </channel>
</rss>

