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

ALV Grid edit

Former Member
0 Likes
490

Hello,

if you edit your ALV befor first display you can set the attributes of the layout:

gs_layout-edit = 'X'.

The problem is that I want to have the delete button of the ALV which exist only when I set edit = X.

I don't want to program the function of delete by myself so is there a possibility to have the standard delete button without setting gs_layout-edit=X?

Hello,

if you edit your ALV befor first display you can set the attributes of the layout:

gs_layout-edit = 'X'.

The problem is that I want to have the delete button of the ALV which exist only when I set edit = X.

I don't want to program the function of delete by myself so is there a possibility to have the standard delete button without setting gs_layout-edit=X?

1 REPLY 1
Read only

Former Member
0 Likes
438

Hi,

I dont know exactly why you would't to use gs_layout-edit = 'X'.

When you want to have no edit possibility you can use the method set_ready_for_input EXPORTING

I_READY_FOR_INPUT = 1 instead of gs_layout-edit = 'X'.

When you want not to have so more toolbar buttons you can to hide it with the parameter it_toolbar_excluding of the method set_table_for_first_display ([more|http://help.sap.com/saphelp_470/helpdata/en/e5/1cecdc32fc11d4b5c4006094192fe3/frameset.htm])

Regards Bogdan