<?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 struct+output format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-struct-output-format/m-p/2782625#M648642</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a sytem on hand to proof it, but I think you could also do it easily with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT TAB2 INTO LINE2.
  LOOP AT LINE2-FIELD2 INTO LINE1.
    WRITE: / LINE2-FIELD1, LINE1-COL1, LINE1-COL2, LINE1-COL3.
    clear: LINE2-FIELD1.  "empty value after first write
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Sep 2007 07:31:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-16T07:31:54Z</dc:date>
    <item>
      <title>deep struct+output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-struct-output-format/m-p/2782623#M648640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Q3]]  An example creates two internal tables TAB1 and TAB2. TAB2 has a deep structure because the second component of LINE2 has the data type of internal table TAB1. LINE1 is filled and appended to TAB1. Then, LINE2 is filled and appended to TAB2. After clearing TAB1 with the REFRESH statement, the same procedure is repeated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT TAB2 INTO LINE2.
  WRITE: / LINE2-FIELD1.
  LOOP AT LINE2-FIELD2 INTO LINE1.
    WRITE: / LINE1-COL1, LINE1-COL2, LINE1-COL3.
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is: &lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;abc 12          3&lt;/P&gt;&lt;P&gt;def 34          5&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;ghi 56          7&lt;/P&gt;&lt;P&gt;jkl 78          9&lt;/P&gt;&lt;P&gt;How would the output come as&amp;lt;b&amp;gt;:&lt;/P&gt;&lt;P&gt;the dots are there to explain the output without any use&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;A.... abc 12  .............. 3&lt;/P&gt;&lt;P&gt; ...... def 34   ...............5&lt;/P&gt;&lt;P&gt;B..... ghi 56  ................7&lt;/P&gt;&lt;P&gt;........ jkl 78 ..................9&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abaper.learner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2007 07:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-struct-output-format/m-p/2782623#M648640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-15T07:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: deep struct+output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-struct-output-format/m-p/2782624#M648641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tab2 INTO line2.&lt;/P&gt;&lt;P&gt;  WRITE: / line2-field1.&lt;/P&gt;&lt;P&gt;  LOOP AT line2-field2 INTO line1.&lt;/P&gt;&lt;P&gt;     IF sy-tabix = 1.&lt;/P&gt;&lt;P&gt;      WRITE: line1-col1, line1-col2.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      WRITE: / line1-col1 UNDER line1-col1, line1-col2 UNDER line1-col2.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2007 04:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-struct-output-format/m-p/2782624#M648641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-16T04:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: deep struct+output format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deep-struct-output-format/m-p/2782625#M648642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a sytem on hand to proof it, but I think you could also do it easily with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT TAB2 INTO LINE2.
  LOOP AT LINE2-FIELD2 INTO LINE1.
    WRITE: / LINE2-FIELD1, LINE1-COL1, LINE1-COL2, LINE1-COL3.
    clear: LINE2-FIELD1.  "empty value after first write
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2007 07:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deep-struct-output-format/m-p/2782625#M648642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-16T07:31:54Z</dc:date>
    </item>
  </channel>
</rss>

