cancel
Showing results for 
Search instead for 
Did you mean: 

Question about exceptions in function module GUI_DOWNLOAD

Former Member
0 Kudos

To all,

I add the function module 'GUI_DOWNLOAD' in the ABAP report program. After the user download the data to excel, the program also displays a report on the screen for print output.

If the user keep the excel file open and tries to replace the file on download, the program gives an error message 'Access to file denied' and the program ends without displaying a report on the screen.

Is there any way not to end the program even if download is failed?

I would like the program displays a report after it gives an error message.

So I am trying to use exceptions. But if I code to give messages, the programs ends as above. And if I just make exit when it happens, no error message and the program displays a report but the user don't know if the excel file was updated or not.

Could anybody kindly let me know how to code exceptions and messages if it is possible the program works I hope.

Thank you very much in advance.

Best regards,

Miki Komatsu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

 I figured out how to do that.

Thanks.

Best regards,

Miki