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

Ctrl+Enter in editable ALV

Former Member
0 Likes
786

Dear,

I have a problem with editable ALV. When I click Ctrl+Enter in ALV adds a new empty lines. How to block this action?

<removed by moderator>

Please help me.

Thank you in advance.

Message was edited by: Thomas Zloch

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
697

Try to add cl_gui_alv_grid=>mc_fc_loc_append_row to list of excuded function codes.

Regards,
Raymond

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
698

Try to add cl_gui_alv_grid=>mc_fc_loc_append_row to list of excuded function codes.

Regards,
Raymond

Read only

0 Likes
697

Dear Raymond, I have this code in my program, but it not help me. Maybe is there other variants?

  ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.

   append ls_exclude to pt_exclude.

   ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.

   append ls_exclude to pt_exclude.

   ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.

   append ls_exclude to pt_exclude. 

   ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.

   append ls_exclude to pt_exclude.

   ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.

   append ls_exclude to pt_exclude.

Read only

697

- If this is not the correct function code, you try to deterline the correct one by managing event before_user_command. (just put a break-point in test)
- You could also set NO_ROWINS field in layout.

Regards,
Raymond

Read only

0 Likes
697

Thank you very much) The second option has helped me.

In the first case, a break-point did not work at all, when i click Ctrl+Enter.