08-18-2005 6:16 AM
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
08-18-2005 6:21 AM
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.
08-18-2005 6:21 AM
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.
08-18-2005 6:21 AM
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
08-18-2005 6:32 AM
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'.
08-18-2005 8:29 AM
And another question:
how to set the total row to be always visisble ( like a key field ).
thank you
Bogdan
08-18-2005 8:40 AM
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