How Calculate TOTALS,SUBTOTALS in ALV Reporting?

Answer Posted / siva

data: wa_fieldcat type slis_fieldcat_alv,
it_fieldcat type slis_t_fieldcat_alv.

data: wa_sort type slis_sortinfo_alv,
it_sort type slis_t_sortinfo_alv.

wa_fieldcat-do_sum = 'X'.
append wa_fieldcat to it_fieldcat.

wa_sort-fieldname = 'KUNNR'.
wa_sort-tabname = 'IT_FINAL'.
wa_sort-subtot = 'X'.
append wa_sort to it_sort.

Is This Answer Correct ?    71 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of the transport system and workbench organizer?

847


What is exception class and test class. How to use it?

1095


What is a table pool? : abap data dictionary

793


How can we handle table control in bdc? : abap bdc

797


SAP Script for Billing in which Billing document number was displayed as header, Bill Type, Bill Category, Bill Item, Cost, Base Unit of Measurement and Material number were categorically displayed for each billing document number. plz mention the detail coding Tahnks, Rahul

2269


Explain the difference between get and get late?

774


While doing bdc exp va01 transaction sometime in the item level data shows only 4 items and other times it will show 6 line items, how will you maintain this kind of screen resolutions scenerio? : abap bdc

980


Which infotype records can not be deleted ? : abap hr

805


What are the two levels in defining a match code? : abap data dictionary

824


Hi,have Good Command in SAP ABAP, ABAP WEBDYNPRO now i want to learn sap IS utilities.. can u plz suggest me is it useful r not? If not can i learn BI? Is ABAP with BI have gud future?

1780


What is the differences between structure and table in data dictionary in abap?

775


What are the different window types in sapscript?

745


can any one answer these questions 1)How do you convert non-character field to character field? 2)How do you work with semi colon separated files? 3)why cant we use normal function module for data transfer? 4)what is the structure of CTU-PARAMS? 5)can we use transfer dataset to transfer data in internal table?

1750


How many types of views are there? : abap data dictionary

772


How can we upload a text file having delimiters in to legacy system?

788