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: 

De-activating Icons on Application Toolbar

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

muhammed_nishad
Participant
0 Kudos

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

MarcinPciak
Active Contributor
0 Kudos

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

0 Kudos

Thank you.