‎2006 Mar 07 12:54 PM
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
‎2006 Mar 07 12:57 PM
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.
‎2006 Mar 07 12:57 PM
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.
‎2006 Mar 07 12:57 PM
with index u can over write.
read table itab into <wa> index 1.
‎2006 Mar 07 1:01 PM
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.
‎2006 Mar 07 1:02 PM
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
‎2006 Mar 07 1:04 PM
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