2006 Nov 07 10:43 AM
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.....
2006 Nov 07 10:48 AM
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
2006 Nov 07 10:50 AM
is the screen a selection screen or a normal screen using module pool.
santhosh
2006 Nov 07 10:51 AM
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