Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exception for ws_excel

Former Member
0 Likes
343

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.

1 REPLY 1
Read only

Former Member
0 Likes
317

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