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: 

Alv

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

10 REPLIES 10

Former Member
0 Kudos

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

0 Kudos

hi chandrasekhar,

here v_number is what???

0 Kudos

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

0 Kudos

hi chandrasekhar,

if am using excluding then the iCON is disappearing but my requirement is to disable the ICON.

Thanks&Regards,

Padma.

0 Kudos

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

0 Kudos

Hi chandrasekhar,

Thanks for your immediate response and problemis resolved.

Thanks&Regards,

Padma.

Former Member
0 Kudos

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.

Former Member
0 Kudos

hi,

go to GUU status and remove the icon you want and activate it .

Siva

Former Member
0 Kudos

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

Former Member
0 Kudos

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.