07-29-2009 6:35 AM
Dear friends!!!
i have a specific requirement with regard to ALV in t-code VA02....
follow this please t-code VA02 -> issue ouput to -> select a profile (message type) and click print Preview. The ALV is displayed. I need to add two buttons select all and deselect all in this ALV..... but the problem is this ALV is displayed with a call to a standard report RVADOR01 which we have modified for our use..
here the FM
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
the value of sy-repid will always be the calling prgm which is SAPLKKBL so i cannot set my own pf-status.
could somebody please tell me wht do ??? or if this is possible???
i hope i explained my problem quiet clearly..
07-30-2009 6:52 AM
Your program should be like this:
GT_REPID = SY-REPID.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = GT_REPID
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
................................
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'MY_STATUS' EXCLUDING RT_EXTAB.
ENDFORM.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE R_UCOMM.
WHEN 'BACK'. .............
WHEN 'SAVE'. ...............
ENDCASE.
ENDFORM.
So u should insert a break-point in the USER_COMAND to check if your ok_code is working fine.
Regards
Saurabh Goel