<?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: Download to Excel functionality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-to-excel-functionality/m-p/3145341#M747703</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;In the exceptions u have to handle it for evry single exception.&lt;/P&gt;&lt;P&gt;In your coding u are checking only for sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Not for other exceptons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handle all the other exceptions as well within ur IF and ENDIF.&lt;/P&gt;&lt;P&gt;Then u can give whatever the message you want to give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;SImha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2007 07:52:29 GMT</pubDate>
    <dc:creator>Simha_</dc:creator>
    <dc:date>2007-12-27T07:52:29Z</dc:date>
    <item>
      <title>Download to Excel functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-to-excel-functionality/m-p/3145340#M747702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a FM LIST_DOWNLOAD.&lt;/P&gt;&lt;P&gt;It shows a pop up message once dowlnload is successful.&lt;/P&gt;&lt;P&gt;But everytime I am choosing cancel button its also showing me the same pop up message saying Successful download,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'LIST_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      list_index          = 0&lt;/P&gt;&lt;P&gt;      method              = 'DAT'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      list_download_error = 1&lt;/P&gt;&lt;P&gt;      OTHERS              = 2.&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;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Information message to inform the user that the file has been&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;successfully been created.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE i910.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as control is going to else part always.&lt;/P&gt;&lt;P&gt;Plz suggest me something that can be done in case something failure happens or I press X button for cancelling and it wont show me some other message for the action I have taken. I may have to overwrite an existing file and in case of error it should show proper message.&lt;/P&gt;&lt;P&gt;Even when the file could not be downloaded properly proper message should be shown, etc etc.&lt;/P&gt;&lt;P&gt;I mean any to find something which catches the action which I have performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Binay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 07:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/download-to-excel-functionality/m-p/3145340#M747702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T07:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Download to Excel functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-to-excel-functionality/m-p/3145341#M747703</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;In the exceptions u have to handle it for evry single exception.&lt;/P&gt;&lt;P&gt;In your coding u are checking only for sy-subrc = 0.&lt;/P&gt;&lt;P&gt;Not for other exceptons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handle all the other exceptions as well within ur IF and ENDIF.&lt;/P&gt;&lt;P&gt;Then u can give whatever the message you want to give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;SImha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 07:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/download-to-excel-functionality/m-p/3145341#M747703</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-12-27T07:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Download to Excel functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/download-to-excel-functionality/m-p/3145342#M747704</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 FM : GUI_DOWNLOAD and check the value of SY_SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can give then appropriate message depending upon the value of SY_SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward if helpful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 07:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/download-to-excel-functionality/m-p/3145342#M747704</guid>
      <dc:creator>VikasB</dc:creator>
      <dc:date>2007-12-27T07:54:17Z</dc:date>
    </item>
  </channel>
</rss>

