<?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: CALL FUNCTION 'GUI_DOWNLOAD' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756517#M327756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BIN_FILESIZE                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        FILENAME                      = filename&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      APPEND                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      WRITE_FIELD_SEPARATOR         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      HEADER                        = '00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TRUNC_TRAILING_BLANKS         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      WRITE_LF                      = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      COL_SELECT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      COL_SELECT_MASK               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DATA_TAB                      = i_tab&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you give me an examp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Dec 2006 10:31:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-15T10:31:32Z</dc:date>
    <item>
      <title>CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756509#M327748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use this function to download file to my desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now-&amp;gt; i want to download it to server it's the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756509#M327748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756510#M327749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For downloading on server we use Open Dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET P_OUT1 FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;           TRANSFER it_BUFFER TO P_OUT1.&lt;/P&gt;&lt;P&gt;CLOSE DATASET P_OUT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756510#M327749</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2006-12-15T09:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756511#M327750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u want to transfer it to the application server then u cant use this function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to use &lt;/P&gt;&lt;P&gt;OPEN DATASET &amp;lt;filename&amp;gt; FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;loop at &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;TRANSFER &amp;lt;itab&amp;gt; TO &amp;lt;filename&amp;gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;CLOSE DATASET &amp;lt;filename&amp;gt;&lt;/P&gt;&lt;P&gt;statements to transer the data into application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Elan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756511#M327750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756512#M327751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;hi Rani,

   Welcome back,,,after long time!!

  U can use CG3Z transaction or

  OPEN DATASET 

  TRANSFER 
 
  CLOSE DATASET&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756512#M327751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756513#M327752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;small piece of code on the same. please check it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        catch system-exceptions DATASET_CANT_OPEN = 8.&lt;/P&gt;&lt;P&gt;          open dataset UNIX_FILE for output in text mode encoding default.&lt;/P&gt;&lt;P&gt;        endcatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write to Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        loop at IT_STR into IS_STR.&lt;/P&gt;&lt;P&gt;          catch system-exceptions DATASET_NOT_OPEN = 0  .&lt;/P&gt;&lt;P&gt;            transfer IS_STR-STR to UNIX_FILE.&lt;/P&gt;&lt;P&gt;          endcatch.&lt;/P&gt;&lt;P&gt;          clear : IS_STR.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if SY-SUBRC eq 0.&lt;/P&gt;&lt;P&gt;          message S138(ZSM) with 'Data in Unix File ' UNIX_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          " Change the status of PO Header&lt;/P&gt;&lt;P&gt;          IS_PO-PO_STATUS = 'ACK'.&lt;/P&gt;&lt;P&gt;          modify ZES_PO from IS_PO_FINAL.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close Dataset&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        close dataset UNIX_FILE.&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;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756513#M327752</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-12-15T09:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756514#M327753</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;    if u want to download it to the application server u have  to use the following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax.  open dataset filename  for output in text mode encoding default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for knowing much about this  write 'OPEN DATASET' press f1 u will get clear idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756514#M327753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756515#M327754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use the same function for downloading file to server. The FM doesnot provide this facitlity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For downloading to server, you need to use&lt;/P&gt;&lt;P&gt;1. OPEN DATASET p_file_path FOR OUTPUT.&lt;/P&gt;&lt;P&gt;2.  TRANSFER&lt;/P&gt;&lt;P&gt;3. CLOSE DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details refer to the SAP help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chetan.&lt;/P&gt;&lt;P&gt;PS:Reward points if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756515#M327754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756516#M327755</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;The FM's GUI_UPLOAD, GUI_DOWNLOAD both are used to file to upload and download data from internal table  to presentation server and viceversa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Tcodes CG3Y,CG3z both are used to file to upload and download data from Presentation server file to applciaiton server and viceversa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to acheive same use &lt;/P&gt;&lt;P&gt;OPEN DATASET&lt;/P&gt;&lt;P&gt;READ DATASET&lt;/P&gt;&lt;P&gt;CLOSE DATASET&lt;/P&gt;&lt;P&gt;Use above three statements to store data in application server file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 09:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756516#M327755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T09:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: CALL FUNCTION 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756517#M327756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BIN_FILESIZE                  =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        FILENAME                      = filename&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      APPEND                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      WRITE_FIELD_SEPARATOR         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      HEADER                        = '00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TRUNC_TRAILING_BLANKS         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      WRITE_LF                      = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      COL_SELECT                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      COL_SELECT_MASK               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DATA_TAB                      = i_tab&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you give me an examp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 10:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-gui-download/m-p/1756517#M327756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T10:31:32Z</dc:date>
    </item>
  </channel>
</rss>

