04-07-2009 7:05 PM
Hi,
I have a requirement to add buttons in the application
tool bar. I have added 2 buttons in the appln tool bar.
Depending on condition, i will have to show either button1
or button2. For some conditions, i will have to hide one
or both buttons.
I can get this logic with more than 1 gui status. I want to know
that how can i hide the buttons in the application tool bar dynamically
in the code basing on some condition for a single GUI status.
Thanks in Advance,
Prasad
04-07-2009 7:19 PM
HI,
Use this statement..
DATA fcode TYPE TABLE OF sy-ucomm.
REFRESH fcode.
IF g_flag EQ 'X'.
APPEND 'FCODE1' TO fcode.
SET PF-STATUS 'MENU' EXCLUDING fcode.
ELSE.
APPEND 'FCODE2' TO fcode.
SET PF-STATUS 'MENU' EXCLUDING fcode.
ENDIF.
04-07-2009 7:16 PM
04-07-2009 7:19 PM
HI,
Use this statement..
DATA fcode TYPE TABLE OF sy-ucomm.
REFRESH fcode.
IF g_flag EQ 'X'.
APPEND 'FCODE1' TO fcode.
SET PF-STATUS 'MENU' EXCLUDING fcode.
ELSE.
APPEND 'FCODE2' TO fcode.
SET PF-STATUS 'MENU' EXCLUDING fcode.
ENDIF.