<?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 rename a parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-parameter/m-p/4436014#M1052895</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 2 parameters on a selection screen, p_dir and p_dir2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from p_dir, we are retrieving the directory of a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_dir2 will take the value of p_dir but with an extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like if p_dir = Y:\05. SAP \con\09 implementation\10 DEVELOPMENTS\Files\file.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_dir2 is then Y:\05. SAP \con\09 implementation\10 DEVELOPMENTS\Files\file_new.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I dont know how the name of the directory will be so that I can rename p_dir2, sometimes the directory doesnt even have the extension '.txt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to handle these cases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM which can do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2008 08:02:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-03T08:02:26Z</dc:date>
    <item>
      <title>rename a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-parameter/m-p/4436014#M1052895</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 2 parameters on a selection screen, p_dir and p_dir2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from p_dir, we are retrieving the directory of a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_dir2 will take the value of p_dir but with an extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like if p_dir = Y:\05. SAP \con\09 implementation\10 DEVELOPMENTS\Files\file.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_dir2 is then Y:\05. SAP \con\09 implementation\10 DEVELOPMENTS\Files\file_new.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I dont know how the name of the directory will be so that I can rename p_dir2, sometimes the directory doesnt even have the extension '.txt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to handle these cases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM which can do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2008 08:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-parameter/m-p/4436014#M1052895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-03T08:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: rename a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-parameter/m-p/4436015#M1052896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use SEARH to know whether it contains the extension, txt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; search pdir for 'txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;   write : sy-FDPOS. &lt;/P&gt;&lt;P&gt;" fdpos :  offset in character string&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;deniz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2008 08:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-parameter/m-p/4436015#M1052896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-03T08:15:57Z</dc:date>
    </item>
  </channel>
</rss>

