Application Development and Automation 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: 
Read only

Editable ALV Error cells deletion

Former Member
0 Likes
616

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.

2 REPLIES 2
Read only

anversha_s
Active Contributor
0 Likes
497

Hi manoj,

kindly chk this excellent link.

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm

Regards

Anver

if hlped pls mark points

Read only

uwe_schieferstein
Active Contributor
0 Likes
497

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