2010 Mar 04 11:34 AM
Hi all,
If I edit multiple number of rows in an ALV Grid(suppose I use OOPS) , on using get_selected_rows
will I get the edited row and its data.
Tell me if I cannot get the edited data, how can I get it??
I know to make an ALV with certain edit enabled fields, but I cannot make the edited data reflect into the Internal table I used for displaying in ALV fn module.That is after editing some of the cells the changes I made must be made in the Internal table I used for displaying the ALV.
2010 Mar 04 5:55 PM
Put the edited values back into the columns/rows of your internal table. Then REFRESH the ALV output...that will "reset" your display...how to refresh depends on which version of ALV or SALV you're using.
Put the edited values back into the columns/rows of your internal table. Then REFRESH the ALV output...that will "reset" your display...how to refresh depends on which version of ALV or SALV you're using.
2010 Mar 04 11:46 AM
2010 Mar 04 5:55 PM
Put the edited values back into the columns/rows of your internal table. Then REFRESH the ALV output...that will "reset" your display...how to refresh depends on which version of ALV or SALV you're using.
2010 Mar 05 4:00 AM
Thanks for all the responses ..
but my question is ..how can I put the edited values back into my internal table????
2010 Mar 05 4:09 AM
Hi,
You need to call the method check_changed_data in the PAI of the screen. Changed data will be updated to your final table.
Check out below WIKI for sample code.
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=61243570
Thanks,
Vinod.
2010 Mar 05 5:08 AM
Hi,
Use the method check_changed_data of the alv class CL_GUI_ALV_GRID.
Thanks,
Anju
2010 Mar 04 6:07 PM
Hi,
You can use an 'UPDATE' button on application toolbar of ALV.
In user command event of ALV, update your internal table with the data edited on ALV screen
Thanks,
Hemant
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |