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: 

Modifying the GUI status Dynamically

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

former_member188685
Active Contributor
0 Kudos

Hi,

check this thread...

Regards

vijay