‎2007 Sep 20 5:25 PM
Hi,
I have an issue like display the list in alv.I used reuse_alv_list_display.for this i used top_of_page event in above function module.Now i have to use at user command also for push buttons.so where can i call that event .
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
‎2007 Sep 20 5:27 PM
Check this link with sample code, it should help.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_ucomm.htm
‎2007 Sep 20 6:45 PM
Hi,
You can use this code for your requirement
FORM f_drill USING lv_ucomm ls_selfield LIKE gs_selfield.
CASE lv_ucomm.
WHEN '&IC1'.
READ TABLE t_data_final INDEX ls_selfield-tabindex.
IF sy-subrc = 0.
gv_flag = 0.
PERFORM f_drilldown_to_glacct USING ls_selfield.
ELSE.
MESSAGE e000 WITH 'Function Not available'.
ENDIF.
WHEN 'GL'.
PERFORM f_display_noglrecords.
WHEN 'ZERO'.
PERFORM f_display_zerobalancegl.
WHEN OTHERS.
ENDCASE.
This for F_drill shoud be passed to export parameters of REUSE_ALV_GRID_DISPLAY
i_callback_user_command = 'F_DRILL'
For each perform u need to write your logic what it has to do?
Thanks,
Sriram Ponna.