<?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: ALV Subtotal text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477904#M223937</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;Go through the link,&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/ee/c8e056d52611d2b468006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/ee/c8e056d52611d2b468006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and make sure the text element given is activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Jul 2006 22:02:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-30T22:02:37Z</dc:date>
    <item>
      <title>ALV Subtotal text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477902#M223935</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;Iam displaying an ALV report which includes Total and Subtotals.Iam giving Text for Total and Subtotals.&lt;/P&gt;&lt;P&gt;But in ALV report iam getting Totals text ,but Sub totals text is not diplaying.How do we achieve this?&lt;/P&gt;&lt;P&gt;Iam using the code,still iam not getting subtotal text.&lt;/P&gt;&lt;P&gt;it is a REUSE_ALV_LIST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; X_SORT     TYPE SLIS_SORTINFO_ALV,&lt;/P&gt;&lt;P&gt;*-- Structure for ALV Layout&lt;/P&gt;&lt;P&gt;DATA : IS_LAYOUT TYPE SLIS_LAYOUT_ALV.&lt;/P&gt;&lt;P&gt; IT_SORT     TYPE SLIS_T_SORTINFO_ALV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-To sort internal table based on Field Name&lt;/P&gt;&lt;P&gt;  CLEAR X_SORT.&lt;/P&gt;&lt;P&gt;  X_SORT-FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;  X_SORT-SUBTOT    = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; X_SORT-GROUP     = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  X_SORT-SPOS      = 1.&lt;/P&gt;&lt;P&gt;  X_SORT-UP        = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND X_SORT TO IT_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR IS_LAYOUT.&lt;/P&gt;&lt;P&gt;  IS_LAYOUT-ZEBRA      = 'X'.&lt;/P&gt;&lt;P&gt;  IS_LAYOUT-NO_COLHEAD = 'X'.&lt;/P&gt;&lt;P&gt;  IS_LAYOUT-SUBTOTALS_TEXT = 'Sub Totals'(009).&lt;/P&gt;&lt;P&gt;  IS_LAYOUT-TOTALS_TEXT = 'Totals'(008).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2006 04:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477902#M223935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-30T04:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477903#M223936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Seshagiri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Sort Catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the following:&lt;/P&gt;&lt;P&gt;STRUCTURE OF SORT CATALOG &lt;/P&gt;&lt;P&gt;The sort catalog contains the following fields for getting the current sort criteria of the list or setting these criteria dynamically or before the list is displayed for the first time. &lt;/P&gt;&lt;P&gt;FIELD NAME	DESCRIPTION&lt;/P&gt;&lt;P&gt;SPOS	Sort order if the list is sorted by multiple columns&lt;/P&gt;&lt;P&gt;FIELDNAME	Field name in the internal output table&lt;/P&gt;&lt;P&gt;UP	'X' = Sorted in ascending order&lt;/P&gt;&lt;P&gt;DOWN	'X' = Sorted in descending order&lt;/P&gt;&lt;P&gt;SUBTOT	'X' = Subtotal at group level change&lt;/P&gt;&lt;P&gt;GROUP	Once a column is sorted, it is subdivided into groups. This means there is one group for each value of the column (in the default setting, the ALV Grid Control merges cells that have the same value in the sort column). If the value in the sort colulmn changes, this is called a group level change.&lt;/P&gt;&lt;P&gt;You can use this field to determine the formatting of this value when the list is printed:&lt;/P&gt;&lt;P&gt;'* ' = Page break at group level change&lt;/P&gt;&lt;P&gt;'UL' = Underline at group level change&lt;/P&gt;&lt;P&gt;(The formatting options are fixed domain values of domain SLIS_CTRLS ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two important points to tell about this topic. First one is that, there will be a short dump if any one of the fields given to be sorted is not in the content of the field catalog. Secondly, when you make ALV Grid to sort data, by default it vertically merges fields having the same content. To avoid from this for all of the columns, you can set &amp;#147;no_merging&amp;#148; field of the layout structure to &amp;#145;X&amp;#146;. If you want to disable merging for just some columns, set &amp;#147;no_merging&amp;#148; field of the field catalog row corresponding to that column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTAL AND SUBTOTAL&lt;/P&gt;&lt;P&gt;This returns the current subtotals of the ALV Grid Control. Having created totals for at least one column, users can calculate at most nine subtotals. The list is sorted by the values of one or several columns (called the subtotals column). If a value is changed in the subtotals column, the subtotal is displayed (this is also referred to as control level change).&lt;/P&gt;&lt;P&gt;EXAMPLE CODE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FORM SORT_CATALOG USING GT_SORT TYPE SLIS_T_SORTINFO_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:   GS_SORT TYPE SLIS_SORTINFO_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR GS_SORT.&lt;/P&gt;&lt;P&gt;GS_SORT-FIELDNAME = 'FIELD1'.&lt;/P&gt;&lt;P&gt;GS_SORT-SPOS      = 1.&lt;/P&gt;&lt;P&gt;GS_SORT-DOWN        = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GS_SORT-SUBTOT    = 'X'.&lt;/P&gt;&lt;P&gt;APPEND GS_SORT TO GT_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR GS_SORT.&lt;/P&gt;&lt;P&gt;GS_SORT-FIELDNAME = 'FIELD2'.&lt;/P&gt;&lt;P&gt;GS_SORT-SPOS      = 2.&lt;/P&gt;&lt;P&gt;GS_SORT-UP        = 'X'.&lt;/P&gt;&lt;P&gt;*GS_SORT-SUBTOT    = 'X'.&lt;/P&gt;&lt;P&gt;APPEND GS_SORT TO GT_SORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if found useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2006 09:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477903#M223936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-30T09:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477904#M223937</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;Go through the link,&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/ee/c8e056d52611d2b468006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/ee/c8e056d52611d2b468006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and make sure the text element given is activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2006 22:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477904#M223937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-30T22:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477905#M223938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'subtotal_text' (and also for TOTAL texts) will only appear when the FIRST column is wide enough to take it (set fieldcat-outputlen appropriately) and if the FIRST column of the ALV output is not ITSELF being subtotalled on. I suppose this is because the text is always going to appear in column 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can force this either by moving the column you're  interested to another spot or by introducing a column 1 which is usually empty but will contain the texts on total lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 02:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477905#M223938</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-07-31T02:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477906#M223939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;Whether do you get subtotal value  ? If you get a value but not the text, increase the colwidth of the first column in the field catalog what you pass for the first column. Try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 03:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text/m-p/1477906#M223939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T03:46:59Z</dc:date>
    </item>
  </channel>
</rss>

