‎2009 Mar 06 7:32 AM
HI experts,
how can I remove a pushbutton during runtime from the screen?
if certain conditions are true than I have to remove the pushbuttons from displaying.
‎2009 Mar 06 8:48 AM
Hi,
Take the group1 for the textbox (i/o field) which need to be hidden on a certain condition as ABC using the attributes of the textbox.
Now use the code to hide the button on a cretain condition.
if <condition>. "condition as per your requirement
loop at screen.
if screen-group1 = 'ABC'. "group1 for i/o field defined in its attributes
screen-invisible = 1. "to hide the i/o field
endif.
modify screen.
endloop.
else. "if condition is not true then display i/o field
loop at screen.
if screen-group1 = 'ABC'. "group1 for i/o field defined in its attributes
screen-invisible = 0. "to display the i/o field
endif.
modify screen.
endloop.
endif.
Hope this helps you.
Regards,
Tarun
‎2009 Mar 06 7:36 AM
HI,
SET PF-STATUS <Status> EXLCUDING table_ucommand.
Check this link..
http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba42335c111d1829f0000e829fbfe/content.htm
‎2009 Mar 06 8:01 AM
It's working only if the pushbutton is on the status bar, but mine is under a table control, on the screen.
‎2009 Mar 06 8:26 AM
‎2009 Mar 06 8:49 AM
‎2009 Mar 06 8:48 AM
Hi,
Take the group1 for the textbox (i/o field) which need to be hidden on a certain condition as ABC using the attributes of the textbox.
Now use the code to hide the button on a cretain condition.
if <condition>. "condition as per your requirement
loop at screen.
if screen-group1 = 'ABC'. "group1 for i/o field defined in its attributes
screen-invisible = 1. "to hide the i/o field
endif.
modify screen.
endloop.
else. "if condition is not true then display i/o field
loop at screen.
if screen-group1 = 'ABC'. "group1 for i/o field defined in its attributes
screen-invisible = 0. "to display the i/o field
endif.
modify screen.
endloop.
endif.
Hope this helps you.
Regards,
Tarun
‎2009 Mar 06 8:49 AM