09-06-2009 9:49 AM
Hi Experts,
This is my code for reading file from application server......
READ DATASET p_filename INTO p_read.
CATCH cx_sy_conversion_codepage INTO exc.
text = exc->get_text( ).
CONCATENATE text 'File: : ' p_filename INTO text.
Problem arise when number of file is 10000 this exception is raised.......which is producing dump....raising this exception.....
I want to by pass this exception .....
please guide me???
thanks
babbal
09-06-2009 10:57 AM
Hi,
Put your whole set of statements from READ into the CATCH - ENDCATCH..
You can use the system exception CX_ROOT this will catch all the major system exceptions...This can avoid dumps..
Regards
Shiva
09-06-2009 11:59 AM
Hi,
use this code
TRY.
READ DATASET p_filename INTO p_read.
CATCH cx_sy_conversion_codepage INTO exc.
text = exc->get_text( ).
ENDTRY.
CONCATENATE text 'File: : ' p_filename INTO text.
Regards,
Siddarth