Application Development and Automation 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: 
Read only

user command in alv

Former Member
0 Likes
363

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

2 REPLIES 2
Read only

Former Member
0 Likes
345

Check this link with sample code, it should help.

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_ucomm.htm

Read only

Former Member
0 Likes
345

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.