<?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 Fields summing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563992#M254930</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;If you want to do the sub totaling..You should have a sort order for the field which you want to have a sub-total..And in the field catalog internal table for the the corresponding CURR make the DO_SUM = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_SORT TYPE SLIS_T_SORTINFO_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: S_SORT TYPE SLIS_SORTINFO_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_SORT-SPOS = '1'.&lt;/P&gt;&lt;P&gt;S_SORT-FIELDNAME = 'VBELN'. "Sales order #&lt;/P&gt;&lt;P&gt;S_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND S_SORT TO T_SORT..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Oct 2006 02:49:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-18T02:49:56Z</dc:date>
    <item>
      <title>ALV Fields summing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563987#M254925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to correct error in  ALV out put. The error is the sum of amount field is not displaying in the ALV out put of particular column . Actually in SAP 4.7 version of the same program, it is summing correctly and displaying at the end of the column of that particular field .&lt;/P&gt;&lt;P&gt;But in 4.6 C it is not displaying. It looks the same code in both 4.6 C and 4.7 as well.  Could you please suggest me how to achieve this  ? This is very urgent.&lt;/P&gt;&lt;P&gt;Below is the code&lt;/P&gt;&lt;P&gt;  ADD 1 TO col_pos.&lt;/P&gt;&lt;P&gt;  fieldcat_ln-ref_tabname = ws_table  .    "You can also use the db tabl&lt;/P&gt;&lt;P&gt;  fieldcat_ln-fieldname = ws_fieldname.    "name(BSIS) here, but it will&lt;/P&gt;&lt;P&gt;  fieldcat_ln-qfieldname = ws_qfieldname.&lt;/P&gt;&lt;P&gt;  fieldcat_ln-cfieldname = ws_cfieldname.&lt;/P&gt;&lt;P&gt;  fieldcat_ln-key = ws_key.                "use the db field name instea&lt;/P&gt;&lt;P&gt;  fieldcat_ln-do_sum = ws_sum.             "of the name you give in&lt;/P&gt;&lt;P&gt;  fieldcat_ln-col_pos = col_pos.           "reptext_ddic.&lt;/P&gt;&lt;P&gt;  fieldcat_ln-no_out = ws_noout.&lt;/P&gt;&lt;P&gt;  fieldcat_ln-hotspot = ws_hotspot.&lt;/P&gt;&lt;P&gt;  fieldcat_ln-outputlen = ws_outputlen.&lt;/P&gt;&lt;P&gt;  fieldcat_ln-reptext_ddic = ws_ddic.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcat_In-seltext_s = ws_ddic.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; fieldcat_In-seltext_m = ws_ddic.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND fieldcat_ln TO fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;  data : pgm like sy-repid.&lt;/P&gt;&lt;P&gt;  pgm = sy-repid.&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_callback_program       = pgm&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_CALLBACK_PF_STATUS_SET = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          i_callback_user_command  = 'USER_COMMAND'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_STRUCTURE_NAME         = 'DEFERRED ACCOUNTS REC RPT'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        is_layout                = lay_out&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            it_fieldcat              = fieldcat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_EXCLUDING             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_SPECIAL_GROUPS        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        it_sort                  = sortcat&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IT_FILTER                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        IS_SEL_HIDE              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        I_DEFAULT                = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            i_save                   = 'A'&lt;/P&gt;&lt;P&gt;            is_variant               = g_variant&lt;/P&gt;&lt;P&gt;            it_events                = eventcat&lt;/P&gt;&lt;P&gt;         it_event_exit            = gt_event_exit[]&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            t_outtab                 = itab_alv&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;P&gt;    message i100(zg) with 'Unable to display ALV due to error'.&lt;/P&gt;&lt;P&gt;    stop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You help is highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 20:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563987#M254925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-11T20:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Fields summing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563988#M254926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try adding this one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

ADD 1 TO col_pos.
fieldcat_ln-ref_tabname = ws_table . "You can also use the db tabl
fieldcat_ln-fieldname = ws_fieldname. "name(BSIS) here, but it will
fieldcat_ln-qfieldname = ws_qfieldname.
fieldcat_ln-cfieldname = ws_cfieldname.
fieldcat_ln-key = ws_key. "use the db field name instea
fieldcat_ln-do_sum = ws_sum. "of the name you give in
&amp;lt;b&amp;gt;fieldcat_in-datatype = 'QUAN'. "&amp;lt;------ Right Here&amp;lt;/b&amp;gt;
fieldcat_ln-col_pos = col_pos. "reptext_ddic.
fieldcat_ln-no_out = ws_noout.
fieldcat_ln-hotspot = ws_hotspot.
fieldcat_ln-outputlen = ws_outputlen.
fieldcat_ln-reptext_ddic = ws_ddic.
* fieldcat_In-seltext_s = ws_ddic.
* fieldcat_In-seltext_m = ws_ddic.

