<?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: Changing the file name... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265253#M1017718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your application server is Unix then we can use unix command to Rename your file. &lt;/P&gt;&lt;P&gt;mv -&amp;gt; move command &lt;/P&gt;&lt;P&gt;mv source target&lt;/P&gt;&lt;P&gt;file1 souce file name with path&lt;/P&gt;&lt;P&gt;file2 target filename with path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZUNIX line-size 400
                no standard page heading.
 
 data: unixcom like   rlgrap-filename.   
 
unixcom = 'mv file1 file2'.
 
data: begin of tabl occurs 500,
        line(400),
      end of tabl.
 
data: lines type i.
  
*----------------------------------------------------------------------
 
start-of-selection.
  refresh tabl.
 
  call 'SYSTEM' id 'COMMAND' field unixcom
                id 'TAB'     field tabl[].
 
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Renaming the Presentation sever &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First copy the file to another file and then Delete the old file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Calss :  CL_GUI_FRONTEND_SERVICES
Methods: FILE_COPY
              FILE_DELETE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2008 13:19:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-13T13:19:13Z</dc:date>
    <item>
      <title>Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265245#M1017710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a requirment as i need to change the file name dynamically................&lt;/P&gt;&lt;P&gt;I will be having a file in the application or presentation server. While processing the datat in the file, I need to add extension to the file name as transfer. when the transfer of data is finished the i need to add ok to the file name at last......&lt;/P&gt;&lt;P&gt;Is there any function module or class for changing the file name dynamically or renamig the file name..&lt;/P&gt;&lt;P&gt;Thank You very much in Advance.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 09:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265245#M1017710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T09:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265246#M1017711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii &lt;/P&gt;&lt;P&gt;go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://saplab.blogspot.com/2007/10/sample-program-to-dynamically-change.html" target="test_blank"&gt;http://saplab.blogspot.com/2007/10/sample-program-to-dynamically-change.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 09:19:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265246#M1017711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T09:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265247#M1017712</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 think there is no FM to rename the file. So that try the below steps.&lt;/P&gt;&lt;P&gt;1. if you are processing, manulay you have to append the text 'transfer' when processing the file.&lt;/P&gt;&lt;P&gt;2. once the file has been processed, then again manullay change the file name with addition 'OK' and call the FM &lt;/P&gt;&lt;P&gt;'SCMS_FILE_COPY', here you have to specify the source and target file name with path. once the file copied then delete the source file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCMS_FILE_DELETE - Delete&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check the class cl_gui_frontend_services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Boobalan S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 09:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265247#M1017712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T09:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265248#M1017713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any function module to rename the file or copy the file or delete the file in application layer ????????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module or class to rename the file in the application layer ..............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 10:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265248#M1017713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T10:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265249#M1017714</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 the Function Module "&lt;STRONG&gt;PFL_COPY_OS_FILE&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 10:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265249#M1017714</guid>
      <dc:creator>former_member787646</dc:creator>
      <dc:date>2008-08-13T10:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265250#M1017715</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 using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'mv' old_filename ' '&lt;/P&gt;&lt;P&gt;  new_filename INTO wf_parameter SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RFC_REMOTE_PIPE'&lt;/P&gt;&lt;P&gt;  DESTINATION 'SERVER_EXEC'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  command = wf_parameter&lt;/P&gt;&lt;P&gt;  read = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 10:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265250#M1017715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T10:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265251#M1017716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the FM PFL_COPY_OS_FILE all the code is commented....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 13:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265251#M1017716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265252#M1017717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any FM to copy the file in Application layer and delete the file in application layer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 13:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265252#M1017717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T13:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the file name...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265253#M1017718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your application server is Unix then we can use unix command to Rename your file. &lt;/P&gt;&lt;P&gt;mv -&amp;gt; move command &lt;/P&gt;&lt;P&gt;mv source target&lt;/P&gt;&lt;P&gt;file1 souce file name with path&lt;/P&gt;&lt;P&gt;file2 target filename with path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZUNIX line-size 400
                no standard page heading.
 
 data: unixcom like   rlgrap-filename.   
 
unixcom = 'mv file1 file2'.
 
data: begin of tabl occurs 500,
        line(400),
      end of tabl.
 
data: lines type i.
  
*----------------------------------------------------------------------
 
start-of-selection.
  refresh tabl.
 
  call 'SYSTEM' id 'COMMAND' field unixcom
                id 'TAB'     field tabl[].
 
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Renaming the Presentation sever &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First copy the file to another file and then Delete the old file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Calss :  CL_GUI_FRONTEND_SERVICES
Methods: FILE_COPY
              FILE_DELETE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 13:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-file-name/m-p/4265253#M1017718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T13:19:13Z</dc:date>
    </item>
  </channel>
</rss>

