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

Copy - paste functionality in table controls

Former Member
0 Likes
967

Hi,

Please send me a sample code to copy a row of table control and to paste it in the row selected.

This is very urgent

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
720

Hi,

you can use sy-ucomm = 'PICK' in the table control and then name the table control field names and your screen field names the same..

sap takes care of transfering the data from table control field to your field name in your screen if you give the same name to both..

hope it helps..

Award marks if it helps

4 REPLIES 4
Read only

Former Member
0 Likes
721

Hi,

you can use sy-ucomm = 'PICK' in the table control and then name the table control field names and your screen field names the same..

sap takes care of transfering the data from table control field to your field name in your screen if you give the same name to both..

hope it helps..

Award marks if it helps

Read only

Former Member
0 Likes
720

Try this out,

1. Read the table control with the record having selection flag as 'X' (the selection indicator is the name you give to the selection indicator of the table control in screen painter).

2. Move the read valuse into a workarea.

3. Read the selected row of the target table control (same as step 1) and MODIFY / APPEND the record with corresponding values.

Naveen.

Read only

Former Member
0 Likes
720

Hi Lakshmi,

1. An extra column should be provided in your table control which indicates the selected line.

2. the record which has this col set is chosen and moved to a workarea

3. Now edit / append this record to the new table based on your conditions

Hope this solves your problem

PS : Please reward points if solution is helpful

Read only

Former Member
0 Likes
720

Closed