Skip to Content
0
Former Member
Jul 16, 2011 at 12:01 PM

Disable button on toolbar of ALV

16 Views

Hi experts,

I have added tow buttons on toolbar of ALV grid as below:

form set_pf_status using rt_extab type slis_t_extab.

set pf-status 'ZSTANDARD'.

endform. "set_pf_status

*u201Cset_pf_status

form user_command using r_ucomm like sy-ucomm

rs_selfield type slis_selfield.

if r_ucomm eq 'BUTTON1'.

message ' button1'.

endif.

if r_ucomm eq 'STEP2'.

If BUTTON1 was clicked ==> BUTTON 2 enable ==> How to handle code ? endif.

endif.

if r_ucomm eq 'STOP'.

leave screen .

endif.

endform. "set_pf_status

endform.

Thank you so much.