While I've read the forums and the links of a number of folks doing the same thing. I am stuck in that I cannot figure out how to populate a deep structure via XSLT. Not sure what is going wrong, but I suspect it is obvious. The simple problem is that my structure is not getting populated. It is blank. The transformation works in testing STRANS (and in Stylus Studio).
I cannot figure out what is wrong that makes the t_pexr2002 table blank. Thanks for any insight.
The simple program is:
TYPES: BEGIN OF ty_head, sndprn TYPE string, bgmref TYPE string, moabetrh TYPE string, create_date TYPE string, settlement_date TYPE string, no_lines TYPE string, END OF ty_head. TYPES: BEGIN OF ty_pricing, moabetr TYPE string, END OF ty_pricing. TYPES: BEGIN OF ty_item, docname TYPE string, docnummr TYPE string, pricing TYPE ty_pricing, END OF ty_item. TYPES: BEGIN OF ty_summary, status_message TYPE string, END OF ty_summary. TYPES: BEGIN OF ty_mn, header_data TYPE ty_head, item_data TYPE ty_item, summary_data TYPE ty_summary, END OF ty_mn. DATA: t_pexr2002 TYPE STANDARD TABLE OF ty_mn. DATA: xml_doc TYPE REF TO cl_xml_document, xml TYPE string. CREATE OBJECT xml_doc. CALL METHOD xml_doc->import_from_file EXPORTING filename = 'C:\temp\2640273.xml'. CALL METHOD xml_doc->render_2_string EXPORTING pretty_print = 'X' IMPORTING stream = xml. CALL TRANSFORMATION zusl_pexr2002_v1 SOURCE XML xml RESULT output = t_pexr2002.
Edited by: Thomas Zloch on Jun 9, 2010 6:05 PM