APPEND fieldcat_ln TO fieldcat.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2006 20:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563988#M254926</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-11T20:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Fields summing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563989#M254927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to correct error in ALV out put. The error is the subtotaling of a field is not displaying in the ALV out put of particular column . Actually in SAP 4.7 version of the same program is working fine. it is doing sub-totaling.&lt;/P&gt;&lt;P&gt;But in 4.6 C it is not displaying. It seems the same code is copied both into 4.6 C and 4.7 as well. Could you please suggest me where to check which field I need to check ?  how to achieve this ? This is very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code&lt;/P&gt;&lt;P&gt;ADD 1 TO col_pos.&lt;/P&gt;&lt;P&gt;fieldcat_ln-ref_tabname = ws_table . "You can also use the db tabl&lt;/P&gt;&lt;P&gt;fieldcat_ln-fieldname = ws_fieldname. "name(BSIS) here, but it will&lt;/P&gt;&lt;P&gt;fieldcat_ln-qfieldname = ws_qfieldname.&lt;/P&gt;&lt;P&gt;fieldcat_ln-cfieldname = ws_cfieldname.&lt;/P&gt;&lt;P&gt;fieldcat_ln-key = ws_key. "use the db field name instea&lt;/P&gt;&lt;P&gt;fieldcat_ln-do_sum = ws_sum. "of the name you give in&lt;/P&gt;&lt;P&gt;fieldcat_ln-col_pos = col_pos. "reptext_ddic.&lt;/P&gt;&lt;P&gt;fieldcat_ln-no_out = ws_noout.&lt;/P&gt;&lt;P&gt;fieldcat_ln-hotspot = ws_hotspot.&lt;/P&gt;&lt;P&gt;fieldcat_ln-outputlen = ws_outputlen.&lt;/P&gt;&lt;P&gt;fieldcat_ln-reptext_ddic = ws_ddic.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fieldcat_In-seltext_s = ws_ddic.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fieldcat_In-seltext_m = ws_ddic.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND fieldcat_ln TO fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;data : pgm like sy-repid.&lt;/P&gt;&lt;P&gt;pgm = sy-repid.&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_callback_program = pgm&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_CALLBACK_PF_STATUS_SET = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_STRUCTURE_NAME = 'DEFERRED ACCOUNTS REC RPT'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;is_layout = lay_out&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;it_fieldcat = fieldcat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IT_EXCLUDING =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IT_SPECIAL_GROUPS =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;it_sort = sortcat&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IT_FILTER =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IS_SEL_HIDE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_DEFAULT = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_save = 'A'&lt;/P&gt;&lt;P&gt;is_variant = g_variant&lt;/P&gt;&lt;P&gt;it_events = eventcat&lt;/P&gt;&lt;P&gt;it_event_exit = gt_event_exit[]&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = itab_alv&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 13:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563989#M254927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T13:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Fields summing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563990#M254928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sam,&lt;/P&gt;&lt;P&gt;I think the column is not Numeric,may be its CHAR.&lt;/P&gt;&lt;P&gt;change it to Numeric..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 17:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563990#M254928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T17:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Fields summing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563991#M254929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is neither numeric nor char field . &lt;/P&gt;&lt;P&gt;It is CURR field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in 4.7 SAP system ...it is doing subtotaling and is working fine .&lt;/P&gt;&lt;P&gt;and the same program is copied to 4.6C...and in 4.6C it is not showing subtotaling.&lt;/P&gt;&lt;P&gt;THIS IS VERY URGENT . &lt;/P&gt;&lt;P&gt;COULD ANY BODY RESPOND SOON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOUR HELP WILL BE HIGHLY APPRECIATED.&lt;/P&gt;&lt;P&gt;THANKS IN ADVANCE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 02:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563991#M254929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T02:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Fields summing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563992#M254930</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;If you want to do the sub totaling..You should have a sort order for the field which you want to have a sub-total..And in the field catalog internal table for the the corresponding CURR make the DO_SUM = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_SORT TYPE SLIS_T_SORTINFO_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: S_SORT TYPE SLIS_SORTINFO_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_SORT-SPOS = '1'.&lt;/P&gt;&lt;P&gt;S_SORT-FIELDNAME = 'VBELN'. "Sales order #&lt;/P&gt;&lt;P&gt;S_SORT-UP = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND S_SORT TO T_SORT..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2006 02:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-fields-summing/m-p/1563992#M254930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-18T02:49:56Z</dc:date>
    </item>
  </channel>
</rss>

