<?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 total value in alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616632#M600632</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 alv.. how we put the total for the particular column?&lt;/P&gt;&lt;P&gt;what is the basic purpose of layout in alv ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 13:58:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-02T13:58:29Z</dc:date>
    <item>
      <title>total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616632#M600632</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 alv.. how we put the total for the particular column?&lt;/P&gt;&lt;P&gt;what is the basic purpose of layout in alv ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616632#M600632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T13:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616633#M600633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can help with getting the ALV to show the total:  When defining the field catalog, set the DO_SUM component to 'X'.  ALV creates totals for columns with this setting.  See below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_fieldcat TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR l_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_fieldcat-tabname    = 'FUNDINT'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-fix_column = 'X'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-no_out     = 'O'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_fieldcat-fieldname  = 'GEBER'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-seltext_l = 'Fund'.&lt;/P&gt;&lt;P&gt;  APPEND l_fieldcat TO p_fieldtab.&lt;/P&gt;&lt;P&gt;  l_fieldcat-fieldname  = 'DMBTR'.&lt;/P&gt;&lt;P&gt;  l_fieldcat-seltext_l = 'Avg Daily Balance'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  l_fieldcat-do_sum    = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  APPEND l_fieldcat TO p_fieldtab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 14:05:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616633#M600633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T14:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616634#M600634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In SLIS_T_FIELDCAT_ALV,there is a field called 'do_sum'  which cab be set in case you need to add a particular column.While preparing the fieldcatalog for the particular column,just mark do_sum to X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it works.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 14:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616634#M600634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T14:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616635#M600635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to get sum set the field DO_SUM in fielcatelog to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layout strucrure is used to vary/change the layout of output. This strcuture contains attributed which is valid for whole report.. for example report title, display sum on top, there are many .. you can check the structire of layout&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 14:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616635#M600635</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2007-08-02T14:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616636#M600636</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;while creating field-catalog specifies the fied DO_SUM = 'X' to which column you want to perform total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: fieldcat type LVC_T_FCAT.

fieldcat-fieldname = &amp;lt; &amp;gt;. " specifies the name
fieldcat-do_sum = 'X'. " total calculation for column.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we use layout to display output in different layouts like.......&lt;/P&gt;&lt;P&gt;IS_LAYOUT-ZEBRA: X=striped (zebra) pattern&lt;/P&gt;&lt;P&gt;IS_LAYOUT-BOX_FIELDNAME: insert column checkbox for each row to select row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow this link for knowing use of layout.&lt;/P&gt;&lt;P&gt;&lt;A href="http://abap-gallery.blogspot.com/2007/07/change-layout-format-in-alv.html" target="test_blank"&gt;http://abap-gallery.blogspot.com/2007/07/change-layout-format-in-alv.html&lt;/A&gt;&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;Ashok Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 14:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616636#M600636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616637#M600637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After populating the fieldcatelog, you can loop thru the internal table can capture the field that you want to total on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    LOOP AT p_alv_catalog INTO wa_fieldcat.
      CASE wa_fieldcat-fieldname.
        when 'WRBTR'.     " Field needs to totalized
          wa_fieldcat-do_sum = 'X'.
          ENDCASE.
      MODIFY p_alv_catalog FROM wa_fieldcat.
      CLEAR wa_fieldcat.
    ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the documentation from SAP help on ALV layout:&lt;/P&gt;&lt;P&gt;***********************************************************************************************&lt;/P&gt;&lt;P&gt;You use layouts to tailor the outputted list to your individual requirements. Layouts describe the list formatting options and include:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List settings, such as column selection, column sequence, and column width. &lt;/P&gt;&lt;P&gt;Filter settings &lt;/P&gt;&lt;P&gt;Sort settings &lt;/P&gt;&lt;P&gt;Totals, averages, maximum / minimum &lt;/P&gt;&lt;P&gt;Subtotals &lt;/P&gt;&lt;P&gt;Display options &lt;/P&gt;&lt;P&gt;Graphic &lt;/P&gt;&lt;P&gt;View templates &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layout is the new term for display variant as of Release 4.6C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Features&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The edition options for layouts depend on the relevant ALV Grid Control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all ALV Grid Controls, you can:&lt;/P&gt;&lt;P&gt;Choose one of the standard layouts delivered with the standard system. &lt;/P&gt;&lt;P&gt;Change the current layout.&lt;/P&gt;&lt;P&gt;In ALV Grid Controls that use only the standard layouts, you cannot save your changes to the current layout. When you choose layouts, only the standard layouts are proposed. &lt;/P&gt;&lt;P&gt;In some ALV Grid Controls, you can also save the layout you defined as your own Layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User-defined layouts are generally saved for all users. They can then be used by all users &amp;#150; that is, all users can then choose from the user-defined layouts as well as the standard layouts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some ALV Grid Controls, you can also save the layout you defined as a user-specific layout. You are the only user that can use this layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Please reward points for helpful answer.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 18:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616637#M600637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T18:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616638#M600638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for eg.. i did like this  but  output not came&lt;/P&gt;&lt;P&gt;data w_fcat type slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;  w_fcat-tabname = 'IT_MARA'.&lt;/P&gt;&lt;P&gt;  W_FCAT-FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;  W_FCAT-REF_TABNAME = 'MARA'.&lt;/P&gt;&lt;P&gt;  W_FCAT-REF_FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;  W_FCAT-OUTPUTLEN = '20'.&lt;/P&gt;&lt;P&gt;  W_FCAT-DO_SUM = 'X'.&lt;/P&gt;&lt;P&gt;  append w_fcat to i_fcat.&lt;/P&gt;&lt;P&gt;  clear w_fcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616638#M600638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616639#M600639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS I GOT THE ANSWER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616639#M600639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: total value in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616640#M600640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Selva Sir &lt;/P&gt;&lt;P&gt;please assign points to all thankful answers &lt;/P&gt;&lt;P&gt;dont forget&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 11:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-value-in-alv/m-p/2616640#M600640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T11:57:37Z</dc:date>
    </item>
  </channel>
</rss>

