Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: which row selected first in table control

$
0
0

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

 

screen_att.png

 

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.


Viewing all articles
Browse latest Browse all 10482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>