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

XSLT Tranformation problem - empty output lines

Former Member
0 Likes
443

Hi experts,

I have a following problem with the XSLT transformation.


  FIELD-SYMBOLS: <tab> TYPE table,
                 <line> TYPE ANY,
                 <tabz> TYPE ANY TABLE.  

  CREATE DATA a_table LIKE i_table.
  ASSIGN a_table->* TO <tabz>.

  GET REFERENCE OF <tabz> INTO g_xml_l-value.
  g_xml_l-name = a_templid.
  APPEND g_xml_l TO g_xml_t.

  TRY.

      CALL TRANSFORMATION z_ddu_xslt_test
      SOURCE XML g_tab_cal                            "OK file was loaded
      RESULT (g_xml_t).                                     "Seems to be ok, but I am not sure if g_xml_l was referenced OK

    CATCH cx_root INTO a_rif_ex.

      a_text = a_rif_ex->get_text( ).
      MESSAGE a_text TYPE 'E'.

  ENDTRY.

Result is, that <tabz> have a two (correct) empty lines, but of course the data should be filled ...

When I replace <tabz> to some kind of simple structured table, result is like above ...

Thanks for help.

Hi experts,

I have a following problem with the XSLT transformation.


  FIELD-SYMBOLS: <tab> TYPE table,
                 <line> TYPE ANY,
                 <tabz> TYPE ANY TABLE.  

  CREATE DATA a_table LIKE i_table.
  ASSIGN a_table->* TO <tabz>.

  GET REFERENCE OF <tabz> INTO g_xml_l-value.
  g_xml_l-name = a_templid.
  APPEND g_xml_l TO g_xml_t.

  TRY.

      CALL TRANSFORMATION z_ddu_xslt_test
      SOURCE XML g_tab_cal                            "OK file was loaded
      RESULT (g_xml_t).                                     "Seems to be ok, but I am not sure if g_xml_l was referenced OK

    CATCH cx_root INTO a_rif_ex.

      a_text = a_rif_ex->get_text( ).
      MESSAGE a_text TYPE 'E'.

  ENDTRY.

Result is, that <tabz> have a two (correct) empty lines, but of course the data should be filled ...

When I replace <tabz> to some kind of simple structured table, result is like above ...

Thanks for help.

1 REPLY 1
Read only

Former Member
0 Likes
371

Problem solved.

There was internal problem with the I_TABLE structure.

Regards.

Edited by: Daniel Duras on Jul 15, 2010 3:34 PM