<?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: Archiving file in application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578723#M589525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I havn't used them myself, but there are methods in the '&amp;lt;b&amp;gt;CL_GUI_FRONTEND_SERVICES&amp;lt;/b&amp;gt;' class to do what you require&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the methods '&amp;lt;b&amp;gt;FILE_COPY&amp;lt;/b&amp;gt;' and then '&amp;lt;b&amp;gt;FILE_DELETE&amp;lt;/b&amp;gt;'&lt;/P&gt;&lt;P&gt;that should enable you to move the file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2007 07:59:10 GMT</pubDate>
    <dc:creator>former_member189059</dc:creator>
    <dc:date>2007-07-26T07:59:10Z</dc:date>
    <item>
      <title>Archiving file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578720#M589522</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;Can anybody of you please let me know how to archive a file from one directory to other in the application server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want to read one file into an internal table and then loop on that to create a new file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for some FM or command that would do this in one shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue is very appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Chinmou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578720#M589522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T07:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578721#M589523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chinmou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can just ask your basis to move the file for you. It will be the easiest way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578721#M589523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578722#M589524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My  friend   there is   no   such  one program which will  do  archive  or   one function  module which  will do  as you wanted  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basicall  for archiveing the data   into file  it requesite 4  basic function  modules  as .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code] "ARCHIVE_OPEN_FOR_WRITE'&lt;/P&gt;&lt;P&gt;"ARCHIVE_NEW_OBJECT'&lt;/P&gt;&lt;P&gt;"ARCHIVE_GET_STRUCTURES'&lt;/P&gt;&lt;P&gt; "ARCHIVE_SAVE_OBJECT[/code]     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so  based up on the archive  obect   it will have  own  write  program  which will   use  above  4  function  modules  and  collects the  table data from the basic  archiveing  obecjt  from  the   AOBJ  tcode  archive object structure then  creates  struture for that data and then  write's  it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so below  is the logic  .        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE'
    EXPORTING
     call_delete_job_in_test_mode        = 'X'
     create_archive_file                 = 'X'
      object                              = v_arch_obj
     comments                            = 'ILM test FILE'
*   DO_NOT_DELETE_DATA                  = ' '
*   OUTPUT_SEL_SCREEN_WHEN_DIALOG       = 'X'
*   OUTPUT_SEL_SCREEN_WHEN_BATCH        = ' '
   IMPORTING
     archive_handle                      = v_handle
* EXCEPTIONS
*   INTERNAL_ERROR                      = 1
*   OBJECT_NOT_FOUND                    = 2
*   OPEN_ERROR                          = 3
*   NOT_AUTHORIZED                      = 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.

*This function module should always be called when a new data object is
*to be prepared for writing to an archive.

  CALL FUNCTION 'ARCHIVE_NEW_OBJECT'
    EXPORTING
      archive_handle                = v_handle
*   OBJECT_ID                     = ' '
* EXCEPTIONS
*   INTERNAL_ERROR                = 1
*   WRONG_ACCESS_TO_ARCHIVE       = 2
*   OTHERS                        = 3
            .
  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.
** get the structures for the archiving object
*** loop through that
  CALL FUNCTION 'ARCHIVE_GET_STRUCTURES'
    EXPORTING
      archive_handle                = v_handle
    TABLES
      record_structures             = it_structures
* EXCEPTIONS
*   WRONG_ACCESS_TO_ARCHIVE       = 1
*   OTHERS                        = 2
            .
  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.

i_stru-PARLIST[] = i_par_list[].

* writing data object into the archive file
  CALL FUNCTION 'ARCHIVE_SAVE_OBJECT'
    EXPORTING
      archive_handle                = v_handle
* IMPORTING
*   OBJECT_OFFSET                 =
*   ARCHIVE_NAME                  =
* EXCEPTIONS
*   FILE_IO_ERROR                 = 1
*   INTERNAL_ERROR                = 2
*   OPEN_ERROR                    = 3
*   TERMINATION_REQUESTED         = 4
*   WRONG_ACCESS_TO_ARCHIVE       = 5
*   OTHERS                        = 6
            .
  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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578722#M589524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T07:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578723#M589525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I havn't used them myself, but there are methods in the '&amp;lt;b&amp;gt;CL_GUI_FRONTEND_SERVICES&amp;lt;/b&amp;gt;' class to do what you require&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the methods '&amp;lt;b&amp;gt;FILE_COPY&amp;lt;/b&amp;gt;' and then '&amp;lt;b&amp;gt;FILE_DELETE&amp;lt;/b&amp;gt;'&lt;/P&gt;&lt;P&gt;that should enable you to move the file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 07:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578723#M589525</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-26T07:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Archiving file in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578724#M589526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chinmoy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try with ZFTP transaction.&lt;/P&gt;&lt;P&gt;Here you will get the application server files and u can copy as well.try pasting the samething in the different location.&lt;/P&gt;&lt;P&gt;Although I am not sure about the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thansk&lt;/P&gt;&lt;P&gt;Yuvaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 08:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archiving-file-in-application-server/m-p/2578724#M589526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T08:19:33Z</dc:date>
    </item>
  </channel>
</rss>

