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: 

HOW TO DELETE A PUSHBUTTON FROM TOOLBAR

Former Member
0 Kudos

hi,

I am writing a program wherein I am required to show 4 pushbuttons on the report screen,when i click on either of the 4 pushbuttons the remaining 3 pushbuttons wil remain there only but the pushbutton i clicked will be hidden.

is there any way to hide specific pushbuttons only,if yes pls put some light on it.

I am fairly new to abap,so pls elaborate the solution ur providing.

thank u

1 ACCEPTED SOLUTION

Former Member
0 Kudos

when u press the push button....

loop at screen.

if pushbutton = 'X'.

pushbutton-invisible = 0.

modify screen.

endif.

endloop.

4 REPLIES 4

Former Member
0 Kudos

when u press the push button....

loop at screen.

if pushbutton = 'X'.

pushbutton-invisible = 0.

modify screen.

endif.

endloop.

Former Member
0 Kudos

Hi Amit,

Try the following:

Loop at screen.
  If pushbutton1 = 'X'.
    pushbutton2-invisible = 1.
    pushbutton3-invisible = 1.
    pushbutton4-invisible = 1.
  elseif pushbutton2 = 'X'.
    "make other 3 buttons invisible as the block before
  Endif.
  Modify screen.  
Endloop.

Hope it helps.

Regards,

Gilberto Li

Former Member
0 Kudos

I found it out on net,v have to add a word "excluding" n tat the particular button hides

Former Member
0 Kudos

hi

i think you are relating to pf-status...if you have 3 buttons, and you want to hide two when you press the third, you can do like this..

SET PF-STATUS 'STA3' EXCLUDING itab.

this sets the pf-status STA3 excluding the other pf-statuses that's appended in itab.