07-11-2007 3:39 PM
Hi All,
I have to disable the created ICON(any one) on the application tool bar.
Is it possible.
if so helpme.
Thanks&Regards,
Padma.
07-11-2007 3:47 PM
Yes you can do that..
Say you want to disable SAVE icon for one condition
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = <b>'PF_STATUS'</b>
FORM <b>PF_STATUS</b> using RT_EXTAB TYPE SLIS_T_EXTAB.
IF V_number eq 1.
<b>SET PF-STATUS 'STANDARD1' EXCLUDING 'SAVE'.</b>
else.
SET PF-STATUS 'STANDARD1'
ENDFORM. "PF_STATUS
07-11-2007 3:47 PM
Yes you can do that..
Say you want to disable SAVE icon for one condition
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = <b>'PF_STATUS'</b>
FORM <b>PF_STATUS</b> using RT_EXTAB TYPE SLIS_T_EXTAB.
IF V_number eq 1.
<b>SET PF-STATUS 'STANDARD1' EXCLUDING 'SAVE'.</b>
else.
SET PF-STATUS 'STANDARD1'
ENDFORM. "PF_STATUS
07-11-2007 3:52 PM
07-11-2007 3:54 PM
Hi Padmasri,
This is just a variable used for condition
I want to explain that you can disable a button on application tool based on one condition , you can ignore that , just use the EXCLUDING option to disable a button
07-11-2007 4:00 PM
hi chandrasekhar,
if am using excluding then the iCON is disappearing but my requirement is to disable the ICON.
Thanks&Regards,
Padma.
07-11-2007 4:08 PM
Hi Padmasri,
You need to do one additional setting for that to just disable instead of removing that
chk this solution by Rich from other thread
Go into your gui status by double clicking on the status name, click Go To --> Attributes --> PushButton Assignment. You will get a dialog box, select the radiobutton for "Display All". Save and activate. Now instead of the buttons being removed, they will be greyed out.
also you need to use the EXCLUDING option as mentioned in my earlier thread
07-11-2007 4:22 PM
Hi chandrasekhar,
Thanks for your immediate response and problemis resolved.
Thanks&Regards,
Padma.
07-11-2007 3:48 PM
in se 80 enter your program /report name.
check folder GUI status there my be 2-3 in that check each one & check Application tool bar check the icon remove the FCODE then icon may not appear in your screen & even it appears then will not work.(this should be last option check if anything else is available)
reward points if helpful.
07-11-2007 3:50 PM
hi,
go to GUU status and remove the icon you want and activate it .
Siva
07-11-2007 3:52 PM
Hi Padma,
Check for the GUI Status that is being used in the screen that you are talking about.
Now open that in se80 and delete the FCODE for the required icon which you want to invalidate.
<b>Reward points if this helps,</b>
Kiran
07-11-2007 3:58 PM
See the sample below
CALL METHOD cl_gui_toolbar=>fill_buttons_data_table
EXPORTING
fcode = 'DISABLE'
icon = ''
butn_type = cntb_btype_group
text = 'Disable'
quickinfo = 'Disable print button'
checked = ' '
CHANGING
data_table = gi_button_group.