Skip to Content
0
Former Member
Jan 17, 2012 at 06:16 PM

Execute button in ALV

734 Views

Hi,

I am creating an execute button in my ALV report output.

I have created a z status named ZSTANDARD_FULLSCREEN (a copy of standard_fullscreen) through se41 and added the execute button named BDC. While in coding i have made the following changes

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM     = SY-REPID
      I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
      I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
      I_GRID_TITLE           = 'GENERATE DISCONNECTION ORDERS'
      IS_LAYOUT              = WA_LAYOUT
      IT_FIELDCAT            = I_FCAT  "FIELDCAT
      I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

      IT_SORT                = I_SORT[]
*      IT_EXCLUDING  = IT_MENU

    TABLES
      T_OUTTAB               = I_FINAL.


      DATA: RS_SELFIELD TYPE SLIS_SELFIELD.
.
      SET PF-STATUS 'ZSTANDARD_FULLSCREEN'.

      AT USER-COMMAND.
      IF SYUCOMM = 'BDC'.
      EXIT.

But the execute button is still not coming. I have read almost all the post related to this topic but none of them suffice. Please help.

Added code tags

Edited by: Rob Burbank on Jan 17, 2012 1:30 PM