2006 Aug 22 11:01 AM
hi,
select * from *t001 into itab..
what is the purpose of using *t001...
2006 Aug 22 11:08 AM
Hi,
I think it should be
select Single * from t001 into *t001.
*t001 indicates a temp workarea. Many SAP program uses this way to store data during the program execution.
I dont think the other way as you have mentioned exists.
Cheers
VJ
2006 Aug 22 11:08 AM
its means that u fetch value from the copy of table t001(image of table).
this type of coding was used in old version.
2006 Aug 22 11:10 AM
Hai Sumi,
*T001 can be used as a <b>workarea</b>. In standard SAP programs, you can see similar work areas which is mainly used for screen texts.
2006 Aug 22 11:11 AM
2006 Aug 22 11:12 AM
FROM *T001 has the same effect as FROM T001 when it is a select on single table as in :
SELECT * from *T001.
But when there is a join on 2 or more tables, you are selecting fields from different tables and writing them inot an internal table which contains all the fields selected.
In this case, the fields are written to the target area from left to right in the order in which the tables appear in the FROM clause, according to the structure of each table work area.
For more detailed explanation, hit F1 on FROM keyword in your ABAP program and read help with regards to JOIN statement.
2006 Aug 22 11:15 AM
Hi,
In this case the data from table T001 is made available using the table workarea. The select has the same effect as the normal select statement while processing.
Regards,
HR
2006 Aug 22 11:22 AM
If it is a workarea then how to get records from this workarea
2006 Aug 22 11:35 AM
2006 Aug 22 11:40 AM
Hi,
I tried like this.
Report y_test.
tables: *t001.
select single * from t001 into *t001.
write: *t001-bukrs,
*t001-butxt.
Regards
Vimal Kumar