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 are the names of the function modules that will be generated upon activation of a lock object?

548


How many primary keys can be created for a table?

617


What is meant by hide area?

651


Explain the difference between tables and structures?

479


what are the 2 other types of views, which are not allowed in release 3.0? : abap data dictionary

610






What happens Update command is used without where clause ?

625


What are the steps to execute session method?

594


How to get that a secondary index is attached to a select query?

940


How to call a subroutine in sapscript?

569


What are the different types of locks? : abap data dictionary

627


What is a function group? : abap modularization

588


List some of the many different ways that the sap standard functionality can be changed by a customer?

548


What are the differences between macro and subroutine?

616


hi i need detailed information on badi and bapi how can this work in real time senarios plz explain with exp

3209


How many types of size categories and data classes are there? : abap data dictionary

606