05-08-2006 3:45 PM
Hi everyone,
Can anyone let me how to change the menu items in a GUI status dynamically.
I have three buttons(create, display, change) in the menu. Depending on the selection on the previous screen one of them should be invisible or turned off.
i.e. if I click on create, in the menu of the next screen create should be invisible or inactive and same for the other two options also...
Can anyone help me out please.
Thanks and Regards,
Bhargava Kavuri.
05-08-2006 4:06 PM
Hi Bhargava
You can create 2 PF status and according to your requiremnet you can set it.
if <condition>
set pf-status 'PF1'.
else.
set pf-status 'PF2'.
endif.
Regards
Naresh
05-08-2006 4:12 PM
You can use a single PF status with conditions.
data : itab type table of sy-ucomm.
if <create mode>.
populate itab with function codes of change and display.
set pf-status 'XXX' excluding itab.
elseif <change mode>.
populate itab with function codes of create and display.
set pf-status 'XXX' excluding itab.
elseif <display mode>.
populate itab with function codes of create and change.
set pf-status 'XXX' excluding itab.
endif.
05-08-2006 4:13 PM
Collect all f codes (for example 'BACK' for the back button) into an internal table itab.
Then use the following statement
Set PF-status excluding itab.
Only those menu items whose function codes are not in the table itab will be displayed.
05-08-2006 4:32 PM