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

how to select two rows from table control

Former Member
0 Likes
915

Hi All,

I'm working on module pool using table control. Now the data is displaying in the table control correctly.

User want to select more than 2 rows and need to process.

How we can identiy two or more than that row what ever user selected. Pls suggest me.

Thank You.

ANu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
869

hi Anitha

Use column selection option in table control and check the conation like.

 
loop at <itab> where col_select = 'X'. 
{conations}.... 
modify <itab>. 
endloop. 

when user select multiple rows then automatic col_select value internalizing into 'X'.

hope its helps you.

Regards,

Abhilash

7 REPLIES 7
Read only

Former Member
0 Likes
869

Hi,

Perform a search before posting please...

regards,

Read only

Former Member
0 Likes
869

Hi Anitha,

Have a look at the Demo Table Control programs. Debug them carefully.

DEMO_DYNPRO_TABCONT_LOOP Table Control with LOOP - ENDLOOP

DEMO_DYNPRO_TABCONT_LOOP_AT Table Control with LOOP AT ITAB

DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement

DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB

Hope this will help.

Regards

Abhii

Read only

0 Likes
869

Hi All,

Thank you for your help. This link helped me a lot. :

http://www.sapdev.co.uk/dialog/tabcontrol/tc_mark.htm

Now need small help. i want to place the cursor in editable field in table control.

Pls help to how to proceed.

Thank You,

Anu.

Read only

0 Likes
869

hi ,

Use set cursor field .

regards

Deepak.

Read only

0 Likes
869

Hi Anitha,

Go through the below Link

Use the Row Selection part for your purpose and proceed further

Cheerz

Ram

Read only

0 Likes
869

Hi Anitha,

At PBO you can set the cursor on a specific field of a specific row of a table control.

SET CURSOR FIELD f LINE lin .

Regards

Abhii

Read only

Former Member
0 Likes
870

hi Anitha

Use column selection option in table control and check the conation like.

 
loop at <itab> where col_select = 'X'. 
{conations}.... 
modify <itab>. 
endloop. 

when user select multiple rows then automatic col_select value internalizing into 'X'.

hope its helps you.

Regards,

Abhilash