Skip to Content
0
Apr 03, 2006 at 05:52 AM

REUSE_ALV_GRID & other GUI Status

44 Views

Hi,

i would like to have an additional button in the toolbar of an ALV Grid established via FM REUSE_ALV_GRID. So i copied the STANDARD Gui Status of SALV to my own program and modified it. The call looks as follows:

  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program      = alv_report_id
      i_callback_top_of_page  = 'ALV_HEADING'
      i_callback_user_command = 'ALV_USER_COMMAND'
      I_CALLBACK_PF_STATUS_SET = 'ALV_PF_STATUS_SET'
      is_layout               = alv_layout
      it_fieldcat             = it_fcat
      i_save                  = 'A'
      it_sort                 = it_alv_sort
      is_variant              = alv_variant
    TABLES
      t_outtab                = it_out
    EXCEPTIONS
      program_error           = 1
      OTHERS                  = 2.

Formroutine looks like

FORM alv_PF_STATUS_SET USING EXTAB TYPE SLIS_T_EXTAB.

  clear EXTAB[].

  SET PF-STATUS 'STANDARD'.


endform.

The form routine above is called cgecked with debugger, but my additional button is not shown. Did i forget something? Is there an example delevired by SAP? Unfortunately i cant paste my GUI status, but it is changed and activated.

Any ideas why the button is not shown?