Application Development 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: 

raising exception in file......

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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