02-06-2007 5:02 PM
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
02-06-2007 5:05 PM
when u press the push button....
loop at screen.
if pushbutton = 'X'.
pushbutton-invisible = 0.
modify screen.
endif.
endloop.
02-06-2007 5:05 PM
when u press the push button....
loop at screen.
if pushbutton = 'X'.
pushbutton-invisible = 0.
modify screen.
endif.
endloop.
02-06-2007 5:14 PM
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
02-10-2007 4:18 AM
I found it out on net,v have to add a word "excluding" n tat the particular button hides
02-10-2007 5:51 AM
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.