07-24-2008 5:12 AM
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.
07-24-2008 5:14 AM
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
07-24-2008 5:44 AM
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