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 field statement problem.

Former Member
0 Likes
409

Hi all,

I am using tablecontrol to display data. If i display 10 records, the user scrolls the table he can view the data... everything works fine. but the problem is when he selects the first row and scrolls down, the 'field' statement in my flowlogic reads the first row and again when the user scrolls up (assume we are in the 4th row ) the 'field' statement reads the 4th row and not the first row and also my fisrt selected row becomes deselected. i dont want that to happen. How to make the 'field' statement to read the first row ?

my code :

loop at itm.

field it_itm-pick.

field it_itm-matnr.

module chage table.

endloop.

my requirement is to take the selected row and do calculation ?

thanks,

SIva

2 REPLIES 2
Read only

Former Member
0 Likes
376

Hi:

Read through its index

Regards

Shashi

Read only

Former Member
0 Likes
376

You can store the index of the row in a variable. In the PBO when you're looping on your control you can write back the index using the variable.

Edited by: mrwhite on Feb 24, 2009 3:55 PM