Tuesday, January 27, 2015

ABAP TIP Remove and inactivate buttons in application toolbar




Chapter 081
Remove and inactivate buttons in application toolbar
Source : http://abapjoy.blogspot.com
Lets see how to remove and inactivate buttons in application toolbar.
I have added 3 buttons like below. First button will be showed normally, second button will be removed and third button will be inactivated.

Click the  in upper screen, and Application toolbar attributes popup will be opened.

Since I want to add a control to individual button, I click the Function selection.
I have choose the button to be inactivated.

Now, I have written the source code to remove and inactivate the buttons.

REPORT  zabap_001.

CALL  SCREEN 100.
*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
  DATA lt_exclude like TABLE OF sy-ucomm.

  APPEND 'REMOVE' TO lt_exclude,
           'INACTIVE' TO lt_exclude.

  SET PF-STATUS 'STATUS100' EXCLUDING lt_exclude.



ENDMODULE.                 " STATUS_0100  OUTPUT

If you execute the program, you will be able to see that RMOVE button is removed and the INACTVIE button is inactivated.





No comments:

Post a Comment