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- GRID

Former Member
0 Likes
424

Hi,

I have to display 2 grids .The second grid should be displayed on hitting 'Enter' after the display of the first grid.

How to do it..Kindly help..

Thanks..

Renu,

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = ws_repid

i_callback_pf_status_set = 'GUI_STAT'

i_callback_user_command = 'STAT'

is_layout = gs_layout

it_fieldcat = i_fieldcat[]

TABLES

t_outtab = i_zaw_pol_plan.

FORM stat USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.

DATA selfield TYPE slis_selfield.

CASE r_ucomm.

**--When EnterButton Pressed

WHEN '&NTE'.

call your second grid.......

ENDCASE.

ENDFORM.

3 REPLIES 3
Read only

Former Member
0 Likes
409

hi

if u r using case sy-ucomm, do this,

CASE SY-UCOMM.

WHEN ' '.

(write ur code for second alv)

ENDCASE.

Hope this helps u,

Regards,

Arunsri

Read only

0 Likes
409

HI

case sy-ucomm.

when 'ENTR'.

<statements>

endcase.

Read only

Former Member
0 Likes
409

Renu,

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = ws_repid

i_callback_pf_status_set = 'GUI_STAT'

i_callback_user_command = 'STAT'

is_layout = gs_layout

it_fieldcat = i_fieldcat[]

TABLES

t_outtab = i_zaw_pol_plan.

FORM stat USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.

DATA selfield TYPE slis_selfield.

CASE r_ucomm.

**--When EnterButton Pressed

WHEN '&NTE'.

call your second grid.......

ENDCASE.

ENDFORM.