07-27-2010 6:57 AM
Hi,
I want to de-activate the icons on the application tool bar without removing it.
I know a method to do this but it is not solving the issue. In the PBO, when setting the PF status, we can exclude the functions we do not need using SET PF-STATUS 'STATUS_0100' EXCLUDING fcode. But the issue in using this is, the icons on the standard toolbar are deactivated while those in the application toolbar are removed.
Pls. suggest me if there is anyother option to de-activate it.
Thanks in advance.
Niranchan.
07-27-2010 8:00 AM
Deactivating certain option in the toolbar is achieved the same way as removing it, but you have to change one option in the GUI status configuration.
To do so go to your GUI status -> from menu bar choose Goto -> Attributes -> Pushbutton assignment -> Select Display All -> activate your status and set it excluding certain option
SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
Now all excluded functions will not disappear but will stay inactive.
Regards
Marcin
07-27-2010 7:32 AM
You can go for LOOP AT SCREEN in PBO.
LOOP AT SCREEN.
CASE screen-name.
WHEN 'CREATE'. " Button Name
screen-input = 0.
MODIFY SCREEN.
WHEN 'CHANGE'.
screen-input = 0.
MODIFY SCREEN.
WHEN 'DISPLAY'.
screen-input = 1.
MODIFY SCREEN.
ENDCASE.
ENDLOOP.
Regards,
Nikhil V.Kumar
07-27-2010 7:40 AM
Hi,
if you are trying to exculde pf Fcodes you need to use Exclude in PBO.
You can create a Pf status for the screen . In the Pf status you have Application toolbar and you can add FCodes .
when it comes to programming,
1. In top include
data:
t_fcode type table of sy-ucomm.
2. In PBO of 9000 screen.
Module activepf --> append 'REFRESH' into t_fcode.
append 'SAVE into t_fcode.
module status--> SET PF-STATUS 'STAT' excluding t_fcode.
Otherwise youcan use
loop at screen.
if screen-name = 'REFRESh'.
screen-input = 0.
endif.
modify screen.
endloop.
Thankyou.
Muhammed Nishad
07-27-2010 8:00 AM
Deactivating certain option in the toolbar is achieved the same way as removing it, but you have to change one option in the GUI status configuration.
To do so go to your GUI status -> from menu bar choose Goto -> Attributes -> Pushbutton assignment -> Select Display All -> activate your status and set it excluding certain option
SET PF-STATUS 'STATUS_0100' EXCLUDING fcode.
Now all excluded functions will not disappear but will stay inactive.
Regards
Marcin
07-27-2010 8:47 AM