‎2007 May 29 3:44 PM
Hello people,
I am working in 3.1i version .
I have used WS_EXCEL to open an excel sheet and if user wants to save he can save manually or else delete it .In my scenario if the excel is open and user executes the program it goes to dump due the exception is FILE_OPEN_ERROR but this exception is not there in the function module i am using .
Could you help me out with try or catch statements to catch exception and display error msg instead.
I do not want use WS_DOWNLOAD.
‎2007 May 29 4:09 PM
Hi,
Insdie WS_EXCEL, FM WS_DOWNLOAD is used which returns that exception.
TRY.
CALL fm 'WS_EXCEL'
CATCH UNKNOWN_ERROR into l_error.
ENDTRY.
If not l_error is initial.
.....
endif.
Best regards,
Prashant