07-10-2010 8:33 AM
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
07-10-2010 9:36 AM
What is yourt exact problem ?
No buttons getting displayed ?
DELETE RT_extab WHERE fcode = '&RNT_PREV'. "Remove & and try.
07-10-2010 9:36 AM
What is yourt exact problem ?
No buttons getting displayed ?
DELETE RT_extab WHERE fcode = '&RNT_PREV'. "Remove & and try.
07-10-2010 9:39 AM
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.
07-10-2010 9:46 AM
07-10-2010 9:47 AM
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
07-10-2010 12:31 PM
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
07-10-2010 12:44 PM
thanks, SY-REPID was the criminal. I really never realized it can be so very important. Thanks again