<?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: put a file on presentation server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377851#M1041566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"Table declarations...................................................
TABLES:
  vbak.                                " Sales Document Header

*"Selection screen elements............................................
SELECT-OPTIONS:
  s_vbeln FOR vbak-vbeln.              " Sales Document

*" Data declarations...................................................
*"--------------------------------------------------------------------*
* Internal Table - VBAK                                               *
*"--------------------------------------------------------------------*
DATA:
  BEGIN OF t_vbak OCCURS 0,
    vbeln TYPE vbak-vbeln,             " Sales Document
    erdat TYPE vbak-erdat,             " Document Date
    erzet TYPE vbak-erzet,             " Time
    ernam TYPE vbak-ernam,             " Name
  END OF t_vbak.

*"--------------------------------------------------------------------*
* Work variables                                                      *
*"--------------------------------------------------------------------*
DATA:
  file_path LIKE ibipparms-path,
  file_path1 TYPE string.



SELECT vbeln                           " Sales Document
       erdat                           " Document Date
       erzet                           " Time
       ernam                           " Name
  FROM vbak
  INTO TABLE t_vbak
 WHERE vbeln IN s_vbeln.


**"--------------------------------------------------------------------*
** Function Module -  F4_FILENAME                                      *
**"--------------------------------------------------------------------*
*CALL FUNCTION 'F4_FILENAME'
** EXPORTING
**   PROGRAM_NAME        = SYST-CPROG
**   DYNPRO_NUMBER       = SYST-DYNNR
**   FIELD_NAME          = ' '
* IMPORTING
*   file_name           =  file_path.


file_path1  =  'C:/Doc4.doc'.


*"--------------------------------------------------------------------*
* Function Module -  GUI_DOWNLOAD                                     *
*"--------------------------------------------------------------------*
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
*   BIN_FILESIZE                  =
    filename                      = file_path1
    filetype                      = 'ASC'
*    append                        = 'X'
    write_field_separator         = 'X'
*   HEADER                        = '00'
*   TRUNC_TRAILING_BLANKS         = ' '
*   WRITE_LF                      = 'X'
*   COL_SELECT                    = ' '
*   COL_SELECT_MASK               = ' '
*   DAT_MODE                      = ' '
*   CONFIRM_OVERWRITE             = ' '
*   NO_AUTH_CHECK                 = ' '
*   CODEPAGE                      = ' '
*   IGNORE_CERR                   = ABAP_TRUE
*   REPLACEMENT                   = '#'
*   WRITE_BOM                     = ' '
* IMPORTING
*   FILELENGTH                    =
  TABLES
    data_tab                      =  t_vbak
 EXCEPTIONS
   file_write_error              = 1
   no_batch                      = 2
   gui_refuse_filetransfer       = 3
   invalid_type                  = 4
   no_authority                  = 5
   unknown_error                 = 6
   header_not_allowed            = 7
   separator_not_allowed         = 8
   filesize_not_allowed          = 9
   header_too_long               = 10
   dp_error_create               = 11
   dp_error_send                 = 12
   dp_error_write                = 13
   unknown_dp_error              = 14
   access_denied                 = 15
   dp_out_of_memory              = 16
   disk_full                     = 17
   dp_timeout                    = 18
   file_not_found                = 19
   dataprovider_exception        = 20
   control_flush_error           = 21
   OTHERS                        = 22
          .
