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

PUSH Button On Selection screen

sachin_s_panchal
Explorer
0 Likes
1,022

Hello,

I have created pushbutton on selection screen as below,

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON (20) w_button USER-COMMAND but1.
SELECTION-SCREEN PUSHBUTTON (25) w_but2 USER-COMMAND but2.
SELECTION-SCREEN PUSHBUTTON (25) w_but3 USER-COMMAND but3.
SELECTION-SCREEN PUSHBUTTON (25) w_but4 USER-COMMAND but4.
SELECTION-SCREEN END OF LINE.

IF I have to greyout a button just to show its selected now, how can I do it ?

Regards,

Sachin Panchal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
851

1. PF-status

menu painter>

go to> attributes> push button assignment> display all

after excluding specific function, grayed-out on toolbar

* 2. example:

* set pf-status 'STATUS_0200' excluding lt_fcode. " disables button(s)

Reference

https://answers.sap.com/questions/7818452/disabling-gui-status-buttons.html

2 REPLIES 2
Read only

Sandra_Rossi
Active Contributor
851

Search the forum or ABAP documentation for something like that:

AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
...
MODIFY SCREEN.
ENDLOOP.
Read only

Former Member
0 Likes
852

1. PF-status

menu painter>

go to> attributes> push button assignment> display all

after excluding specific function, grayed-out on toolbar

* 2. example:

* set pf-status 'STATUS_0200' excluding lt_fcode. " disables button(s)

Reference

https://answers.sap.com/questions/7818452/disabling-gui-status-buttons.html