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

HIDE - UNHIDE button on parrticular condition

Former Member
0 Likes
1,045

i have created one screen on which 4 buttons are thr.....now i want tat 2 buttons shoud be shown on the screen at runtime when particular condition is meet otherwise they will remain hide or if thr is any particular error mesage is generated tat button should be shown on the screen.....

i have created one screen on which 4 buttons are thr.....now i want tat 2 buttons shoud be shown on the screen at runtime when particular condition is meet otherwise they will remain hide or if thr is any particular error mesage is generated tat button should be shown on the screen.....

3 REPLIES 3
Read only

Former Member
0 Likes
777

Hi

if its a report program with selection screen

u can do like this

At selection-screen ouput.

loop at screen.

if screen-field = 'fieldname'.

screen-visible = 0.

modify screen.

endif.

implement the logic

if its a dialog program

then write the module in PBO

module ztest.

loop at screen.

if screen-field = 'fieldname'.

screen-visible = 0.

modify screen.

endif.

endmodule.

Regs

Manas Ranjan Panda

Read only

Former Member
0 Likes
777

is the screen a selection screen or a normal screen using module pool.

santhosh

Read only

gopi_narendra
Active Contributor
0 Likes
777

in the PBO of the screen just write this

loop at screen.

if screen-name = 'fieldname' or

screen-name = 'fieldname2'.

screen-visible = 0.

modify screen.

endif.

endloop.

Regards

- Gopi