IF sy-subrc EQ 0.
  MESSAGE 'File Download Successful'(001) TYPE 'S'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Aug 2008 08:25:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-27T08:25:35Z</dc:date>
    <item>
      <title>put a file on presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377845#M1041560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wats the tcode to access the presentations server and how to put a file there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377845#M1041560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: put a file on presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377846#M1041561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a class cl_gui_frontend_services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the method gui_download can be used for this purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    filename                  = &amp;lt;put the entire path of file here. example 'C:\test.txt'&lt;/P&gt;&lt;P&gt;    filetype                  = 'ASC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    write_field_separator     = 'X'&lt;/P&gt;&lt;P&gt;  changing&lt;/P&gt;&lt;P&gt;    data_tab                  = ITAB "this is your internal table that holds the data to be written to the file.&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    file_write_error          = 1&lt;/P&gt;&lt;P&gt;    no_batch                  = 2&lt;/P&gt;&lt;P&gt;    gui_refuse_filetransfer   = 3&lt;/P&gt;&lt;P&gt;    invalid_type              = 4&lt;/P&gt;&lt;P&gt;    no_authority              = 5&lt;/P&gt;&lt;P&gt;    unknown_error             = 6&lt;/P&gt;&lt;P&gt;    header_not_allowed        = 7&lt;/P&gt;&lt;P&gt;    separator_not_allowed     = 8&lt;/P&gt;&lt;P&gt;    filesize_not_allowed      = 9&lt;/P&gt;&lt;P&gt;    header_too_long           = 10&lt;/P&gt;&lt;P&gt;    dp_error_create           = 11&lt;/P&gt;&lt;P&gt;    dp_error_send             = 12&lt;/P&gt;&lt;P&gt;    dp_error_write            = 13&lt;/P&gt;&lt;P&gt;    unknown_dp_error          = 14&lt;/P&gt;&lt;P&gt;    access_denied             = 15&lt;/P&gt;&lt;P&gt;    dp_out_of_memory          = 16&lt;/P&gt;&lt;P&gt;    disk_full                 = 17&lt;/P&gt;&lt;P&gt;    dp_timeout                = 18&lt;/P&gt;&lt;P&gt;    file_not_found            = 19&lt;/P&gt;&lt;P&gt;    dataprovider_exception    = 20&lt;/P&gt;&lt;P&gt;    control_flush_error       = 21&lt;/P&gt;&lt;P&gt;    not_supported_by_gui      = 22&lt;/P&gt;&lt;P&gt;    error_no_gui              = 23&lt;/P&gt;&lt;P&gt;    others                    = 24&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:16:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377846#M1041561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: put a file on presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377847#M1041562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presentation server is nothing but the workstation (Desktop), on which you are working on.... I think you wanted to know abt Application Server. Then the transactions are CG3Z, CG3Y and AL11...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amol Lohade&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377847#M1041562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: put a file on presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377848#M1041563</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;Upload Data into SAP from a Presentation Server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retrieve data file from presentation server(Upload from PC)&lt;/P&gt;&lt;P&gt;DATA: i_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.&lt;/P&gt;&lt;P&gt;DATA: begin of it_datatab occurs 0,&lt;/P&gt;&lt;P&gt;  row(500) type c,&lt;/P&gt;&lt;P&gt; end of it_datatab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            filename        = i_file&lt;/P&gt;&lt;P&gt;            filetype        = 'ASC'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab        = it_datatab  "ITBL_IN_RECORD[]&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            file_open_error = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Download Data from SAP to presentation server file(PC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ld_filename TYPE string,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Pre version 4.7 declaration e_file like rlgrap-filename.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: begin of it_datatab occurs 0,&lt;/P&gt;&lt;P&gt;  row(500) type c,&lt;/P&gt;&lt;P&gt; end of it_datatab.&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;P&gt;            filename         = ld_filename&lt;/P&gt;&lt;P&gt;            filetype         = 'ASC'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            data_tab         = it_datatab[]&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            file_open_error  = 1&lt;/P&gt;&lt;P&gt;            file_write_error = 2&lt;/P&gt;&lt;P&gt;            others           = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruthra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377848#M1041563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: put a file on presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377849#M1041564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  The function module to load internal table data to a file on presentation server(your computer) is GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;Check this sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_file_download.
DATA: w_name(90) TYPE c.
DATA:
  BEGIN OF fs_flight,
    carrid   LIKE sflight-carrid,
    connid   LIKE sflight-connid,
    fldate   LIKE sflight-fldate,
    price    LIKE sflight-price,
    currency LIKE sflight-currency,
  END OF fs_flight.
DATA:
  BEGIN OF fs_head,
    carrid(10) TYPE c,
    connid(10) TYPE c,
    fldate(10) TYPE c,
    price(10) TYPE c,
    curr(10) TYPE c,
  END OF fs_head.
DATA:
  t_head LIKE
   TABLE OF
         fs_head.
DATA:
  t_flight LIKE
     TABLE OF
           fs_flight.

