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

PUSHBUTTON

Former Member
0 Likes
1,027

Hi guys,

how do i hide a pushbutton from a selection screen?

kind regards,

9 REPLIES 9
Read only

Former Member
0 Likes
993

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.

Read only

0 Likes
993

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.

Read only

0 Likes
993

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

.

Read only

Former Member
0 Likes
993

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.

Read only

nikhilkup
Active Participant
0 Likes
993

Use 'No-DISPLAY' addition to hide the parameter in selection screen

parameters : NUMBER(4) TYPE P DECIMALS 2 no-display.

Read only

Former Member
0 Likes
993

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

Read only

Former Member
0 Likes
993

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.

Read only

Former Member
0 Likes
993

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.

Read only

Former Member
0 Likes
993

LOOP AT SCREEN.

IF SCREEN-NAME = 'PUSH' AND PUSH = SPACE.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.