cancel
Showing results for 
Search instead for 
Did you mean: 

ALV - TOTAL PROBLEM very urgent

srajendran
Explorer
0 Kudos

Hi friends,

in alv report i calculated total for field1 and field2. also displayed in the last line of the report. now i want to display the overall total of the two fields ie. ( total of field1 + total of field2).(i am using class not alv function module).

field1 field2

-


10 20

30 30

total 40 50

overall total 90

thanks in advance,

with regards,

senthil kumar.r

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member181962
Active Contributor
0 Kudos

Hi senthil,

Have a third field field3 in your internal table.

Populate it with

itab-field3 = itab-field1 + itab-field2.

Build the field catalog for the field3 as you did for the other two fields.

regards,

ravi

Former Member
0 Kudos

Hi Senthil,

Have a look at Method GET_TOTALS of CL_GUI_ALV_GRID.

Sorry, checkout Method LVC_TOTALS_GET.

Regards,

Raj

Message was edited by: Rajasekhar Dinavahi

former_member188685
Active Contributor
0 Kudos

Populate Fieldcatalog for that field with DO_SUM = 'X'.

regards

vijay

srajendran
Explorer
0 Kudos

hi,

actually it is not a field. after total display i want to add one more calcuation that's all. how to do

Former Member
0 Kudos

Hi,

Try populating the layout table with totals_only ='X', this might help,

Rgds,