hi
REFRESH gt_selected_rows.
CALL METHOD g_alv->get_selected_rows
IMPORTING et_index_rows = gt_selected_rows.
IF NOT gt_selected_rows[] IS INITIAL.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
textline1 = text-114
titel = text-115 "#EC NOTEXT
start_column = 25
start_row = 6
cancel_display = ''
IMPORTING
answer = lv_flag.
IF lv_flag EQ 'J'.
PERFORM selected_rows .
ELSE.
MESSAGE WHEN NO LINES SELECTED!!!
MESSAGE i113(z2).
ENDIF.
in this code my get_selected_row FM is gettin value onle once.Being in the same screen if i again select the rows the value returned by the FM is initial.....
wat should i do...
Neha ,
Your problem is solved I feel
Just change this code .
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK' .
LEAVE PROGRAM.
********************Comment the code .
WHEN 'RESET'. -
*************End comment
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
ENDIF.
ENDIF. "IF gt_selected_rows[] IS INITIAL
Now when you have displayed the ALV GRID
AFTER that
write this code .
SET HANDLER gv_event_handler->handle_user_command FOR g_alv.
so the solution you have code set handlet only once.
and in the method user_command
check e_ucomm = 'RESET'.
Try this it will work.
Please reward if useful.
Hi,
You might ahve selected only one row from the ALV.
MAke sure whether you are using multiple selection of rows in ALV.
Add a comment