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

Internal Table Clarifications

Former Member
0 Likes
511

Hi All,

I have a small doubt in Internal table. Say I have an internal table itab[] with around 1000 entries in it. I want to set a particular field of the Internal table to the same value for all the 1000 entries in the internal table.

Apart from looping over the internal table is there any better way like modify all entries....and setting the field to a particular value or something like this.

Regards, Vinay

3 REPLIES 3
Read only

Former Member
0 Likes
485

Hi,

Its not possible.

Regards,

Madan.

Read only

Former Member
0 Likes
485

hi Vinay,

You can use MODIFY statement with where condition to achieve that ..

Regards,

Santosh

Read only

Former Member
0 Likes
485

hi,

u can set the same value for a field, if it already has same values for all 1000 entries.

u can do that using

itab_wa-field1 = 'abc'.

MODIFY itab FROM itab_wa

TRANSPORTING field1 WHERE field1 = 'xyz'.

otherwise it is not possible to change all the values of a particualr field. u have to loop through and change

regards,

madhumitha