Application Development and Automation 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: 
Read only

call transformation xml - catch error

Former Member
0 Likes
2,803

Hi!

Use

TRY.

       CALL TRANSFORMATION z_xml

         SOURCE XML l_xmlstr

         RESULT root = et_root.

CATCH cx_st_error INTO l_error.


l_text = l_error->get_text( ).

ENDTRY.

l_text = l_error->get_text( ) - This method return only (expl: data(1)employee(2)PERNR(20) )

how to find the line where the error xml ?

ex: l_text = get_str_where_error( ).

result

l_text =  <PERNR>777+dd<PERNR/>.

Please Help!


1 ACCEPTED SOLUTION
Read only

arindam_m
Active Contributor
0 Likes
1,350
3 REPLIES 3
Read only

arindam_m
Active Contributor
0 Likes
1,351
Read only

Former Member
0 Likes
1,350

Thanx!

Read only

arindam_m
Active Contributor
0 Likes
1,350

Welcome