Skip to Content
0
Former Member
Oct 16, 2006 at 11:49 AM

ALV output problem : No MENU Bar & No STATUS Bar !

22 Views

Hi ,

I am not getting any buttons in Menu bar and Status bar

in my ALV output !

I have done the following in my code :

******

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

EXPORTING

i_list_type = 0

IMPORTING

et_events = gt_events

EXCEPTIONS

list_type_wrong = 1

OTHERS = 2.

  • read for getting the PF_STATUS_SET event

READ TABLE gt_events

WITH KEY name = slis_ev_pf_status_set INTO x_event.

  • provide the form name for PF_STATUS_SET event

  • in the events table

IF sy-subrc = 0.

MOVE c_pf_set_status TO x_event-form.

MODIFY gt_events FROM x_event INDEX sy-tabix.

ENDIF.

  • read for getting the USER_COMMAND event

READ TABLE gt_events

WITH KEY name = slis_ev_user_command INTO x_event.

  • provide the form name for USER_COMMAND event

  • in the events table

IF sy-subrc = 0.

MOVE 'USER_COMMAND' TO x_event-form.

MODIFY gt_events FROM x_event INDEX sy-tabix.

ENDIF.

******

*--Display report in ALV

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

it_fieldcat = lt_fieldcat

it_event = gt_events[]

i_grid_title = ld_title

i_callback_pf_status_set = 'PF_STATUS_SET'

i_callback_user_command = 'USER_COMMAND'

TABLES

t_outtab = gt_tab.

******

FORM pf_status_set USING rt_extab TYPE slis_t_extab.

DATA: rv_extab TYPE slis_extab.

CLEAR rt_extab.

MOVE 'DISPLAY' TO rv_extab-fcode.

APPEND rv_extab TO rt_extab.

SET PF-STATUS 'DISPLAY_LOG' EXCLUDING rt_extab.

ENDFORM.

******

Any comments ?

Thanks in advance,

Sandip.