‎2010 Dec 23 10:18 AM
Dear Experts,
I am using the method cl_gui_frontend_services=>file_copy to copy file from one location to another location.
But when either of the input parameters are invalid, the program throws a short dump like path_not_found, access_denied, file_not_found.
I think internally, the program calls raise satement.
How to handle these exceptions in order to avoid runtime errors/short dump?
Is there any exception class for all these type of exceptions?
Thanks in Advance
‎2010 Dec 23 10:23 AM
I think you have commented the exception parameters in the code, while calling the method. Uncomment those and handle them by checking sy-subrc.
‎2010 Dec 23 10:27 AM
Hi,
You may use ST22 and check which exception is beign raised under which scenarion.
Once you are ready with list of all Exceptions keep the Method call in TRY. ENDTRY. Block
and after the Method call use Catch Exception to catch all the possible exception into their Class Reference.
Thanks,
Preyansh