fs_head-carrid = 'CARRID'.
fs_head-connid = 'CONNID'.
fs_head-fldate = 'FLDATE'.
fs_head-price  = 'PRICE'.
fs_head-curr   = 'CURRENCY'.
APPEND fs_head TO t_head.
SELECT-OPTIONS:
  s_carrid FOR fs_flight-carrid.



START-OF-SELECTION.
  SELECT carrid
         connid
         fldate
         price
         currency
    FROM sflight
    INTO TABLE t_flight
   WHERE carrid IN s_carrid.

CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
*   BIN_FILESIZE                  =
    filename                      = 'D:\flight.xls'
   FILETYPE                      = 'ASC'
*   APPEND                        = ' '
    WRITE_FIELD_SEPARATOR         = 'X'
*   HEADER                        = '00'
*   TRUNC_TRAILING_BLANKS         = ' '
*   WRITE_LF                      = 'X'
*   COL_SELECT                    = ' '
*   COL_SELECT_MASK               = ' '
*   DAT_MODE                      = ' '
*   CONFIRM_OVERWRITE             = ' '
*   NO_AUTH_CHECK                 = ' '
*   CODEPAGE                      = ' '
*   IGNORE_CERR                   = ABAP_TRUE
*   REPLACEMENT                   = '#'
*   WRITE_BOM                     = ' '
* IMPORTING
*   FILELENGTH                    =
  tables
    data_tab                      = t_head
 EXCEPTIONS
   FILE_WRITE_ERROR              = 1
   NO_BATCH                      = 2
   GUI_REFUSE_FILETRANSFER       = 3
   INVALID_TYPE                  = 4
   NO_AUTHORITY                  = 5
   UNKNOWN_ERROR                 = 6
   HEADER_NOT_ALLOWED            = 7
   SEPARATOR_NOT_ALLOWED         = 8
   FILESIZE_NOT_ALLOWED          = 9
   HEADER_TOO_LONG               = 10
   DP_ERROR_CREATE               = 11
   DP_ERROR_SEND                 = 12
   DP_ERROR_WRITE                = 13
   UNKNOWN_DP_ERROR              = 14
   ACCESS_DENIED                 = 15
   DP_OUT_OF_MEMORY              = 16
   DISK_FULL                     = 17
   DP_TIMEOUT                    = 18
   FILE_NOT_FOUND                = 19
   DATAPROVIDER_EXCEPTION        = 20
   CONTROL_FLUSH_ERROR           = 21
   OTHERS                        = 22
          .
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.



  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename                = 'D:\flight.xls'
      filetype                = 'ASC'
      append                  = 'X'
      write_field_separator   = 'X'
    TABLES
      data_tab                = t_flight
    EXCEPTIONS
      file_write_error        = 1
      no_batch                = 2
      gui_refuse_filetransfer = 3
      invalid_type            = 4
      no_authority            = 5
      unknown_error           = 6
      header_not_allowed      = 7
      separator_not_allowed   = 8
      filesize_not_allowed    = 9
      header_too_long         = 10
      dp_error_create         = 11
      dp_error_send           = 12
      dp_error_write          = 13
      unknown_dp_error        = 14
      access_denied           = 15
      dp_out_of_memory        = 16
      disk_full               = 17
      dp_timeout              = 18
      file_not_found          = 19
      dataprovider_exception  = 20
      control_flush_error     = 21
      OTHERS                  = 22.
  IF sy-subrc EQ 0.
    MESSAGE 'Download successful' TYPE 'I'.
  ENDIF.
  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;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377849#M1041564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: put a file on presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377850#M1041565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to put a file on presentation server u can use&lt;/P&gt;&lt;P&gt; cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;and to put a file application server u need to use the syntax&lt;/P&gt;&lt;P&gt;open dataset &amp;lt;name of the parameter&amp;gt; for input.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;close dataset &amp;lt;name of the parameter&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377850#M1041565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: put a file on presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377851#M1041566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"Table declarations...................................................
TABLES:
  vbak.                                " Sales Document Header

*"Selection screen elements............................................
SELECT-OPTIONS:
  s_vbeln FOR vbak-vbeln.              " Sales Document

