Application Development 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: 

problem in selecting rows in ALV Grid

Former Member
0 Kudos
61

Hi All,

I am doing a ALV Grid program using Classes. when i select 2 rows from that grid and executes,

it going next screen. Again when i am using back button and selecting same rows or different rows from teh same Grid and executing it is not retrieving any rows. In dedugger it is showing that the there is no selection of rows.

Please suggest me the solution.

Thanks in advance,

Regards,

Balaji.

2 REPLIES 2

Former Member
0 Kudos
41

Check whether you clear any values or not.

How do u import row and column.

Post your code please.....

Thanks,

Chaithanya.

0 Kudos
41

Hi chaitanya,

I am not clearing any code.

please find the code...

CALL METHOD g_grid1->get_selected_rows

IMPORTING

et_index_rows = w_lvc_t_row_1.

IF w_lvc_t_row_1 IS INITIAL.

MESSAGE e004(zmsg).

ELSE.

CLEAR it_memis1-signal.

REFRESH po_memis1.

LOOP AT w_lvc_t_row_1 INTO w_lvc_s_row_1.

READ TABLE it_memis1 INTO po_memis1 INDEX w_lvc_s_row_1-index.

SELECT SINGLE name INTO v_nam FROM icon WHERE id = po_memis1-signal.

IF v_nam = 'ICON_LED_GREEN' OR v_nam = 'ICON_LED_YELLOW'.

APPEND po_memis1.

CLEAR po_memis1-signal.

ELSE.

MESSAGE 'This item Cannot be processed due to errors' TYPE 'E'.

ENDIF.

ENDLOOP.

ENDIF.

regards,

Balaji.