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: 

CALL TRANSFORMATION

Former Member
0 Kudos
429

Is it possible to add a table type within a structure that is begin passed into call transformation? I am trying to convert xml file data into abap structure which has a table type within a table type. Is this possible?

In the xslt i have a loop with in a loop and it works fine from XSLT but errors out when calling from ABAP program.

error is :CX_XSLT_FORMAT_ERROR

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos
159

try catching it :

CATCH cx_xslt_format_error INTO cx_format_error.

WRITE 😕 'kernel_errid = ', cx_format_error->kernel_errid.

err_text = cx_format_error->get_text( ).

WRITE 😕 'text = ', err_text.

3 REPLIES 3

former_member156446
Active Contributor
0 Kudos
160

try catching it :

CATCH cx_xslt_format_error INTO cx_format_error.

WRITE 😕 'kernel_errid = ', cx_format_error->kernel_errid.

err_text = cx_format_error->get_text( ).

WRITE 😕 'text = ', err_text.

Former Member
0 Kudos
159

thanks for the reply. I did check and it give the error as cx_xslt_format_error: Unexpected text for XML-ABAP transformation

this is the table type structure i have within a table structure. I need do separate loops instead of a loop within a loop.

Former Member
0 Kudos
159

Wrong looping in xslt