2008 Jun 08 2:45 PM
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.
2008 Jun 08 6:02 PM
Check whether you clear any values or not.
How do u import row and column.
Post your code please.....
Thanks,
Chaithanya.
2008 Jun 09 8:26 AM
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.