‎2008 Mar 21 7:10 AM
hai ,
how can i dynamically add new rows in the middle of an internal table without affecting the values of other rows in the table
‎2008 Mar 21 10:30 AM
Hi,
use INSERT syntax specify the index...
insert wa INTO itab index 2.Cheers,
jose.
‎2008 Mar 21 10:30 AM
Hi,
use INSERT syntax specify the index...
insert wa INTO itab index 2.Cheers,
jose.
‎2008 Mar 21 11:26 AM
Hi Scorpio,
U can use INSERT STATEMENT for this.
INSERT wa_tab TO itab INDEX l_tabix.
If u dont specify INDEX then u will get dump, Because ABAP Run time dont know where to insert the record.
So get the exact position of where to insert the record and specify that in INDEX.
If u are not able to get the exact position there is one alternate solution.
First append the records. After appending all the records SORT the internal table based on your requirement. This will also serves ur requirement.
Thanks,
Vinod.