Skip to Content
0
Former Member
Dec 27, 2007 at 07:49 AM

Download to Excel functionality

54 Views

HI Gurus,

I am using a FM LIST_DOWNLOAD.

It shows a pop up message once dowlnload is successful.

But everytime I am choosing cancel button its also showing me the same pop up message saying Successful download,

CALL FUNCTION 'LIST_DOWNLOAD'

EXPORTING

list_index = 0

method = 'DAT'

EXCEPTIONS

list_download_error = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ELSE.

  • Information message to inform the user that the file has been

  • successfully been created.

MESSAGE i910.

ENDIF.

as control is going to else part always.

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.

Even when the file could not be downloaded properly proper message should be shown, etc etc.

I mean any to find something which catches the action which I have performed.

Plz reply.

Regards,

Binay.