<?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: ALV report using two internal tables. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075110#M96010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing. The movement types will become my header, Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  541      542       543       544&lt;/P&gt;&lt;P&gt;qty amt  qty amt   qty amt  qty  amt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If matnr 2000000 has 5 movement types and 2000001 has 7 they all will be displayed except that the missing movement type for 200000 will display 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2005 01:57:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-05T01:57:59Z</dc:date>
    <item>
      <title>ALV report using two internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075106#M96006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a report having two internal tables. The first table consists of a matnr and maktx and the second table consist of matnr and all movement types that I want to display by column. Movement types varies depending on the criteria set by the user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 01:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075106#M96006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T01:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report using two internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075107#M96007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use function module REUSE_ALV_HIERSEQ_LIST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this documentation for more details -&lt;/P&gt;&lt;P&gt;FU REUSE_ALV_HIERSEQ_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;Hierarchical sequential list output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;This module outputs two internal tables as a formated hierarchical-sequential list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Principle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass an internal table containing the set of header information to be output.&lt;/P&gt;&lt;P&gt;Pass an internal table containing the set of item information to be output.&lt;/P&gt;&lt;P&gt;Pass a structure containing the general list layout details&lt;/P&gt;&lt;P&gt;Pass a field catalog in the form of an internal table. The field catalog describes the fields to be output in the list. &lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;All interactions which are performed on the list refer directly to the internal output tables, e.g. sorting the list also sorts the passed internal output tables (passed by reference).&lt;/P&gt;&lt;P&gt;The expected output data quantity is an important consideration for the use of the tool or various generic functions (totals, subtotals).&lt;/P&gt;&lt;P&gt;The application must take account of this.&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;I_INTERFACE_CHECK&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM&lt;/P&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND&lt;/P&gt;&lt;P&gt;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t;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 01:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075107#M96007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T01:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report using two internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075108#M96008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to change the format from row to column? The report displays the data in row format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 01:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075108#M96008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T01:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report using two internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075109#M96009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no reason why you can't consolidate the data into one internal table and show in a standard ALV grid.  Loop at the matnr/maktx internal table,  then inside that loop,  loop at the other internal where the matnr = the previous loop matnr, and  append the data to another internal table.  Then use this interal table to show in the ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of imatnr occurs 0,
      matnr type mara-matnr,
      maktx type makt-maktx,
      end of imatnr.

data: begin of imseg occurs 0,
      matnr type mara-matnr,
      bwart type mseg-bwart,
      menge type mseg-menge,
      end of imseg.

data: begin of ialv occurs 0,
      bwart type mseg-bwart,
      matnr type mara-matnr,
      maktx type makt-maktx,
      menge type mseg-menge,
      end of ialv.

loop at imatnr.

move corresponding imatnr to ialv.
   loop at imseg where matnr = imatnr-matnr.
     ialv-bwart = imseg-bwart.
     ialv-menge = imseg-menge.
      append ialv.
   endloop.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use IALV in the ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN.  Please remember to award points for all helpful answers and mark your posts as solved when solved completely.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 01:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075109#M96009</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-05T01:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report using two internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075110#M96010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing. The movement types will become my header, Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  541      542       543       544&lt;/P&gt;&lt;P&gt;qty amt  qty amt   qty amt  qty  amt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If matnr 2000000 has 5 movement types and 2000001 has 7 they all will be displayed except that the missing movement type for 200000 will display 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 01:57:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075110#M96010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T01:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report using two internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075111#M96011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think we can change format from row to column. This is ALV functionality which will display details in Hierarchy format.&lt;/P&gt;&lt;P&gt;For eg&lt;/P&gt;&lt;P&gt;Material Material Description&lt;/P&gt;&lt;P&gt;  Material Group Movement Type&lt;/P&gt;&lt;P&gt;MAT1     DESC1&lt;/P&gt;&lt;P&gt;  GRP1           101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAT2     DESC2&lt;/P&gt;&lt;P&gt;  GRP2           102&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 01:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075111#M96011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T01:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report using two internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075112#M96012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I see what you want to do.  Maybe you should think of using a dynamic interal table with a dynamic ALV grid.&lt;/P&gt;&lt;P&gt;This way, you can build your internal table at runtime adding columns as needed.  Here is a link to a weblog which describes using dynamic internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 02:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075112#M96012</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-05T02:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV report using two internal tables.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075113#M96013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich. That was very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2005 01:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-report-using-two-internal-tables/m-p/1075113#M96013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-06T01:42:20Z</dc:date>
    </item>
  </channel>
</rss>

