Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

PF Status not appearing for REUSE_ALV_GRID_DISPLAY

agnihotro_sinha2
Active Contributor
0 Kudos

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


1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

What is yourt exact problem ?

No buttons getting displayed ?

DELETE RT_extab WHERE fcode = '&RNT_PREV'. "Remove & and try.

6 REPLIES 6

kesavadas_thekkillath
Active Contributor
0 Kudos

What is yourt exact problem ?

No buttons getting displayed ?

DELETE RT_extab WHERE fcode = '&RNT_PREV'. "Remove & and try.

0 Kudos

I tried that too. No buttons getting displayed. Neither the standard ones nor what I have created in the PF stattus.

I hv no clue where am I going wrong.

0 Kudos

Try uncommenting this

  • I_CALLBACK_PROGRAM = sy-repid

former_member536879
Active Contributor
0 Kudos

Hi ,

Can you give form Name straightly there with in the Capital letters In the Reuse griddisplay.

Activate your GUI in your program.

Then below write like this.

FORM SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.

SET PF-STATUS 'ZSTANDARD_FULLSCREEN'.

ENDFORM.

With Regards,

Sumodh.P

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

Keshav has already given the solution & let me explain the use of this I_CALLBACK_PROGRAM.

Inside the FM 'REUSE_ALV_GRID_DISPLAY' there is a dynamic call to this subroutine passed to I_CALLBACK_PF_STATUS_SET in program passed to I_CALLBACK_PROGRAM.

Also make sure that the GUI status 'PF_STATUS_BTCS' is defined for the program, you can check this in SE41.

BR,

Suhas

0 Kudos

thanks, SY-REPID was the criminal. I really never realized it can be so very important. Thanks again