Skip to Content
0
Former Member
Apr 23, 2009 at 06:58 AM

how to catch exceptions for open dataset.

1242 Views

Hello i want to catch exceptions for open dataset. the code is as follows:"

try

open dataset p_ref for input in text mode encoding default.

if sy-subrc ne 0.

message text-005 type gc_e.

endif.

close dataset p_ref.

endtry.

how can i catch all exceptions that are arised? thx