2008 Nov 05 11:21 AM
Hi FRIENDS,
I have a scenario where i need to sum the values checked through checkbox and display in the same screen under the heading total.
thank u
urmila.T
2008 Nov 05 11:25 AM
If i understand you correctly then the ALV is first displayed without the sum.Once the rows are checked (checkbox) and some user action needs to be recorded for the refreshing the ALV with the sum.
In PAI event, during processing the user action put you logic of fetching the records which has a checkbox and then calculate the sum and refresh the ALV and show the sum.
Cheers,
KD
2008 Nov 05 11:25 AM
use the events available , there is one event DATA_CHANGED , DATA_CHANGED_FINISHED you can use these events
use the refresh_table_display method to display the recalculated values
2008 Nov 05 11:30 AM
2008 Nov 05 11:25 AM
If i understand you correctly then the ALV is first displayed without the sum.Once the rows are checked (checkbox) and some user action needs to be recorded for the refreshing the ALV with the sum.
In PAI event, during processing the user action put you logic of fetching the records which has a checkbox and then calculate the sum and refresh the ALV and show the sum.
Cheers,
KD
2008 Nov 05 11:47 AM
hi ,
thanks for reply....
but there is user action here as soon the check box is checked the values should b summed and it should b shown under the grid with a heading 'required total:'
2008 Nov 05 12:07 PM
In future, please use a meaningful subject for your posts.
Thank-you
matt
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |