Skip to Content
0
Former Member
Jul 06, 2009 at 09:42 AM

how does try...endtry work if try fails?

137 Views

Hi Gurus,

I have a question. Will the code inside try...endtry be executed if TRY statement fails.

To be specific, see my scenario below. itab is an internal table with only one field 'line' of type c and length 100. cx_sy_conversion_codepage is used to handle unicode error. How will the code below work if itab-line has a unicode error?

Will it skip that particular line or will that line be moved to the unix file?

LOOP AT itab.

TRY.

TRANSFER itab-line TO unix_file.

CATCH cx_sy_conversion_codepage.

ENDTRY.

ENDLOOP.

Thank you,

Nobin