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: 

Disabling push button column cell on alv grid control (OOABAP)

Former Member
0 Kudos

Hello All,

I have a requirement where I need to add one column as pushbutton in alv grid display. I have done that and it's triggering button_click event also. The problem here is that I want the few <b>push button cells</b> of that column to be disbaled (depending on my requirement). I tried using a internal table lvc_t_styl and adding a field of same lvc_t_styl in my main internal table. This works for all other fields (e.g disbaling checkbox in alv grid and other editable fields) but not for push buttons. My exact requirement is that I want some of the <b>cells of pushbutton column to be grayed out (made inactive)</b>. Can anyone tell me how to do that. Thanks.

Note:Helpful answers will be duly rewarded.

null

4 REPLIES 4

Former Member
0 Kudos

Hi,

U can copy existing standard GUI and then make changes as per your requiermetns. I think this is only solution.

and u can set the Pf status with set pf-status 'UR_NEW_STATUS'.

Former Member
0 Kudos

Hi Amit,

Did you find any solution for this requirement?

if so please reply this...... i am also facing the same problem... and finding alternate solution....

Former Member
0 Kudos

This message was moderated.

Former Member

Hi,

I had the same problem.

what I did I just added the  cl_gui_alv_grid=>mc_style_button at each row of the data table instead of adding it at the field catalog level.

Hope this solve your problem.

Thanks,

Harish