Application Development 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: 

hoe to disable 2 buttond from the GUI status during run time.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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.