<?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: Loading files from presentation server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041154#M86565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From Presentation server use function:&lt;/P&gt;&lt;P&gt; GUI_UPLOAD  or OPEN DATASET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2005 16:07:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-07T16:07:22Z</dc:date>
    <item>
      <title>Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041152#M86563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any standard abap program used for loading a file from presentation server to an SAP directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 15:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041152#M86563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T15:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041153#M86564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write your own program to upload file from Presentation server (using GUI_UPLOAD) and then use 'open dataset' , 'transfer' and 'close dataset' statements for writing the same to application server (SAP directory).&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;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041153#M86564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041154#M86565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From Presentation server use function:&lt;/P&gt;&lt;P&gt; GUI_UPLOAD  or OPEN DATASET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041154#M86565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041155#M86566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this Standard program can serve the purpose RPCIFU04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041155#M86566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041156#M86567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u may try LSPCAU01 program for doing this. or else u can copy it &amp;amp; enhance according to ur requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. award appropriate points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041156#M86567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041157#M86568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Call method CL_GUI_FRONTEND_SERVICES=&amp;gt;GUI_UPLOAD

   CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
      EXPORTING
        filename                = l_filename
        filetype                = l_filetype
        has_field_separator     = yes              "use tabs
*       HEADER_LENGTH           = 0
*       READ_BY_LINE            = 'X'
*     IMPORTING
*       FILELENGTH              =
*       HEADER                  =
      CHANGING
        data_tab                = &amp;lt;l_data_tab&amp;gt;     "w/o header line
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        not_supported_by_gui    = 17
        OTHERS                  = 18.
    IF sy-subrc &amp;lt;&amp;gt; 0.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then &amp;lt;b&amp;gt;open data&amp;lt;/b&amp;gt; set destination&lt;/P&gt;&lt;P&gt;and transfer the data set using &amp;lt;b&amp;gt;trasfer &amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041157#M86568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041158#M86569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not exactly meant for the purpose of transferring files from server to desktop and desktop to server, but it will serve the purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SXDB. Pick up any object and go to next screen. Here, under the "File access" section, enter the file name, path and in the appropriate place(Application Server or Presentation Server). In the application toolbar, select the button for 'Copy'. This will take you to another screen. Specify the 'From' and 'To' appropriately and click 'Copy' again. A decision pop-up will come asking "File contains lines with an unknown structure. Should these lines also be copied?". Click 'Yes' and your file will now be copied to the destination folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need the necessary access to your unix box though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041158#M86569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041159#M86570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There is no such Program is there, even you can wirte small code for the same,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use GUI_UPLOAD to get the data from Presentation server and load it in to a Internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use &amp;lt;b&amp;gt;OPEN DATASET &amp;lt;filename&amp;gt; FOR INPUT IN TEXT MODE&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;then use *-- LOOP UNTIL THE END OF FLAT FILE&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;*-- POPULATES FLAT FILE DATA INTO INTERNAL TABLE&lt;/P&gt;&lt;P&gt;      READ DATASET &amp;lt;filename&amp;gt; INTO &amp;lt;Internal table&amp;gt;.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        APPEND &amp;lt;internale table&amp;gt;.&lt;/P&gt;&lt;P&gt;        CLEAR: &amp;lt;internale table&amp;gt;.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;*--Close the file&lt;/P&gt;&lt;P&gt;    CLOSE DATASET &amp;lt;filename&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you understand &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041159#M86570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041160#M86571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report ztest.

data: begin of itab occurs 0,
        field(256),
      end   of itab.
data: dsn(100) value '/usr/sap/xfr/FIS/testbmp'.

call function 'GUI_UPLOAD'
     exporting
          filename   = 'c:temptest.txt'
     tables
          data_tab   = itab.

open dataset dsn for output in binary mode.

loop at itab.
  transfer itab-field to dsn.
endloop.

close dataset dsn.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041160#M86571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041161#M86572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use transactions:&lt;/P&gt;&lt;P&gt; CG3Y and CG3Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041161#M86572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041162#M86573</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 with OPEN,READ and CLOSE DATASETS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2005 16:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-files-from-presentation-server/m-p/1041162#M86573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-07T16:45:28Z</dc:date>
    </item>
  </channel>
</rss>

