Application Development 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: 

appending the data to existing table

Former Member
0 Kudos

i want to append the data to a existing internal table which already has some data in it i just added new field to it now i want to populate tht field.

2 REPLIES 2

Former Member
0 Kudos

Hello,

Do like this.


loop at itab.
itab-newfeild = 'New Value'.
modify itab
endloop.

Vasanth

Former Member
0 Kudos

data : begin of itab occurs 0,

ID(4) type c,

name(20) type c,

date like sy-datum,

end of itab.

itab-ID = '1234'.

itab-name = 'ravi'.

itab-date = '20070102'.

append itab.

clear itab.

itab-ID = '8934'.

itab-name = 'suresh'.

append itab.

clear itab.

loop at itab where ID = '8934'.

itab-date = '20060205'.

modify itab.

endloop.

Proceed like this.

Regards

Vasu