<?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 down laod file problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761611#M1116494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below code downloading file&lt;/P&gt;&lt;P&gt;but I am getting the short dump like 'Acess denied'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF xml_line_dl,&lt;/P&gt;&lt;P&gt;        data(10000) TYPE c,&lt;/P&gt;&lt;P&gt;      END OF xml_line_dl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data:    gv_filename_dld     TYPE string value 'c:\abc.xml '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:      xml_table_dld TYPE TABLE OF xml_line_dl.&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 = gv_filename_dld&lt;/P&gt;&lt;P&gt;              filetype = 'ASC'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              data_tab = xml_table_dld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me  I need to avoid the short dump If I dont have the acess to 'C:\' drive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insted of short dump I need to populate the error message If I dont have the acess to C derive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThanX&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2008 18:41:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-03T18:41:36Z</dc:date>
    <item>
      <title>down laod file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761611#M1116494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below code downloading file&lt;/P&gt;&lt;P&gt;but I am getting the short dump like 'Acess denied'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF xml_line_dl,&lt;/P&gt;&lt;P&gt;        data(10000) TYPE c,&lt;/P&gt;&lt;P&gt;      END OF xml_line_dl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data:    gv_filename_dld     TYPE string value 'c:\abc.xml '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:      xml_table_dld TYPE TABLE OF xml_line_dl.&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 = gv_filename_dld&lt;/P&gt;&lt;P&gt;              filetype = 'ASC'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              data_tab = xml_table_dld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me  I need to avoid the short dump If I dont have the acess to 'C:\' drive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insted of short dump I need to populate the error message If I dont have the acess to C derive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThanX&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 18:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761611#M1116494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T18:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: down laod file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761612#M1116495</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;You can use the Exception's of the Function module for this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 18:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761612#M1116495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T18:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: down laod file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761613#M1116496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try handling the exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE p_file TO xfile.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = xfile&lt;/P&gt;&lt;P&gt;      filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      filelength              = bytes_written&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = t_out&lt;/P&gt;&lt;P&gt;      fieldnames              = t_output&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;      OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 18:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761613#M1116496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T18:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: down laod file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761614#M1116497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the function call check SY-SUBRC &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if SY-SUBRC = 15. &lt;/P&gt;&lt;P&gt;&amp;lt;custom messgae&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 18:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761614#M1116497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T18:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: down laod file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761615#M1116498</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;Do like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function GUI_DOWNLOAD using pattern button and uncomment the Exceptions parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the Exception ACCESS_DENIED, you will get sy-subrc = 15, and you can populate your error/information message here only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: &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;/UL&gt;&lt;P&gt;WRITE_FIELD_SEPARATOR = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER = '00'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS = 'X '&lt;/P&gt;&lt;UL&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 = ITAB&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;OTHERS = 22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Write your message here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 18:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761615#M1116498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T18:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: down laod file problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761616#M1116499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using exceptions is the best practice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 19:07:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/down-laod-file-problem/m-p/4761616#M1116499</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-11-03T19:07:24Z</dc:date>
    </item>
  </channel>
</rss>

