<?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: GUI Upload Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104511#M1184411</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 have fieldname ( as F4 help ) on selection screen,&lt;/P&gt;&lt;P&gt;then place ur message in at selection-screen on fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 13:20:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T13:20:28Z</dc:date>
    <item>
      <title>GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104504#M1184404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am uploadign hte file using GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the file is not available, the sy-subrc is not zero and hte system message is thrown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this message, the user is thrown out of transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to prompt the error message to the user but the user should remain on the same file selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyidea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104504#M1184404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104505#M1184405</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;Give the user message after chking sy-subc as&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;  Message 'Error  in uploading' type 'I'.  ***You can give either 'E' if it is Error message&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104505#M1184405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104506#M1184406</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;and gui_upload function module should be in the at selection-screen event....&lt;/P&gt;&lt;P&gt;After the gui_upload function module... use the if condition as given below....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  message 'File not found' type 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104506#M1184406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104507#M1184407</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 have to do like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'                                "#EC *&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = l_s_file&lt;/P&gt;&lt;P&gt;      filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;      has_field_separator     = c_x&lt;/P&gt;&lt;P&gt;      replacement             = '#'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = g_t_file1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_open_error         = 1&lt;/P&gt;&lt;P&gt;      file_read_error         = 2&lt;/P&gt;&lt;P&gt;      no_batch                = 3&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;      invalid_type            = 5&lt;/P&gt;&lt;P&gt;      no_authority            = 6&lt;/P&gt;&lt;P&gt;      unknown_error           = 7&lt;/P&gt;&lt;P&gt;      bad_data_format         = 8&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;      header_too_long         = 11&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;      access_denied           = 13&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;      disk_full               = 15&lt;/P&gt;&lt;P&gt;      dp_timeout              = 16&lt;/P&gt;&lt;P&gt;      OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;{ Begin of Addition SN1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    CASE sy-subrc.&lt;/P&gt;&lt;P&gt;      WHEN 1.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc1 TYPE 'S' RAISING file_open_error.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 2.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc2 TYPE 'S' RAISING file_read_error.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 3.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc3 TYPE 'S' RAISING no_batch.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 4.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc4 TYPE 'S' RAISING gui_refuse_filetransfer.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 5.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc5 TYPE 'S' RAISING invalid_type.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 6.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc6 TYPE 'S' RAISING no_authority.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 7.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc7 TYPE 'S' RAISING unknown_error.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 8.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc8 TYPE 'S' RAISING bad_data_format.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 9.&lt;/P&gt;&lt;P&gt;        MESSAGE text-rc9 TYPE 'S' RAISING header_not_allowed.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 10.&lt;/P&gt;&lt;P&gt;        MESSAGE text-r10 TYPE 'S' RAISING separator_not_allowed.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 11.&lt;/P&gt;&lt;P&gt;        MESSAGE text-r11 TYPE 'S' RAISING header_too_long.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 12.&lt;/P&gt;&lt;P&gt;        MESSAGE text-r12 TYPE 'S' RAISING unknown_dp_error.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 13.&lt;/P&gt;&lt;P&gt;        MESSAGE text-r13 TYPE 'S' RAISING access_denied.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 14.&lt;/P&gt;&lt;P&gt;        MESSAGE text-r14 TYPE 'S' RAISING dp_out_of_memory.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 15.&lt;/P&gt;&lt;P&gt;        MESSAGE text-r15 TYPE 'S' RAISING disk_ful.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN 16.&lt;/P&gt;&lt;P&gt;        MESSAGE text-r16 TYPE 'S' RAISING dp_timeout.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.&lt;/P&gt;&lt;P&gt;        MESSAGE text-r17 TYPE 'S' RAISING unknown_error.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104507#M1184407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104508#M1184408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting hte appropriate error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However after error message display, the user has to hit enter and after hitting enter se is sent out of the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the usee to remain on the same transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104508#M1184408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104509#M1184409</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;After,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;throwing error message...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is a report then u can use &lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if it is a module pool...then  use ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transacation 'TCODE'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104509#M1184409</guid>
      <dc:creator>Mohamed_Mukhtar</dc:creator>
      <dc:date>2009-02-09T13:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104510#M1184410</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;Use STOP Command after the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        Message 'No Input File is available' type 'I'.&lt;/P&gt;&lt;P&gt;        STOP..&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104510#M1184410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104511#M1184411</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 have fieldname ( as F4 help ) on selection screen,&lt;/P&gt;&lt;P&gt;then place ur message in at selection-screen on fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104511#M1184411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Upload Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104512#M1184412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If u want to handle error by urself, then simply use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN .&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                = 'C:\Testing.xls'&lt;/P&gt;&lt;P&gt;      filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;      has_field_separator     = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = g_t_mara1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_open_error         = 1&lt;/P&gt;&lt;P&gt;      file_read_error         = 2&lt;/P&gt;&lt;P&gt;      no_batch                = 3&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;      invalid_type            = 5&lt;/P&gt;&lt;P&gt;      no_authority            = 6&lt;/P&gt;&lt;P&gt;      unknown_error           = 7&lt;/P&gt;&lt;P&gt;      bad_data_format         = 8&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;      header_too_long         = 11&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;      access_denied           = 13&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;      disk_full               = 15&lt;/P&gt;&lt;P&gt;      dp_timeout              = 16&lt;/P&gt;&lt;P&gt;      OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i010(zawi_demo). (Your information message)&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 13:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-error/m-p/5104512#M1184412</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-02-09T13:26:08Z</dc:date>
    </item>
  </channel>
</rss>

