<?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: rename  a folder after using  method  file_open_dialog in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867779#M1138053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its possible   that im  not explain  clearly  my requirement ,  when  i select  i file using  &lt;/P&gt;&lt;P&gt;file_open_dialog &lt;STRONG&gt;example&lt;/STRONG&gt;      c:\folder1\file.txt  , and  i  finish  the execution  of the program ,  i try  &lt;/P&gt;&lt;P&gt;to  rename the folder    "folder1" ,then i go   to  the hard disk   C:  and when  i try  to rename it &lt;U&gt;&lt;STRONG&gt;manualy&lt;/STRONG&gt;&lt;/U&gt;   i had the error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2008 16:10:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-26T16:10:56Z</dc:date>
    <item>
      <title>rename  a folder after using  method  file_open_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867773#M1138047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all  ,  &lt;/P&gt;&lt;P&gt;I m using a method  cl_gui_frontend_services=&amp;gt;file_open_dialog ,  but when i want  to renam  the folder containing the selected file it show  a window error (cannot rename foldername : it is being used by  another person or program...) ,  even  i exit the SAP. &lt;/P&gt;&lt;P&gt;thanks , &lt;/P&gt;&lt;P&gt;karim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 14:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867773#M1138047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: rename  a folder after using  method  file_open_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867774#M1138048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No matters you exit ..may be some else using this in change mode,&lt;/P&gt;&lt;P&gt;Check entries from SM12.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 14:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867774#M1138048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T14:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: rename  a folder after using  method  file_open_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867775#M1138049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nothing  in SM12 . &lt;/P&gt;&lt;P&gt;I try  to rename  the folder  manualy  in my hard  disk  ,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if i  open  the file C:\new folder 1\ test.txt , when  i  want to  rename new folder ,  i had  the error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i  have the code below  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report test  .
Parameters : AUSZFILE LIKE RFPDO1-FEBUMSF.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR AUSZFILE.


  DATA: L_FILES TYPE FILETABLE,
        H_FILES TYPE FILE_TABLE,
        L_RC LIKE SY-SUBRC.
CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog
*  EXPORTING
*    window_title            =
*    default_extension       =
*    default_filename        =
*    file_filter             =
*    with_encoding           =
*    initial_directory       =
*    multiselection          =
  CHANGING
    file_table              =  L_FILES
    rc                      = L_RC
*    user_action             =
*    file_encoding           =
*  EXCEPTIONS
*    file_open_dialog_failed = 1
*    cntl_error              = 2
*    error_no_gui            = 3
*    not_supported_by_gui    = 4
*    others                  = 5
        .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*********** 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 15:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867775#M1138049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T15:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: rename  a folder after using  method  file_open_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867776#M1138050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you must check whether file is exsist or not?&lt;/P&gt;&lt;P&gt;from these below methods:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;FILE_EXIST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Than get file attributes:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;FILE_GET_ATTRIBUTES&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Than change name from method FILE_SET_ATTRIBUTES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you are make sure of existance than you can change file name in one step&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_copy
      EXPORTING
        SOURCE               = l_newdoc_file"Old file name
        DESTINATION          = l_layout_file"New file name:give here same destinatation of old file name but name shoud be different,so it will rename it.
        overwrite            = true&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 15:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867776#M1138050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: rename  a folder after using  method  file_open_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867777#M1138051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit. &lt;/P&gt;&lt;P&gt;i want  just to be able to change  the name of the folder   manualy  by  2 click when  i finish  the execution  of  my  program   nothing less nothing more  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks  &lt;/P&gt;&lt;P&gt;karim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 15:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867777#M1138051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T15:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: rename  a folder after using  method  file_open_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867778#M1138052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not you are using CALL METHOD cl_gui_frontend_services=&amp;gt;file_copy?As same way i suggested in my above reply.it will change programatically once you pass source and destination file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for manually change from SAP by 2 click i'm not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 15:51:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867778#M1138052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: rename  a folder after using  method  file_open_dialog</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867779#M1138053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its possible   that im  not explain  clearly  my requirement ,  when  i select  i file using  &lt;/P&gt;&lt;P&gt;file_open_dialog &lt;STRONG&gt;example&lt;/STRONG&gt;      c:\folder1\file.txt  , and  i  finish  the execution  of the program ,  i try  &lt;/P&gt;&lt;P&gt;to  rename the folder    "folder1" ,then i go   to  the hard disk   C:  and when  i try  to rename it &lt;U&gt;&lt;STRONG&gt;manualy&lt;/STRONG&gt;&lt;/U&gt;   i had the error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 16:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rename-a-folder-after-using-method-file-open-dialog/m-p/4867779#M1138053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T16:10:56Z</dc:date>
    </item>
  </channel>
</rss>

