Skip to Content
0
Jul 10, 2010 at 07:33 AM

PF Status not appearing for REUSE_ALV_GRID_DISPLAY

822 Views

Hi,

I am not able to display PF status from REUSE_ALV_GRID_DISPLAY. I have gone through various codes in SDN but of no help. I think I am doing something wrong. PLZ go thru my below code and let me know where am I doing it incorrectly:

data: lf_events   TYPE slis_t_event,
      l_status TYPE slis_formname VALUE 'PF_STATUS_BTCS'.

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING
*   I_INTERFACE_CHECK                 = ' '
*   I_BYPASSING_BUFFER                = ' '
*   I_BUFFER_ACTIVE                   = ' '
*   I_CALLBACK_PROGRAM                = sy-repid
       i_callback_pf_status_set          = l_status
       i_callback_user_command           = 'USER_COMMAND_1'

FORM eventtab_build USING   u_lf_events TYPE slis_t_event.

  DATA: ls_event TYPE slis_alv_event.

  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
            i_list_type = 0
       IMPORTING
            et_events   = u_lf_events.

  READ TABLE u_lf_events WITH KEY name =  slis_ev_pf_status_set
                           INTO ls_event.
  IF sy-subrc = 0.
    MOVE l_status TO ls_event-form.
    APPEND ls_event TO u_lf_events.
  ENDIF.

ENDFORM.

FORM pf_status_btcs USING rt_extab TYPE slis_t_extab.
  DELETE RT_extab WHERE fcode = '&RNT_PREV'.
  SET PF-STATUS 'PF_STATUS_BTCS' EXCLUDING rt_extab.
ENDFORM.                    "PF_STAT_BTCS