<?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 subtotals UOM wise in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859133#M670435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;     use this code  for example.&lt;/P&gt;&lt;P&gt; ls_sort-fieldname = 'BUKRS'.&lt;/P&gt;&lt;P&gt;  ls_sort-spos      = '1'.&lt;/P&gt;&lt;P&gt;  ls_sort-up        = 'X'.&lt;/P&gt;&lt;P&gt;  ls_sort-subtot    = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND ls_sort TO lt_sort.&lt;/P&gt;&lt;P&gt;and pass this lt_sort to reuse_alv_grid_display.&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2007 11:17:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-28T11:17:18Z</dc:date>
    <item>
      <title>Multiple subtotals UOM wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859132#M670434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Presently creating a reports for display of Billing details. The reports display the output in ALV grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User wants to see the sub total UOM wise. At present the subtotal is appearing after evry UOM while the user wants the display of all the quantities and UOM collectively at the bottom or top like standard transaction VF05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to display that. Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;anya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859132#M670434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T11:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple subtotals UOM wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859133#M670435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;     use this code  for example.&lt;/P&gt;&lt;P&gt; ls_sort-fieldname = 'BUKRS'.&lt;/P&gt;&lt;P&gt;  ls_sort-spos      = '1'.&lt;/P&gt;&lt;P&gt;  ls_sort-up        = 'X'.&lt;/P&gt;&lt;P&gt;  ls_sort-subtot    = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND ls_sort TO lt_sort.&lt;/P&gt;&lt;P&gt;and pass this lt_sort to reuse_alv_grid_display.&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;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859133#M670435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T11:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple subtotals UOM wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859134#M670436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_subtot TYPE slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;           subtot LIKE LINE OF gt_subtot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subtot-spos = 1.&lt;/P&gt;&lt;P&gt;  subtot-fieldname = 'NAME1'.&lt;/P&gt;&lt;P&gt;  subtot-tabname = 'ITAB_HEAD'.&lt;/P&gt;&lt;P&gt;  subtot-up = 'X'.&lt;/P&gt;&lt;P&gt;  subtot-group = 'X'.&lt;/P&gt;&lt;P&gt;  subtot-subtot = 'X'.&lt;/P&gt;&lt;P&gt;  subtot-expa = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND subtot TO gt_subtot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  subtot-spos = 2.&lt;/P&gt;&lt;P&gt;  subtot-fieldname = 'WGBEZ'.&lt;/P&gt;&lt;P&gt;  subtot-tabname = 'ITAB_HEAD'.&lt;/P&gt;&lt;P&gt;  subtot-up = 'X'.&lt;/P&gt;&lt;P&gt;  subtot-group = 'X'.&lt;/P&gt;&lt;P&gt;  subtot-subtot = 'X'.&lt;/P&gt;&lt;P&gt;  subtot-expa = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND subtot TO gt_subtot.&lt;/P&gt;&lt;P&gt;&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 FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program = 'ZRAW_COST'&lt;/P&gt;&lt;P&gt;      it_fieldcat        = fcat&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;     it_sort            = gt_subtot&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      it_events          = eve&lt;/P&gt;&lt;P&gt;      i_tabname_header   = 'ITAB_HEAD'&lt;/P&gt;&lt;P&gt;      i_tabname_item     = 'ITAB_ITM'&lt;/P&gt;&lt;P&gt;      is_keyinfo         = alv_keyinfo&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab_header    = itab_head&lt;/P&gt;&lt;P&gt;      t_outtab_item      = itab_itm&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "dis_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use REUSE_ALV_GRID_DISPLAY  instead of REUSE_ALV_HIERSEQ_LIST_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859134#M670436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T11:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple subtotals UOM wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859135#M670437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you want is the standard behavior of ALV modules, if your data are defined as quantities (type QUAN) or currency amounts (CURR) and the associated field unit of measure (UNIT) or currency key (CUKY) must be assigned and filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't put a sub-total and a sort criteria on unit, only sulmm the column, each UOM will be summed separately, and displayed collectively at the total and sub-total levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859135#M670437</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-28T11:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple subtotals UOM wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859136#M670438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi richard,&lt;/P&gt;&lt;P&gt;i have defined like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear l_fieldcat.&lt;/P&gt;&lt;P&gt;  l_fieldcat-fieldname  = 'FKIMG'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-outputlen  = 13.&lt;/P&gt;&lt;P&gt;  l_fieldcat-datatype = 'QUAN'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-seltext_l  = 'Total Qty'.&lt;/P&gt;&lt;P&gt;  append l_fieldcat to p_fieldtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear l_fieldcat.&lt;/P&gt;&lt;P&gt;  l_fieldcat-fieldname  = 'MEINS'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-datatype = 'UNIT'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-seltext_l  = 'UOM'.&lt;/P&gt;&lt;P&gt;  append l_fieldcat to p_fieldtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and no sorting criteria. But still only subtotal of quantity is appearing. Kindly reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859136#M670438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T11:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple subtotals UOM wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859137#M670439</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;but how can u make total of unit field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859137#M670439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T11:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple subtotals UOM wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859138#M670440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add the unit/cucy fieldname  to this sample&lt;/P&gt;&lt;P&gt;Unit of Measure for quantity fields QUAN&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;l_fieldcat-qfieldname  = 'fieldname of unit of measure'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;Currency Key for currency amount fields CURR&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;l_fieldcat-cfieldname = 'fieldname of currency key' &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in anya code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;clear l_fieldcat.
l_fieldcat-fieldname = 'FKIMG'.
l_fieldcat-qfieldname  = 'MEINS'.
l_fieldcat-outputlen = 13.
l_fieldcat-datatype = 'QUAN'.
l_fieldcat-do_sum = 'X'.
l_fieldcat-seltext_l = 'Total Qty'.
append l_fieldcat to p_fieldtab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So at each total level you will get as many total lines than there are unit or currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:44:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859138#M670440</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-28T11:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple subtotals UOM wise</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859139#M670441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your reply was simple, concise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have rewarded points to u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 11:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-subtotals-uom-wise/m-p/2859139#M670441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-28T11:50:28Z</dc:date>
    </item>
  </channel>
</rss>

