Thursday, February 10, 2011

Remove execute(F8) button from standard application toolbar

If your program has its own button to control any events. Then you no need the Execute button anymore. To prevent the error as "Selection screen XXXXX 1000 was not called using CALL SELECTION-SCREEN" occurred. Then we should to remove it.

add code to remove button ONLI as below,

DATA GT_EXCLUDE TYPE TABLE OF RSEXFCODE WITH HEADER LINE.
 
INITIALIZATION.
  T_EXCLUDE-FCODE  = 'ONLI'.
  APPEND T_EXCLUDE.
 
AT SELECTION-SCREEN OUTPUT.
 
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
       EXPORTING
            P_STATUS  = '%_00'
            P_PROGRAM = 'RSSYSTDB'
       TABLES
            P_EXCLUDE = T_EXCLUDE[].



Before
After

Hope it helps.

1 comment: