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: 

Need to remove the Push Buttons on the Application Toolbar

Former Member
0 Kudos

I have two screens.

1st Sceen has Modify & display buttons on the Appllication Toolbar.

2nd scrren has Modify & Save buttons on the Appllication Toolbar.

Now when i click on Display button on first screen, 2nd screen should not show Modify & Save buttons. How ?

Note that the Pushbuttons are not on Screen. They are in Application Toolbar.

2 REPLIES 2

prasanth_kasturi
Active Contributor
0 Kudos

hi

use the following statement in the pf status of the second screen

data : begin of itab occurs 0,

fctcode(10) type c,

end of itab.

itab-fctcode = 'MODIFY' .

append itab.

itab-fctcode = 'SAVE'.

append itab.

SET PF-STATUS 'BASIC' EXCLUDING itab.

where BASIC is the PF status

regards

prasanth

naveen_inuganti2
Active Contributor
0 Kudos

Hi....

So you are coming to second screen through MODIFY or DISPLAY,

So there is must be a small change can appear in screen two... because of naming convention DISPLAY button is only for display....

And MODIFY can allow user to modify screen...

That CHANGE you have to utilize here.... It should always better way....

Write if condition in PBO of second screen exatly with that CHANGE....

>if <screen is like this>

> set pf-status '02 excluding 'MODIFY'.

> set pf-status '02 excluding 'SAVE'.

>else.

> set pf-status '02'.

>endif.

Try this....,

or

You can use this same logic for first screen buttons in PAI event of first screen.

Thanks,

Naveen.i