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

TC Insert for specific record

Former Member
0 Likes
424

hi masters,

i have a table control where i have to insert accrding to the number if i can put in this way.

for ex : i have 10 records in my TC so when the user clicks on the 5th record and clicks on insert button so i should insert the record after the 5th record....i have tried but i seems to be loosing the logic.

can i hav some info from you people so that i would get the solution.

thanks in advance.

pasala.

2 REPLIES 2
Read only

Noorie
Active Participant
0 Likes
398

Hi,

in your table control, When you select the fifth line then get the index of that line and

when Insert used insert itab index line + 1 where line is the index of 5th record.

or.

you can assing and serial number internally like 1,2,3,...

when u select 5th line and insert serial number of the new inserted will be also 5, keep you itab sorted by serial number.

hope this may be helpfull to you

Read only

Former Member
0 Likes
398

thank you .