Application Development 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: 

ALV editable convert to no editable

Former Member
0 Kudos

HEllo,

I have an editable field in an ALV GRid. I want to convert in an non editable field when I change his value and

I push a buttom that I created. How can I do?

NOTE_ The alv layout of alv is TYPE slis_layout_alv because if I do with lvc_layo I have to do a lot of changes in my

code.

1 REPLY 1

former_member181962
Active Contributor
0 Kudos

In the code for your button:

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = W_REPID

I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM

P_SELFLD TYPE SLIS_SELFIELD.

case p_ucomm.

when 'BUT1'.

layout-edit = space.

p_selfnd-refresh = 'X'.

endcase.

ENDFORM.