<?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 display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038182#M418828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the fieldcat of week field ifieldcat-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : isort type slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;         wsort type slis_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wsort-fieldname = 'WERKS'.&lt;/P&gt;&lt;P&gt;wsort-up = 'X'.&lt;/P&gt;&lt;P&gt;wsort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;wsort-group = 'UL'.&lt;/P&gt;&lt;P&gt;append wsort to isort.&lt;/P&gt;&lt;P&gt;do same for division also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now pass isort to alv grid display fn module.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2007 10:28:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-13T10:28:59Z</dc:date>
    <item>
      <title>alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038180#M418826</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;The Requirent is as below example at the moment am able to display all fields except the 'subtotal' 'division total' 'capacity' row and the sum for that . &lt;/P&gt;&lt;P&gt;Any sample code pls. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg : display in the alv grid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; group   plant      status      week&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; g1       |  plant1  |    R    |       10&lt;/P&gt;&lt;P&gt; g1       |  palnt1  |    l     |       20&lt;/P&gt;&lt;P&gt; g1       |  plant1  |    b    |       30&lt;/P&gt;&lt;P&gt;subtotal| plant    |           |       60 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; g1        |  plant2  |    R  |       10&lt;/P&gt;&lt;P&gt; g1        |  palnt2  |    l   |       20&lt;/P&gt;&lt;P&gt; g1        |  plant2  |    b  |       30&lt;/P&gt;&lt;P&gt;subtotal   | plant           |       60 &lt;/P&gt;&lt;P&gt;divisiontot| division        |      120 &lt;/P&gt;&lt;P&gt;capacity   | division       |      180 &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------" /&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;vind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 10:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038180#M418826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T10:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038181#M418827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the IT_SORT parameter of REUSE_ALV_LIST_DISPLAY &lt;/P&gt;&lt;P&gt;fill entries for following parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldname = plant&lt;/P&gt;&lt;P&gt;subtot = 'X'&lt;/P&gt;&lt;P&gt;append fieldname to it_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldname = division.&lt;/P&gt;&lt;P&gt;subtot = 'X'&lt;/P&gt;&lt;P&gt;append fieldname to it_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it will by default show you subtotals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kapadia&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Assigning points is the way to say thanks in SDN.&lt;/STRONG&gt;***&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 10:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038181#M418827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T10:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038182#M418828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the fieldcat of week field ifieldcat-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : isort type slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;         wsort type slis_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wsort-fieldname = 'WERKS'.&lt;/P&gt;&lt;P&gt;wsort-up = 'X'.&lt;/P&gt;&lt;P&gt;wsort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;wsort-group = 'UL'.&lt;/P&gt;&lt;P&gt;append wsort to isort.&lt;/P&gt;&lt;P&gt;do same for division also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now pass isort to alv grid display fn module.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 10:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038182#M418828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T10:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: alv display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038183#M418829</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;I checked with the code and its give me a runtime error that 'FM interface allows you to soecify only fields of a particular type under IT_FIELDCAT . The field T_FIELDCAT specified here has a different field type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have include the code like below......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------" /&gt;&lt;P&gt;data : isort type slis_t_sortinfo_alv,&lt;/P&gt;&lt;P&gt;wsort type slis_sortinfo_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wsort-fieldname = 'WERKS'.&lt;/P&gt;&lt;P&gt;  wsort-up = 'X'.&lt;/P&gt;&lt;P&gt;  wsort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;  wsort-group = 'UL'.&lt;/P&gt;&lt;P&gt;append wsort to isort.&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_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_callback_program       = 'ZTEST'&lt;/P&gt;&lt;P&gt;            i_callback_pf_status_set = 'SET_PF_STATUS'&lt;/P&gt;&lt;P&gt;            i_callback_user_command  = 'USER_COMMAND_ALV'&lt;/P&gt;&lt;P&gt;            i_structure_name         = 'ITAB_DISPLAY'&lt;/P&gt;&lt;P&gt;            is_layout                = t_layout&lt;/P&gt;&lt;P&gt;            it_fieldcat              = t_fieldcat&lt;/P&gt;&lt;P&gt;            it_sort                  = isort&lt;/P&gt;&lt;P&gt;            it_special_groups        = t_spec_groups&lt;/P&gt;&lt;P&gt;            i_default                = 'X'&lt;/P&gt;&lt;P&gt;            i_save                   = g_save&lt;/P&gt;&lt;P&gt;            is_variant               = g_variant&lt;/P&gt;&lt;P&gt;            it_events                = t_events&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_outtab                 = itab_display&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " do_the_alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may i know how to rectify this error and get the right output..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;vind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 10:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-display/m-p/2038183#M418829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T10:49:46Z</dc:date>
    </item>
  </channel>
</rss>

