Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with ALV - 1

Former Member
0 Kudos

Hi All

In my ALV editing program I want to show the summation of the figures, so I am handling the data_changed event but it does not work and instead of replacing the summation fig. it simple replaces that cell with blanks ( I am using modify_cell method) ??? can't make out the why it is happening?

Thanks in anticipation

pM

5 REPLIES 5

Former Member
0 Kudos

HI ,

I hope you want to display the total at the bottom of alv grid/ list.

Following code helps you.

type-pools : slis.

data FLD_LAY TYPE SLIS_LAYOUT_ALV.

*this is field catalog building there u specify this.

FLD-DO_SUM = ABAP_TRUE.

FLD_LAY-TOTALS_TEXT = 'TOTAL=>'.

FLD_LAY-LIST_APPEND = ''.

Regards,

Dilip

0 Kudos

I want to update the column of the totals by adding all the cells of that row and I am not using functions but methods.

Here is my line of code

CALL METHOD rr_data_changed->modify_cell

EXPORTING i_row_id = ls_mod_cells-row_id

i_fieldname = 'TOTALFV'

i_value = temp_total1.

Thanks

pM

0 Kudos

Hi,

Check this regarding editable ALV grid

http://www.sapdevelopment.co.uk/reporting/alv/alvscr.htm

BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.

BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.

Thanks & Regards,

Judith.

0 Kudos

Hi All

I have already referd the said examples and the links and then only I posted the message here.

Thanks

pM