2006 Nov 06 6:35 AM
Hi,
I have a couple of problems with Editable ALV's.
Firstly, a user can select a row in the ALV and then press delete from the keyboard and the row gets deleted. I do not want to allow the user to do this( he must press the delete button provided). How do i achieve this?
Secondly, When there are any errors in the entries of the ALV (cells are highlighted in red) and the user selects these entries and tries to delete the row by clicking on the delete button in the toolbar. The row does not get deleted because there are some erroneous entries.i.e. the event handler for delete is not called from cl_gui_alv_grid. I want to let the user delete these rows even though there are errors, how can this be done?
PLease let me know if you have answers to either of the questions.
Thanks in advance
Manoj.
Hi,
I have a couple of problems with Editable ALV's.
Firstly, a user can select a row in the ALV and then press delete from the keyboard and the row gets deleted. I do not want to allow the user to do this( he must press the delete button provided). How do i achieve this?
Secondly, When there are any errors in the entries of the ALV (cells are highlighted in red) and the user selects these entries and tries to delete the row by clicking on the delete button in the toolbar. The row does not get deleted because there are some erroneous entries.i.e. the event handler for delete is not called from cl_gui_alv_grid. I want to let the user delete these rows even though there are errors, how can this be done?
PLease let me know if you have answers to either of the questions.
Thanks in advance
Manoj.
2006 Nov 06 6:39 AM
Hi manoj,
kindly chk this excellent link.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm
Regards
Anver
if hlped pls mark points
2006 Nov 26 9:02 PM
Hello Manoj
Please have a look at sample report <b>BCALV_EDIT_03</b>. If you enter a wrong plane type the ALV error log will be displayed. When the log is closed you can delete the row containing the wrong plane type using the "Cut" function from the toolbar.
The reason why the erroneous row can be deleted is obvious: using toolbar functions the PAI of the dynpro will not be passed and therefore method go_grid->CHECK_DATA_CHANGED will not be called.
Regards
Uwe
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |