<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need help with XML TRANSFORMATION dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033172#M1349718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandra ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code u write is working great (in lt_data i get the table values)  but there is one problem ,&lt;/P&gt;&lt;P&gt;i don't get in table LT_DATA2 the values of the work item id and is parent .&lt;/P&gt;&lt;P&gt;do u have an idea why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot you save me &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Aug 2009 08:29:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-16T08:29:32Z</dc:date>
    <item>
      <title>Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033166#M1349712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to parse this XML file to abap internal table ,i use the ST below and i get  dump .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The file is like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Containers&amp;gt;
	&amp;lt;Container workitemid="0000001" IsParent="X"&amp;gt;
		&amp;lt;Element name="__INITIATO" value="U295"/&amp;gt;
		&amp;lt;Element name="_W_PRITY" value="5"/&amp;gt;
		&amp;lt;Element name="_F_VERSION" value="0000"/&amp;gt;
&amp;lt;/Container&amp;gt;
&amp;lt;Container workitemid="0000001"&amp;gt;
		&amp;lt;Element name="EXTENDED" value="X"/&amp;gt;
		&amp;lt;Element name="NOTE_REFERENCE" value=""/&amp;gt;
	&amp;lt;/Container&amp;gt;
&amp;lt;/Containers&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;The exception, which is assigned to class 'CX_ST_MATCH_ELEMENT', was not caught&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;therefore caused a runtime error.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;XML matching error&lt;/P&gt;&lt;P&gt;Expected was element-end: "Containers" [ ] Read was element-start: "Container"&lt;/P&gt;&lt;P&gt;[ ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the ciode that i put on the call transformation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Containers&amp;gt;
    &amp;lt;Container&amp;gt;
        &amp;lt;tt:loop name="a" ref=".XML_TAB"&amp;gt;
        &amp;lt;Element &amp;gt;
          &amp;lt;tt:attribute name="name" value-ref="$a.name"/&amp;gt;
          &amp;lt;tt:attribute name="value" value-ref="$a.value"/&amp;gt;
          &amp;lt;/Element&amp;gt;
          &amp;lt;/tt:loop&amp;gt;
        &amp;lt;/Container&amp;gt;
    &amp;lt;/Containers&amp;gt; -&amp;gt;**the dump in the debugger is here .**
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dump is because i don't refer to the &amp;lt;/Container&amp;gt; in the middle&lt;/P&gt;&lt;P&gt;and when i try to add the tag container in the middle i get warning during complition &lt;/P&gt;&lt;P&gt;any idea please im stuck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chris Teb on Aug 14, 2009 6:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 06:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033166#M1349712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T06:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033167#M1349713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you provide the abap type and the call transformation too?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 22:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033167#M1349713</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-14T22:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033168#M1349714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandra Rossi  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure .:) &lt;/P&gt;&lt;P&gt;Here is the code  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF ty_data,
     name TYPE string,
     value TYPE string,
END OF ty_data.

DATA: lt_data TYPE  TABLE OF  ty_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSFORMATION zext_file
        SOURCE XML itab1
        RESULT xml_tab = lt_data.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Itab 1 i have the string of the XML file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing , i see in the debugger that the table XML_TAB are filled with value (U295 , 5 ....)  with the structure i need but  after the line :&lt;/P&gt;&lt;P&gt;&amp;lt;Element name="_F_VERSION" value="0000"/&amp;gt; it failed (dump) &lt;/P&gt;&lt;P&gt;i know that i dont refer to the container in the middle do the file but i dont know where to include it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards &amp;amp; Thanks    &lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2009 15:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033168#M1349714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-15T15:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033169#M1349715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay, I see the point. In the input XML, the "container" tag has multiple occurrences, do you want to put store all occurrences in an internal table? If yes, then you have to wrap LT_DATA inside an other internal table LT_DATA2, like that (I rename LT_DATA into component T_DATA)::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF ty_data2,
     workitemid TYPE n LENGTH 7,
     isparent   TYPE flag,
     t_data     TYPE TABLE OF ty_data WITH DEFAULT KEY,
END OF ty_data2.
DATA: lt_data2 TYPE TABLE OF ty_data2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your ST transformation, you must add a tt:loop name="b" ... to fill lt_data2, and you must change tt:loop name="a" ref="$b.T_DATA"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I let you fill the blanks &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2009 19:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033169#M1349715</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-15T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033170#M1349716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please elaborate on the transformation .&lt;/P&gt;&lt;P&gt;I am stuck for two days ,i read the help on sdn and do some R&amp;amp;D and noting ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try like u tell with :&lt;/P&gt;&lt;P&gt;i sure that i dont do that well &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?sap.transform simple?&amp;gt;
&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates"&amp;gt;
&amp;lt;tt:root name="LT_DATA2"/&amp;gt;
&amp;lt;tt:root name="XML_TAB"/&amp;gt;

  &amp;lt;tt:template&amp;gt;
    &amp;lt;Containers&amp;gt;
    &amp;lt;Container&amp;gt;
        &amp;lt;tt:loop name="b" ref=".LT_DATA2"&amp;gt;
        &amp;lt;tt:loop name="a" ref=".XML_TAB"&amp;gt;
        &amp;lt;Element &amp;gt;
          &amp;lt;tt:attribute name="name" value-ref="$b.T_DATA"/&amp;gt;
          &amp;lt;tt:attribute name="value" value-ref="$b.T_DATA"/&amp;gt;
          &amp;lt;/Element&amp;gt;
          &amp;lt;/tt:loop&amp;gt;
           &amp;lt;/tt:loop&amp;gt;
        &amp;lt;/Container&amp;gt;
    &amp;lt;/Containers&amp;gt;
  &amp;lt;/tt:template&amp;gt;
&amp;lt;/tt:transform&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can You help please to reach the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2009 21:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033170#M1349716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-15T21:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033171#M1349717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you'll better understand with the solution I found:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;Simple transformation:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;?sap.transform simple?&amp;gt;
&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates"&amp;gt;

  &amp;lt;tt:root name="XML_TAB"/&amp;gt;

  &amp;lt;tt:template&amp;gt;
    &amp;lt;Containers&amp;gt;
      &amp;lt;tt:loop name="b" ref=".XML_TAB"&amp;gt;
        &amp;lt;Container&amp;gt;
          &amp;lt;tt:loop name="a" ref="$b.T_DATA"&amp;gt;
            &amp;lt;Element&amp;gt;
              &amp;lt;tt:attribute name="name" value-ref="$a.name"/&amp;gt;
              &amp;lt;tt:attribute name="value" value-ref="$a.value"/&amp;gt;
            &amp;lt;/Element&amp;gt;
          &amp;lt;/tt:loop&amp;gt;
        &amp;lt;/Container&amp;gt;
      &amp;lt;/tt:loop&amp;gt;
    &amp;lt;/Containers&amp;gt;
  &amp;lt;/tt:template&amp;gt;

&amp;lt;/tt:transform&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data itab1 type string.
concatenate '&amp;lt;Containers&amp;gt;'
'       &amp;lt;Container workitemid="0000001" IsParent="X"&amp;gt;'
'   &amp;lt;Element name="__INITIATO" value="U295"/&amp;gt;'
'   &amp;lt;Element name="_W_PRITY" value="5"/&amp;gt;'
'   &amp;lt;Element name="_F_VERSION" value="0000"/&amp;gt;'
'&amp;lt;/Container&amp;gt;'
'&amp;lt;Container workitemid="0000001"&amp;gt;'
'   &amp;lt;Element name="EXTENDED" value="X"/&amp;gt;'
'   &amp;lt;Element name="NOTE_REFERENCE" value=""/&amp;gt;'
'       &amp;lt;/Container&amp;gt;'
'&amp;lt;/Containers&amp;gt;'
into itab1.
TYPES: BEGIN OF ty_data,
     name TYPE string,
     value TYPE string,
END OF ty_data.
DATA: lt_data TYPE TABLE OF ty_data.
TYPES: BEGIN OF ty_data2,
     workitemid TYPE n LENGTH 7,
     isparent   TYPE flag,
     t_data     TYPE TABLE OF ty_data WITH DEFAULT KEY,
END OF ty_data2.
DATA: lt_data2 TYPE TABLE OF ty_data2.
DATA lo_st_error TYPE REF TO cx_st_error.
DATA message TYPE string.
TRY.
CALL TRANSFORMATION zext_file
        SOURCE XML itab1
        RESULT xml_tab = lt_data2.
  CATCH cx_sy_conversion_data_loss .
* do something
  CATCH cx_st_error INTO lo_st_error.
    message = lo_st_error-&amp;gt;get_text( ).
    WRITE:/ message .
ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;By the way, I don't know what ITAB1 is in your case, it was more simple in my case to define it as a string. Anyway, if it's something else, it should work the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2009 22:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033171#M1349717</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-15T22:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033172#M1349718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandra ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code u write is working great (in lt_data i get the table values)  but there is one problem ,&lt;/P&gt;&lt;P&gt;i don't get in table LT_DATA2 the values of the work item id and is parent .&lt;/P&gt;&lt;P&gt;do u have an idea why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot you save me &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 08:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033172#M1349718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-16T08:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033173#M1349719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in fact I added the component names in the DDIC but not in the Simple Transformation, but I guess that now you can do it by yourself.&lt;/P&gt;&lt;P&gt;I hope that you understand how the ST works, you may ask me precisions if it is not clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 09:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033173#M1349719</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-16T09:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033174#M1349720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the sap help &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and other topic on ST&lt;/P&gt;&lt;P&gt;but i don't find anything that can help me to figure this issue ,&lt;/P&gt;&lt;P&gt;since this root &amp;lt;Container workitemid="0000001" IsParent="X"&amp;gt;&lt;/P&gt;&lt;P&gt;can change all the transformation since it change the tree structure .&lt;/P&gt;&lt;P&gt;You are the expert maybe u can give me a clue how to handle this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chris Teb on Aug 16, 2009 2:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 10:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033174#M1349720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-16T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033175#M1349721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;?sap.transform simple?&amp;gt;
&amp;lt;tt:transform xmlns:tt="http://www.sap.com/transformation-templates"&amp;gt;

  &amp;lt;tt:root name="XML_TAB"/&amp;gt;

  &amp;lt;tt:template&amp;gt;
    &amp;lt;Containers&amp;gt;
      &amp;lt;tt:loop name="b" ref=".XML_TAB"&amp;gt;
        &amp;lt;Container&amp;gt;
          &amp;lt;tt:attribute name="workitemid" value-ref="$b.WORKITEMID"/&amp;gt;
          &amp;lt;tt:cond check="not-initial($b.ISPARENT)"&amp;gt;
            &amp;lt;tt:attribute name="IsParent" value-ref="$b.ISPARENT"/&amp;gt;
          &amp;lt;/tt:cond&amp;gt;
          &amp;lt;tt:loop name="a" ref="$b.T_DATA"&amp;gt;
            &amp;lt;Element&amp;gt;
              &amp;lt;tt:attribute name="name" value-ref="$a.name"/&amp;gt;
              &amp;lt;tt:attribute name="value" value-ref="$a.value"/&amp;gt;
            &amp;lt;/Element&amp;gt;
          &amp;lt;/tt:loop&amp;gt;
        &amp;lt;/Container&amp;gt;
      &amp;lt;/tt:loop&amp;gt;
    &amp;lt;/Containers&amp;gt;
  &amp;lt;/tt:template&amp;gt;

&amp;lt;/tt:transform&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, I indicated here that ISPARENT is optional (in deserialization (xml to abap), and the attribut is not generated in serialization (abap to xml) if abap ISPARENT is empty).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 13:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033175#M1349721</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-16T13:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033176#M1349722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sandra ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are  amazing!!!!!!&lt;/P&gt;&lt;P&gt;How did u do that ?&lt;/P&gt;&lt;P&gt;Please if there any place except the sap help that i can learn about the transformation please let me know .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and Best Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 13:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033176#M1349722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-16T13:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033177#M1349723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have time, I advise you to read this sdn library document : [ABAP u2013 XML Mapping, Peter McNulty, SAP Labs, SAP TechEd 2004|https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a89312f8-0b01-0010-86b3-fdd7178e0534&amp;amp;overridelayout=true]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are demo programs in packages SST_DEMO et SXSLT_DEMO :SSTDEMO_FLIGHTS (ST), STRANSDEMO_FLIGHTS (ST), SXSLTDEMO_FLIGHTS (XSLT). Call first program SAPBC_DATA_GENERATOR to fill tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, train yourself on little cases and use the SAP library to get examples for each ST command.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 15:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033177#M1349723</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-16T15:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033178#M1349724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Again Sandra ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your time and your effort !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 15:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033178#M1349724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-16T15:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with XML TRANSFORMATION dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033179#M1349725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if you can help me. I know abap (up to SAP 4.6c versions) but I know nothing about XML ( I am lterally zero on XML). I want to learn XML in the contexts of ABAP programs in SAP Netweaver versions. I tied to google XML tutorials but information is overwhelmingly too much. I do not intend to become an XML expert but want to be able to learn XML only to the level where where I can use them in ABAP programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guide me if there is some step by step material / documents/ tutorial on internet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2009 02:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-with-xml-transformation-dump/m-p/6033179#M1349725</guid>
      <dc:creator>former_member386290</dc:creator>
      <dc:date>2009-12-05T02:57:52Z</dc:date>
    </item>
  </channel>
</rss>