*" Data declarations...................................................
*"--------------------------------------------------------------------*
* Internal Table - VBAK                                               *
*"--------------------------------------------------------------------*
DATA:
  BEGIN OF t_vbak OCCURS 0,
    vbeln TYPE vbak-vbeln,             " Sales Document
    erdat TYPE vbak-erdat,             " Document Date
    erzet TYPE vbak-erzet,             " Time
    ernam TYPE vbak-ernam,             " Name
  END OF t_vbak.

*"--------------------------------------------------------------------*
* Work variables                                                      *
*"--------------------------------------------------------------------*
DATA:
  file_path LIKE ibipparms-path,
  file_path1 TYPE string.



SELECT vbeln                           " Sales Document
       erdat                           " Document Date
       erzet                           " Time
       ernam                           " Name
  FROM vbak
  INTO TABLE t_vbak
 WHERE vbeln IN s_vbeln.


**"--------------------------------------------------------------------*
** Function Module -  F4_FILENAME                                      *
**"--------------------------------------------------------------------*
*CALL FUNCTION 'F4_FILENAME'
** EXPORTING
**   PROGRAM_NAME        = SYST-CPROG
**   DYNPRO_NUMBER       = SYST-DYNNR
**   FIELD_NAME          = ' '
* IMPORTING
*   file_name           =  file_path.


file_path1  =  'C:/Doc4.doc'.


*"--------------------------------------------------------------------*
* Function Module -  GUI_DOWNLOAD                                     *
*"--------------------------------------------------------------------*
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
*   BIN_FILESIZE                  =
    filename                      = file_path1
    filetype                      = 'ASC'
*    append                        = 'X'
    write_field_separator         = 'X'
*   HEADER                        = '00'
*   TRUNC_TRAILING_BLANKS         = ' '
*   WRITE_LF                      = 'X'
*   COL_SELECT                    = ' '
*   COL_SELECT_MASK               = ' '
*   DAT_MODE                      = ' '
*   CONFIRM_OVERWRITE             = ' '
*   NO_AUTH_CHECK                 = ' '
*   CODEPAGE                      = ' '
*   IGNORE_CERR                   = ABAP_TRUE
*   REPLACEMENT                   = '#'
*   WRITE_BOM                     = ' '
* IMPORTING
*   FILELENGTH                    =
  TABLES
    data_tab                      =  t_vbak
 EXCEPTIONS
   file_write_error              = 1
   no_batch                      = 2
   gui_refuse_filetransfer       = 3
   invalid_type                  = 4
   no_authority                  = 5
   unknown_error                 = 6
   header_not_allowed            = 7
   separator_not_allowed         = 8
   filesize_not_allowed          = 9
   header_too_long               = 10
   dp_error_create               = 11
   dp_error_send                 = 12
   dp_error_write                = 13
   unknown_dp_error              = 14
   access_denied                 = 15
   dp_out_of_memory              = 16
   disk_full                     = 17
   dp_timeout                    = 18
   file_not_found                = 19
   dataprovider_exception        = 20
   control_flush_error           = 21
   OTHERS                        = 22
          .
IF sy-subrc EQ 0.
  MESSAGE 'File Download Successful'(001) TYPE 'S'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377851#M1041566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: put a file on presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377852#M1041567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a list of FM to acces the Presentation server...&lt;/P&gt;&lt;P&gt;Please check them out below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TMP_GUI_CREATE_DIRECTORY    : Create a folder on P server&lt;/P&gt;&lt;P&gt;TMP_GUI_DIRECTORY_LIST_FILES   : List the files on a folder in P server&lt;/P&gt;&lt;P&gt;TMP_GUI_READ_DIRECTORY   : Read from a folder&lt;/P&gt;&lt;P&gt;TMP_GUI_REMOVE_DIRECTORY    : Delete a folder on P server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITS_DIRECTORY_GET&lt;/P&gt;&lt;P&gt;ITS_DIRECTORY_LIST_FILES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFL_CHECK_DIRECTORY   : Check if a folder exists or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To put a file onto the P server, use GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2008 08:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/put-a-file-on-presentation-server/m-p/4377852#M1041567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-27T08:43:45Z</dc:date>
    </item>
  </channel>
</rss>

