Application Development and Automation 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: 
Read only

TABLE CONTROL

Former Member
0 Likes
477

HI,

CAN ANYONE KONOW HOW TO GET WHICH IS THE CURRENT SELECTED LINE / ROW IN TABLE CONTROL BY THE USER.

ALSO ON WHICH COLUMN USER PRESS SINGLE / DOUBLE CLICK

I WANT TO TRAP THAT AND WANT TO WORK ON THAT COL. DATA.

THANKS,

MUKESH

5 REPLIES 5
Read only

anversha_s
Active Contributor
0 Likes
450

hi,

chk these examples on table control-very hlpful

demo_dynpro_tabcont_loop

demo_dynpro_tabcont_loop_at

RSDEMO_TABLE_CONTROL

Regards

anver

Read only

Former Member
0 Likes
450

Hi Mukesh,

Try,

READ LINE syntax to track user action on the list, e.g. current selected line/ row.

Hope this helps.

Regards,

Patrick

Read only

Former Member
0 Likes
450

Hi ,

Use <b>GET CURSOR FIELD < fname> LINE <ln> .</b>

It will capture the current cursor position .

Regards ,

Senthil

Read only

gopi_narendra
Active Contributor
0 Likes
450

hi mukesh,

in SE51 table control property u have a property w/SelColumn.

give in some name to that (suppose ROW_SEL)

and to the internal table of ur table control add a field

chk(1) type c.

now in PAI of the table control module.

if row_sel = 'X'.

itab-chk = 'X'

else.

itab-chk = ' '.

endif.

....

....

....

....

modify itab from lt_itab index tabc-current_line.

now if u wnt some user action for this.

in the user command.write this

loop at itab where chk = 'X'. ( this gives the selected row items)

write ur code here.......

endloop.

Hope this gives u a basic idea of what u required.

Regards

- Gopi

Read only

Former Member
0 Likes
450

hi,

data: v_fnam(10), v_fval(10).

................................

module....

case sy-ucomm

when 'DISP'.

refresh itab.

get cursor filed v_fnam value v_fval

select...... or

read.....

endcase.

this is the way how it should work like you have to first select the filed with v_fname some variable and then u have to get that value in that particular field with v_fval...

I think it would be helpful for you

Regards,

GNK