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: 

modify data and sums in ALV list

Former Member
0 Kudos

Hello all,

I need to implement an application which has an ALV list, in this list cells value can be modified and at bottom of it must be displayed columns sums, if the list is flitered the sums must be only for visible rows.

Please help me with some snippets, samples, links or anything else.

Thank you a lot!

Bogdan

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Check this link.You can find lot of code sample for ALV.

http://www.geocities.com/mpioud/Abap_programs.html

Kindly reward points by clicking the star on the left of reply,if you find it as useful.

5 REPLIES 5

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Check this link.You can find lot of code sample for ALV.

http://www.geocities.com/mpioud/Abap_programs.html

Kindly reward points by clicking the star on the left of reply,if you find it as useful.

Former Member
0 Kudos

Hi Bogdan,

ALV has built in features by which you can sum up the column contents.

Use this in ur fieldcatalog.

FIELDCAT-DO_SUM = 'X'. (for the particular field).

Cheers,

Sam

Former Member
0 Kudos

Can refer to this link too

http://www.sapdevelopment.co.uk/reporting/alvhome.htm

Hope this helps u.

For doing sum, in filedcatalog use DO_SUM = 'X'.

0 Kudos

And another question:

how to set the total row to be always visisble ( like a key field ).

thank you

Bogdan

Former Member
0 Kudos

Hi,

In OO concept,To make all the rows editable,you have to set the layout as,

it_layout-edit = 'X'.

And pass this table to parameter is_layout in the method set_table_for_first_display.

CALL METHOD i_grid->set_table_for_first_display

EXPORTING

is_layout = it_layout

changing

it_outtab = itab[].

Or you can call the method SET_READY_FOR_INPUT

call method i_grid->set_ready_for_input

exporting

i_ready_for_input = 0.

Here parameter i_ready_for_input has two values '0' and '1'.The value '0' indicates uneditable and value '1' indicates editable.

Hope it helps you.

Thanks&Regards,

Ruthra.R