<?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: Multiple Subtotal in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567258#M1565052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        As i mentioned i am done the same thing, made the field 'DO_SUM' as X but still it is not showing any thing.. Not even text is displaying. Do you think this should be working for time field (sy-uzeit). I tried this with quantity field it worked fine but when i am trying the same with time field it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Uday S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jan 2011 21:30:17 GMT</pubDate>
    <dc:creator>UdayS</dc:creator>
    <dc:date>2011-01-06T21:30:17Z</dc:date>
    <item>
      <title>Multiple Subtotal in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567256#M1565050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       We are working on a report in which we are supposed to display few fields regarding customer and most of them are time fields. My issue is at the end of every customer i need to display the AVERAGE &lt;STRONG&gt;time&lt;/STRONG&gt; as a subtotal. I am having all the data in a internal table which i am passing to REUSE_ALV_GRID_DISPLAY which will be having multiple customer and multiple records for each customer. I tried with the optoin 'do_sum' of field catalog but it is not working. I tested with some other sample program where it worked but in the sample program i am using &lt;U&gt;quantity&lt;/U&gt; to be summed up. Is there is any way of getting the average of the  time at the end of every customer using ALV Grid..?? Or is there is any best way to display this other than ALV grid...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement will be much similar to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cust1   A1   123    00:04:00&lt;/P&gt;&lt;P&gt;            A2    111   00:06:00&lt;/P&gt;&lt;P&gt;      Total (2)           00:05:00&lt;/P&gt;&lt;P&gt;Cust2   B1    898   00:01:00&lt;/P&gt;&lt;P&gt;            B2    789    00:06:00&lt;/P&gt;&lt;P&gt;            B3    454    00:02:00&lt;/P&gt;&lt;P&gt;      Total (3)           00:03:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Uday S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 20:58:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567256#M1565050</guid>
      <dc:creator>UdayS</dc:creator>
      <dc:date>2011-01-06T20:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Subtotal in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567257#M1565051</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;In field catalog for avarage field make do_sum as truc (X) and pass the customer in the sort table. You can take reference of the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Grouping A&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_fieldcat-fieldname = 'TSL_A'.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-seltext_s = wa_fieldcat-seltext_m = wa_fieldcat-seltext_l = text-015.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-do_sum    = c_true.&lt;/P&gt;&lt;P&gt;  wa_fieldcat-outputlen = 20.&lt;/P&gt;&lt;P&gt;  l_col_pos = l_col_pos + 1.                                "SD0K962726&lt;/P&gt;&lt;P&gt;  wa_fieldcat-col_pos   = l_col_pos.                        "SD0K962726&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- Sort order for subtotal&lt;/P&gt;&lt;P&gt;  l_wa_sort-fieldname = 'RBUNIT'.&lt;/P&gt;&lt;P&gt;  l_wa_sort-spos = '01'.&lt;/P&gt;&lt;P&gt;  l_wa_sort-subtot = c_true.&lt;/P&gt;&lt;P&gt;  append l_wa_sort to it_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_wa_sort-fieldname = 'HRTXT1'.&lt;/P&gt;&lt;P&gt;  l_wa_sort-spos = '02'.&lt;/P&gt;&lt;P&gt;  append l_wa_sort to it_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_wa_sort-fieldname = 'HRTXT2'.&lt;/P&gt;&lt;P&gt;  l_wa_sort-spos = '03'.&lt;/P&gt;&lt;P&gt;  append l_wa_sort to it_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- call the list for output&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_callback_program      = sy-repid&lt;/P&gt;&lt;P&gt;      i_callback_user_command = 'F_DOUBLE_CLICK'            "SD0K963313&lt;/P&gt;&lt;P&gt;      is_layout               = l_wa_layout&lt;/P&gt;&lt;P&gt;      it_fieldcat             = it_fieldcat&lt;/P&gt;&lt;P&gt;      it_sort                 = it_sort                     " You need pass this table for your case it will be customer field&lt;/P&gt;&lt;P&gt;      i_save                  = l_save&lt;/P&gt;&lt;P&gt;      is_variant              = wa_variant1&lt;/P&gt;&lt;P&gt;      it_events               = it_events&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab                = it_output&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      program_error           = 1&lt;/P&gt;&lt;P&gt;      others                  = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 21:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567257#M1565051</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2011-01-06T21:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Subtotal in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567258#M1565052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        As i mentioned i am done the same thing, made the field 'DO_SUM' as X but still it is not showing any thing.. Not even text is displaying. Do you think this should be working for time field (sy-uzeit). I tried this with quantity field it worked fine but when i am trying the same with time field it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Uday S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 21:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567258#M1565052</guid>
      <dc:creator>UdayS</dc:creator>
      <dc:date>2011-01-06T21:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Subtotal in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567259#M1565053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uday,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to misjudge your question at first time. You can not do any subtotal in time field (sy-uzeit). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have two values 14:07:58 and 15:10:49 then what will be the output. I think logically also its not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 23:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567259#M1565053</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2011-01-06T23:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Subtotal in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567260#M1565054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution for this. I programmed to append a new row at end of every customer and will calculate the subttoals manually and will append this row into the final table at end of every customer and will highlight this during ALV Display. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uday S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 10:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotal-in-alv/m-p/7567260#M1565054</guid>
      <dc:creator>UdayS</dc:creator>
      <dc:date>2011-01-19T10:18:05Z</dc:date>
    </item>
  </channel>
</rss>

