<?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: A Problem with a simple SALV Aggregation example. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-with-a-simple-salv-aggregation-example/m-p/5433637#M1246640</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;Refer to the demo program SALV_TEST_TABLE&lt;/P&gt;&lt;P&gt;lr_aggregations = gr_table-&amp;gt;get_aggregations( )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 15:48:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-25T15:48:02Z</dc:date>
    <item>
      <title>A Problem with a simple SALV Aggregation example.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-with-a-simple-salv-aggregation-example/m-p/5433635#M1246638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.  I am running the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lr_aggr = lr_aggrs-&amp;gt;get_aggregation( columnname = 'SEATSMAX' ).&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_not_found INTO gr_error.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      lr_aggr-&amp;gt;set( aggregation = if_salv_c_aggregation=&amp;gt;maximum ).&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_data_error INTO gr_error.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The lr_aggr-&amp;gt;set( aggregation = if_salv_c_aggregation=&amp;gt;maximum ) is failing because I am not getting a good reference from the lr_aggr = lr_aggrs-&amp;gt;get_aggregation( columnname = 'SEATSMAX' ) method above.  All of my prior references are ok because I am doing other methods against the same ALV grid, but for some reason, the AGGREGATION is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone see anything that I might be doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 15:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-with-a-simple-salv-aggregation-example/m-p/5433635#M1246638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T15:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: A Problem with a simple SALV Aggregation example.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-with-a-simple-salv-aggregation-example/m-p/5433636#M1246639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup it is wrong. Use the code below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lr_aggr TYPE REF TO cl_salv_aggregations,
        lr_salv  TYPE REF TO cl_salv_table.

lr_aggr = lr_salv-&amp;gt;get_aggregations( ).
lr_aggr-&amp;gt;add_aggregation( 'SEATSMAX' ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 15:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-with-a-simple-salv-aggregation-example/m-p/5433636#M1246639</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-03-25T15:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: A Problem with a simple SALV Aggregation example.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-with-a-simple-salv-aggregation-example/m-p/5433637#M1246640</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;Refer to the demo program SALV_TEST_TABLE&lt;/P&gt;&lt;P&gt;lr_aggregations = gr_table-&amp;gt;get_aggregations( )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 15:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-problem-with-a-simple-salv-aggregation-example/m-p/5433637#M1246640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T15:48:02Z</dc:date>
    </item>
  </channel>
</rss>

