<?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: Archive file on application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995309#M1606051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below code to move the file from Source path to Target path in the application server.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'ARCHIVFILE_SERVER_TO_SERVER'
      EXPORTING
        SOURCEPATH = LV_SOURCEPATH
        TARGETPATH = LV_TARGETPATH
      EXCEPTIONS
        ERROR_FILE = 1
        OTHERS     = 2.
    IF SY-SUBRC EQ 0.
      DELETE DATASET LV_SOURCEPATH.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2011 17:39:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-23T17:39:00Z</dc:date>
    <item>
      <title>Archive file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995308#M1606050</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 am working on inbound idoc to read file from application server and post to SAP. After reading the file, how can we archive the file on the application server?I am using IDOC_INBOUND_FROM_FILE to move file data to SAP. I am not sure how to archive the file after the idoc is posted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 17:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995308#M1606050</guid>
      <dc:creator>former_member182337</dc:creator>
      <dc:date>2011-06-23T17:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Archive file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995309#M1606051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below code to move the file from Source path to Target path in the application server.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'ARCHIVFILE_SERVER_TO_SERVER'
      EXPORTING
        SOURCEPATH = LV_SOURCEPATH
        TARGETPATH = LV_TARGETPATH
      EXCEPTIONS
        ERROR_FILE = 1
        OTHERS     = 2.
    IF SY-SUBRC EQ 0.
      DELETE DATASET LV_SOURCEPATH.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 17:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995309#M1606051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T17:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Archive file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995310#M1606052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Suman but i am not using any custom code for this. I use the FM idoc_inbound_from_file to convert it into idoc and then use the standrd FM to post it into application. Do you say that i need to map it to a custom code so that i can incporporate this FM of yours?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanls,&lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 02:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995310#M1606052</guid>
      <dc:creator>former_member182337</dc:creator>
      <dc:date>2011-06-24T02:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Archive file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995311#M1606053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to archive the files and put it to App. Layer.  Try to explore the following:&lt;/P&gt;&lt;P&gt;1. Get the file path via FM: FILE_GET_NAME_USING_PATH&lt;/P&gt;&lt;P&gt;2. Then get all the the files via FM: SUBST_GET_FILE_LIST&lt;/P&gt;&lt;P&gt;3. Move/copy the files to the path via FM: SXPG_CALL_SYSTEM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 03:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995311#M1606053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T03:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Archive file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995312#M1606054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jaime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 05:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/archive-file-on-application-server/m-p/7995312#M1606054</guid>
      <dc:creator>former_member182337</dc:creator>
      <dc:date>2011-12-20T05:14:41Z</dc:date>
    </item>
  </channel>
</rss>

