‎2007 Mar 31 12:26 PM
when i place a command button alv report where shd the code to be written
‎2007 Mar 31 12:30 PM
Hi, Rasheed salman
If you are calling fuction 'REUSE_ALV_GRID_DISPLAY' or 'REUSE_LIST_GRID_DISPLAY', you could use parameter 'i_callback_user_command'.
like this.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_pf_status_set = 'PF-STATUS'
i_callback_user_command = <b>'USER-COMMAND'</b>
i_callback_top_of_page = 'TOP-OF-PAGE'
is_layout = tbl_layout
it_fieldcat = tbl_fieldcat
it_sort = tbl_sort
it_events = tbl_events
i_grid_settings = gs_gridset
TABLES
t_outtab = itab.
and make subroutine 'USER-COMMAND'.
you could write down your code in it.
Best Regards
Kyung Woo, Nam
‎2007 Mar 31 12:30 PM
Hi, Rasheed salman
If you are calling fuction 'REUSE_ALV_GRID_DISPLAY' or 'REUSE_LIST_GRID_DISPLAY', you could use parameter 'i_callback_user_command'.
like this.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-cprog
i_callback_pf_status_set = 'PF-STATUS'
i_callback_user_command = <b>'USER-COMMAND'</b>
i_callback_top_of_page = 'TOP-OF-PAGE'
is_layout = tbl_layout
it_fieldcat = tbl_fieldcat
it_sort = tbl_sort
it_events = tbl_events
i_grid_settings = gs_gridset
TABLES
t_outtab = itab.
and make subroutine 'USER-COMMAND'.
you could write down your code in it.
Best Regards
Kyung Woo, Nam
‎2007 Mar 31 12:32 PM