‎2009 Aug 13 4:27 PM
Hi guys,
how do i hide a pushbutton from a selection screen?
kind regards,
‎2009 Aug 13 4:42 PM
Hi,
You can hide a parameter of a selection screen by setting screen-active to 0.Eg:
PARAMETERS : p_grpb1(2) MODIF ID B.
PARAMETERS: p_A RADIOBUTTON GROUP rad1 ,
p_tB RADIOBUTTON GROUP rad1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT screen.
IF p_actA = 'X'.
IF screen-group1 = 'B'.
screen-active = 0.
ENDIF.
Regards,
Sana.
‎2009 Aug 13 4:47 PM
You are correct, thanks for your reply but this button is from an include an its code is as follows.
SELECTION-SCREEN PUSHBUTTON 73(5) text-013 USER-COMMAND clse
FOR TABLE diqmel.
I dont want it to show on the selection.
‎2009 Aug 13 5:10 PM
You can still do it even if it is in an include.
LOOP AT screen.
CHECK SCREEN-NAME = text-013. (or whatever the actual value of this text symbol is).
screen-active = 0.
MODIFY screen.
ENDLOOP.
‎2009 Aug 17 10:51 AM
Hi,
Include is nothing but modularizing program, so you can do the changes in selection-screen, irrespective if it is used in any include.
Because when the program will be executed the selection-screen will be common.
Regards,
Sana.
‎2009 Aug 17 12:24 PM
Use 'No-DISPLAY' addition to hide the parameter in selection screen
parameters : NUMBER(4) TYPE P DECIMALS 2 no-display.
‎2009 Aug 17 12:45 PM
hiii,
In the gui status, you must make a change.
Go into your gui-status. > Click Go To, Attributes-> Pushbutton Assignment, Now choose the radiobutton for "Display All", save and activate.
You still will use the EXCLUDING extension of the SET PF-STATUS statement, except now, they will be greyed out and not invisible.
rgrds,
Shweta
‎2009 Aug 17 12:58 PM
by using the event of at selection-screen output.to hide the button
at selection-screen output.
loop at screen.
if p_cda = '' and screen-group1 = 'BSG'.
screen-input = 0.
modify screen.
endif.
endloop.
‎2009 Aug 17 1:07 PM
by using the event of at selection-screen output.to hide the button
at selection-screen output.
loop at screen.
if p_cda = '' and screen-group1 = 'BSG'.
screen-input = 0.
modify screen.
endif.
endloop.
‎2009 Aug 17 1:10 PM
LOOP AT SCREEN.
IF SCREEN-NAME = 'PUSH' AND PUSH = SPACE.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.