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

Selecting Multiple cells in a table control

Former Member
0 Likes
3,401

Hey all,

I have a requirement where i need to select multiple cells (and not multiple rows) from different row and columns of the table control. Is it possible?? If yes how?? I have attached the screen short of my requirement.

In second case what if all the cells have checkbox in it, is it possile to select multiple cells in this scenario too??

Thanks in advance. Your efforts and answers will be vry much appreciated.

Regards.

6 REPLIES 6
Read only

gouravkumar64
Active Contributor
0 Likes
1,609

Hi,

Before some days same issue discussed in this thread.

http://scn.sap.com/thread/3401345

Check this ,it will help you.

Thanks

Gourav.

Read only

0 Likes
1,609

Hi Kumar,

Thanks for your reply.The link you suggest shows how to select multiple row which i guess i know. My requirement is to select multiple cells (NOT ROWS), randomly from table control. Please suggest some clues to solve it.

Regards.

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,609

Hi,

Have you consider using CL_GUI_ALV_GRID ?

if you can you will be able to use :

GET_SELECTED_CELLS

GET_SELECTED_CELLS_ID

GET_SELECTED_ROWS

See program BCALV_TEST_GRID_INDEX

Regards.

Read only

0 Likes
1,609

Hi Eitan,

Thanks Eitan for your reply. The program name you sent is very useful in case i am using Alv Grid and i want to thanks you again for it. But actually i want to implement the same concept in Table control(Module pool). I don't even know if it is possible.Looking for some insight from you.

Regards

Read only

0 Likes
1,609

Hi,

 

I always use CL_GUI_ALV_GRID for full screen entry.

I never bother with "table control" .

Are you maintaining an existing program ?

If not what stopping you for using CL_GUI_ALV_GRID ?

Regards.

Read only

Former Member
0 Likes
1,609

having check boxes in all the columns and rows would fix your problem. That way, you can only ask user to check/uncheck the boxes as per his need and get the data in internal table.

If you are not using check boxes, and you need to do this for data inputs, I don't think it is possible in table control.