Skip to Content
0
Former Member
Aug 22, 2011 at 03:32 PM

Toolbar in ALV

21 Views

Hello Abapers . i am not able to see toolbar in my alv grid . I am not using Object oriented method . Please advice.

My code :- for alv ..

TYPE-POOLS : slis.
DATA:  wa_fieldcat TYPE slis_fieldcat_alv,
       it_fieldcat TYPE slis_t_fieldcat_alv,
       wa_event TYPE slis_alv_event,
       it_events TYPE slis_t_event,
       wa_line TYPE slis_listheader,
       it_line TYPE slis_t_listheader,
       wa_sort TYPE slis_sortinfo_alv,
       it_sort TYPE slis_t_sortinfo_alv.

<<code for selection screen and select form>>

FORM BUILD_CAT.

  wa_fieldcat-fieldname = 'BUKRS'.
  wa_fieldcat-ref_tabname = 'ZPAM_BB_V1'.
  wa_fieldcat-outputlen = 6.
  wa_fieldcat-tabname = 'INT_TAB'.
  wa_fieldcat-seltext_m = 'BUKRS'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.

<<following 5 such fields>>

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = sy-repid
  i_callback_pf_status_set = 'PF_STATUS'
     i_callback_user_command  = 'USER_COMMAND'
      i_grid_title             = 'GOODS MOVEMENT'

      it_fieldcat              = It_fieldcat
      it_sort                  = It_sort

    TABLES
      t_outtab                 = INT_TAB
    EXCEPTIONS
      program_error      = 1
      OTHERS             = 2.
  IF sy-subrc <> 0.

  ENDIF.

<Added code tags>

Edited by: Suhas Saha on Aug 22, 2011 9:25 PM