<?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 Move a File into an archive folder in application server . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183464#M1624496</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM or BAPI that can transfer File from one folder in to other in application server ??.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to move  a file  into  an archive folder after processing it and i am trying with READ DATASET and TRANSFER DATASET.&lt;/P&gt;&lt;P&gt;But using this i am not able to transfer entire data from one file to other as READ DATAST cant read data in to Internal table .&lt;/P&gt;&lt;P&gt;Is there any sample code available so that can move entire records from one file to another file using READ DATASET and TRANSFER DATASET ..??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;Sijin K P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2011 14:51:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-18T14:51:19Z</dc:date>
    <item>
      <title>Move a File into an archive folder in application server .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183464#M1624496</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any FM or BAPI that can transfer File from one folder in to other in application server ??.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to move  a file  into  an archive folder after processing it and i am trying with READ DATASET and TRANSFER DATASET.&lt;/P&gt;&lt;P&gt;But using this i am not able to transfer entire data from one file to other as READ DATAST cant read data in to Internal table .&lt;/P&gt;&lt;P&gt;Is there any sample code available so that can move entire records from one file to another file using READ DATASET and TRANSFER DATASET ..??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards , &lt;/P&gt;&lt;P&gt;Sijin K P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 14:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183464#M1624496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Move a File into an archive folder in application server .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183465#M1624497</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 don't know why you can't use an internal table or READ DATASET and TRANSFER DATASET, so I believe you can try to use the ftp command, see demo program RSFTP008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 15:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183465#M1624497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T15:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Move a File into an archive folder in application server .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183466#M1624498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not use READ/TRANSFER Dataset with an xstring instead of an internal table? Never failed me &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 15:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183466#M1624498</guid>
      <dc:creator>Lukas_Weigelt</dc:creator>
      <dc:date>2011-08-18T15:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Move a File into an archive folder in application server .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183467#M1624499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an external command in SM49/SM69 for mv unix command(if your application server is on Unix) , then call the external command via FM SXPG_COMMAND_EXECUTE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you were looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 23:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183467#M1624499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T23:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Move a File into an archive folder in application server .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183468#M1624500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sijin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use ARCHIVFILE_SERVER_TO_SERVER for your purpose but this one limits the size of file paths to 70 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF your filenames are longer than that, better to use Transfer dataset line by line and then delete dataset...sample code below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* You must be having the contents of your source file into an internal table, suppose gt_data.

OPEN DATASET lv_tgt_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc IS NOT INITIAL.
       "raise error
    ENDIF.

    LOOP AT gt_data INTO lv_data.               "source file data table
      TRANSFER lv_data TO lv_tgt_filename.
    ENDLOOP.

    CLOSE DATASET lv_tgt_filename.

    DELETE DATASET gv_source_filename.          "remove original file
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 02:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183468#M1624500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T02:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move a File into an archive folder in application server .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183469#M1624501</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;&lt;/P&gt;&lt;P&gt;Thanks for reply ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mainly focussing on how to read data from file in to internal table using READ DATASET  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share some code  for this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sijin K P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 04:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183469#M1624501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T04:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Move a File into an archive folder in application server .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183470#M1624502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sijin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you just SEARCH.&lt;/P&gt;&lt;P&gt;Enough posts available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 04:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-a-file-into-an-archive-folder-in-application-server/m-p/8183470#M1624502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T04:55:06Z</dc:date>
    </item>
  </channel>
</rss>

