<?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: Report display problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-problem/m-p/2808933#M656565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try a nested loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
  loop at secondary_itab1.

  endloop.
  loop at secondary_itab2.

  endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 13:17:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-27T13:17:00Z</dc:date>
    <item>
      <title>Report display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-problem/m-p/2808932#M656564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;  I have one requirement. &lt;/P&gt;&lt;P&gt;  In internal table first column is key column. All the other columns are entirely dependent on key column. but each row of each column itself is a internal table.&lt;/P&gt;&lt;P&gt;All these secondary internal table should be displayed without any blank lines in between.&lt;/P&gt;&lt;P&gt;e.g. One Sales Order can have many deliveries, Each delivery can have many bills. Report should displayed like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oreder No          Delivery No.              Billing Doc No.&lt;/P&gt;&lt;P&gt;O1                     O1D1                       O1D1B1&lt;/P&gt;&lt;P&gt;                         O1D2                       O1D1B2&lt;/P&gt;&lt;P&gt;                         O1D3                       O1D1B3&lt;/P&gt;&lt;P&gt;                                                        O1D2B1&lt;/P&gt;&lt;P&gt;                                                        O1D3B1&lt;/P&gt;&lt;P&gt;                                                        O1D3B2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in above example Delivery &amp;amp; billing are two separate internal tables which are dependent on Order No.   No relation is required between Delivery &amp;amp; Billing Column.     &lt;/P&gt;&lt;P&gt;Also No of entries in all secondary internal tables may vary.&lt;/P&gt;&lt;P&gt;So how to display this in report.&lt;/P&gt;&lt;P&gt;I have used do...Enddo. &amp;amp; reading all the secondary internal tables  for current index &amp;amp; appending it to final internal table. Is there any alternative method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 13:01:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-problem/m-p/2808932#M656564</guid>
      <dc:creator>former_member250148</dc:creator>
      <dc:date>2007-09-27T13:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Report display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-problem/m-p/2808933#M656565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try a nested loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab.
  loop at secondary_itab1.

  endloop.
  loop at secondary_itab2.

  endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 13:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-problem/m-p/2808933#M656565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Report display problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-problem/m-p/2808934#M656566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not think that you can improve on your own solution.&lt;/P&gt;&lt;P&gt;The logic is clear and easy to maintain.&lt;/P&gt;&lt;P&gt;The table reading via index is efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative that looped through each secondary internal table in turn would need to read and modify your final internal table as well as append to it, all of which would need tricky logic with indexes.  I would expect that this would be less efficient too, with repeated modification of the same row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 13:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-display-problem/m-p/2808934#M656566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T13:23:53Z</dc:date>
    </item>
  </channel>
</rss>

