<?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: Deep structure to XML using STRANS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675868#M1766651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it is a simple transformation.&lt;/P&gt;&lt;P&gt;I opened DEMO_ST_TABLE in STRANS and saw something similar.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.sap.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Output would have table tag, and n number of tr tags.&lt;/P&gt;&lt;P&gt;It is possible to drag every node under tr tag on tr tag so that they come directly under table icon, and then tr tag can be deleted. Looking at below screenshot, it won't have n number of tr tags because everything under it has been moved one level up, directly under table icon.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/277927" /&gt;&lt;/P&gt;&lt;P&gt;You can try something similar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2013 12:33:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-09-11T12:33:03Z</dc:date>
    <item>
      <title>Deep structure to XML using STRANS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675863#M1766646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I have to convert a deep structure into an XML document. The deep structure&amp;nbsp; contains repeating elements inside the top element.&lt;/P&gt;&lt;P&gt;I created table types with linetypes as the structure whcih inturn have table types. When i use the main strucutre in STRANS to generate the transformation, an additional element is cretaed for everylinetype i specified for the tabletype which I donot want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZTAB IS TABLE TYPE WITH LINE TYPE as ZLINETYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;PAGE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FIELDA&amp;gt;&amp;lt;/FIELDA&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FIELDB&amp;gt;&amp;lt;/FIELDB&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;ZTAB&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FIELD1&amp;gt; &amp;lt;/FIELD1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FIELD2&amp;gt; &amp;lt;/FIELD2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/ZTAB&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ZTAB&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FIELD1&amp;gt; &amp;lt;/FIELD1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FIELD2&amp;gt; &amp;lt;/FIELD2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/ZTAB&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/PAGE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the STRANS while creating the transformation, I get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;PAGE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FIELDA&amp;gt;&amp;lt;/FIELDA&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FIELDB&amp;gt;&amp;lt;/FIELDB&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;ZTAB&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;ZLINETYPE&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FIELD1&amp;gt; &amp;lt;/FIELD1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FIELD2&amp;gt; &amp;lt;/FIELD2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;/ZLINETYPE&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/ZTAB&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ZTAB&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;STRONG&gt;ZLINETYPE&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FIELD1&amp;gt; &amp;lt;/FIELD1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FIELD2&amp;gt; &amp;lt;/FIELD2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;/ZLINETYPE&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/ZTAB&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/PAGE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i avoide this additional element of linetypes ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missgin anything here ?&amp;nbsp; Any pointers will be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;NIlesh Puranik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 11:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675863#M1766646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T11:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deep structure to XML using STRANS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675864#M1766647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the ABAP and STRANS codes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 11:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675864#M1766647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deep structure to XML using STRANS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675865#M1766648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Manish,&lt;/P&gt;&lt;P&gt;There is no ABAP code as I didnt call the transformation yet. I created the table types and line types in the ABAP data dictionary in SE11 and used it in the STRANS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the STRANS i see following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see LEVERINGADRES is a table of linetype ZLEV_ADRES which has fields like STRAAT and so on but i don't want ZLEV_ADRES to appear as an element in the XML file to be generated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same goes to element ZCMETER as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/277897" /&gt;&lt;/P&gt;&lt;P&gt;Any idea about this or may be my XML hierarchy is logically not correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Nilesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675865#M1766648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deep structure to XML using STRANS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675866#M1766649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nilesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify the tag names as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are lot of blogs if you search...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapblog.rmtiwari.com/2009/04/generate-simple-transformation-for-xml.html" title="http://sapblog.rmtiwari.com/2009/04/generate-simple-transformation-for-xml.html"&gt;©: Generate Simple Transformation for XML in ABAP - Part II:Careerless Whispers about SAP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also run the transformation to see the output then make amendments accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675866#M1766649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Deep structure to XML using STRANS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675867#M1766650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mohammed,&lt;/P&gt;&lt;P&gt;Thanks for the answer but I dont wish to modify the tag names but I want that element NOT to be present in the XML file. This element is coming of the linetype i specify in the table type while creating the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675867#M1766650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Deep structure to XML using STRANS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675868#M1766651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it is a simple transformation.&lt;/P&gt;&lt;P&gt;I opened DEMO_ST_TABLE in STRANS and saw something similar.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.sap.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Output would have table tag, and n number of tr tags.&lt;/P&gt;&lt;P&gt;It is possible to drag every node under tr tag on tr tag so that they come directly under table icon, and then tr tag can be deleted. Looking at below screenshot, it won't have n number of tr tags because everything under it has been moved one level up, directly under table icon.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/277927" /&gt;&lt;/P&gt;&lt;P&gt;You can try something similar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 12:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675868#M1766651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-11T12:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Deep structure to XML using STRANS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675869#M1766652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exactly what i was looking for. Thanks a lot for sharing the trick !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 11:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-structure-to-xml-using-strans/m-p/9675869#M1766652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-17T11:37:15Z</dc:date>
    </item>
  </channel>
</rss>

