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 work area.

Former Member
0 Likes
676

Hi experts,

I understand internal table work area holds only one record at time while writting data from data base server, then data will be moved to internal table body with the help of append itab statment,so internal table workarea holds last record of database table,but if you want present data to front end interanl table work area is must. is it over write data in internal workarea last record with record 1 at the time of data presenting to peresentation layier.

plz clear my doubt.

Regards.

hari

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
653

Hi hari,

1. Work area comes into picture

when we use loop, apppend, etc

or directly refer to field

eg. itab-field1.

2. When we use,

select * from t001

into TABLE Itab,

then work area does not come into picture.

It directly puts data in the body.

regards,

amit m.

5 REPLIES 5
Read only

Former Member
0 Likes
654

Hi hari,

1. Work area comes into picture

when we use loop, apppend, etc

or directly refer to field

eg. itab-field1.

2. When we use,

select * from t001

into TABLE Itab,

then work area does not come into picture.

It directly puts data in the body.

regards,

amit m.

Read only

Former Member
0 Likes
653

with index u can over write.

read table itab into <wa> index 1.

Read only

Former Member
0 Likes
653

Hi Hari,

When U use clear statement the header will be cleared.

This is what U should do when appending an internal

table.

Surely it will over write the header data when looping

the Internal table.

But it's a good practice to clear off the contents

in the internal table.

Regards,

GSR.

Read only

Former Member
0 Likes
653

Hi

You should re-read the internal table using the index of the record you need to show.

If you want to show the first record:

READ TABLE ITAB INDEX 1.

Now the header line have the data of the first record.

Max

Read only

Former Member
0 Likes
653

Hi,

operations on data base to internal table(like fetching it from DB )not required any work area .

but operations on internal table requires work area for write the itab-fields or modify , append it requires work area.

Regards

vijay