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

Which table stores the programs created?

611


In which table the material master data is stored?

556


can anyone do BDC or BAPI for F-02 and F-04 transactions.If it LSMW also.Kindly let me know.

3029


Describe the data classes?

608


How to display or know if the value entered contains records or not?

574






How to Solve a Particular Ticket in Realtime ?

1741


How is the command suppress-dialog useful?

644


what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.

2049


In what ways we can get the context sensitive f1 help on a field?

594


What is meant by hide area?

647


What is human resource information systems (chris)? : sap abap hr

533


If I want to execute a bdc program only in background not in foreground is there any option for this? : abap bdc

665


Normally how many and what files get created when a transaction program is written? what is the XXXXXTOP program?

645


What is an update type with reference to a match code id?

559


What are the types of indexes in abap?

600