12-13-2006 7:19 AM
Hi all,
I have to disable two buttons from the GUI status during run time.
set pf-status 'status' excluding 'SAVE'
above statement would disable the 'save' button but simulteniosly i have to disable 'change' button also.
can anybody guide me?
thanx in advance.
12-13-2006 11:11 AM
u can do this in this way also
just declare an internal table of type sy-ucomm like example
types : begin of ty_ucomm,
ucomm type sy-ucomm,
end of ty_ucomm.
data: it_tab type table of ty_comm,
wa_tab like line of it_tab.
wa_tab = 'code'.
append wa_tab to it_tab.
set pf-status 'ZSTATUS' excluding it_tab.
12-13-2006 9:48 AM
Append all the functions to a internal table of type UI_FUNCTIONS and then use that ITAB in place of SAVe.
set pf-status 'status' excluding ITAB.
See the example here
http://help.sap.com/saphelp_di471/helpdata/EN/9f/dba34635c111d1829f0000e829fbfe/content.htm
Regards,
Ravi
Note - Please mark all the helpful answers
Message was edited by:
Ravikumar Allampallam
12-13-2006 11:11 AM
u can do this in this way also
just declare an internal table of type sy-ucomm like example
types : begin of ty_ucomm,
ucomm type sy-ucomm,
end of ty_ucomm.
data: it_tab type table of ty_comm,
wa_tab like line of it_tab.
wa_tab = 'code'.
append wa_tab to it_tab.
set pf-status 'ZSTATUS' excluding it_tab.