<?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 ALV Tree - Change average value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183780#M1823345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the average value. For the follow example the hierarchy has 2 lines but it is a summarize of 13 lines. So the right average is (100.00 + 16.67) / 13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP average&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/406803" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Expectation:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/406804" height="122" width="306" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_tree &lt;SPAN class="L0S52"&gt;type &lt;SPAN class="L0S52"&gt;ref &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;cl_gui_alv_tree_simple.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is it possible to change it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andréa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 11:20:04 GMT</pubDate>
    <dc:creator>deiamolina</dc:creator>
    <dc:date>2014-03-10T11:20:04Z</dc:date>
    <item>
      <title>ALV Tree - Change average value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183780#M1823345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the average value. For the follow example the hierarchy has 2 lines but it is a summarize of 13 lines. So the right average is (100.00 + 16.67) / 13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP average&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/406803" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Expectation:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/406804" height="122" width="306" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_tree &lt;SPAN class="L0S52"&gt;type &lt;SPAN class="L0S52"&gt;ref &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;cl_gui_alv_tree_simple.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is it possible to change it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andréa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 11:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183780#M1823345</guid>
      <dc:creator>deiamolina</dc:creator>
      <dc:date>2014-03-10T11:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree - Change average value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183781#M1823346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrea&lt;/P&gt;&lt;P&gt;yes, it can be change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code, &lt;/P&gt;&lt;P&gt;CALL METHOD tree1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_sort&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = gt_sort&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .......................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to change the content of internal table gt_sort, the average will accordingly changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope can help you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 13:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183781#M1823346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-10T13:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree - Change average value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183782#M1823347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I don't want to change the group information. It need to be 2 lines in the report but 13 lines to be used to use to divide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't show 13 lines for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to change is the way that SAP is calculation it. Instead of a default way ( h_ftype = AVG ) I do like to write this formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183782#M1823347</guid>
      <dc:creator>deiamolina</dc:creator>
      <dc:date>2014-03-10T15:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree - Change average value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183783#M1823348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;CL_GUI_ALV_TREE&lt;/STRONG&gt; method for creating the Tree, in that create each node by method ADD_NODE. With this method you can do calculation and update while building the ALV Tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just refer the Demo program '&lt;STRONG&gt;BCALV_TREE_DEMO&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First get the final output table data.&lt;/P&gt;&lt;P&gt;Loop that table and create each node by using ADD_NODE method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 16:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183783#M1823348</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2014-03-10T16:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree - Change average value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183784#M1823349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 10:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-change-average-value/m-p/10183784#M1823349</guid>
      <dc:creator>deiamolina</dc:creator>
      <dc:date>2014-03-11T10:53:56Z</dc:date>
    </item>
  </channel>
</rss>

