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

How to create a check box/option button in a list?

2466


What is foreign key relationship? : abap hr

621


​​What is constructor expression in​​ nw​​ abap​​ 7.4?

637


What is a data dictionary? : abap data dictionary

583


Work most on which module: name a few tables?

600






What are the advantages and disadvantages of different types of bdc's?

547


What are different data types in abap/4?

562


Explain the advantages and disadvantages of different types of bdc's?

610


Explain the different types of mode (run code) in call transaction method?

571


Describe the data classes?

618


Can matchcode object contain ids with different update types? : abap data dictionary

615


What functions does a data dictionary perform? : abap data dictionary

624


How will you insert record in a sorted table

872


What are the screen painter and menu painter?

584


where do we store all custom programs in SD module?

4899