s/m Abdul,
Declare ABAP variable to store line selection indicator.
DATA: MARK TYPE C.
In your internal table also keep a field as SEL
Now in the Screen
In the PAI.
PROCESS AFTER INPUT.
loop at itab.
module update_table.
endloop.
Now insert the following ABAP code into this PAI module!
*&---------------------------------------------------------------------*
*& Module update_table INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module update_table input.
read table itab into wa_itab index tc100-CURRENT_LINE.
wa_itab-SEL = mark.
modify itab from wa_itab index tc100-CURRENT_LINE.
endmodule. " update_table INPUT
I have given for both Single as well as Multi Select.
You can read the table itab where sel = 'X' this will give you the first selected record.