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

alv

Former Member
0 Likes
298

when i place a command button alv report where shd the code to be written

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
278

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

2 REPLIES 2
Read only

Former Member
0 Likes
279

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
278

If you are using REUSE library, you have to pass a USER_COMMAND form to wrok with these.

Regards