what is the difference between FOR ALL ENTRIES and SELECT *
FROM ?
Answer Posted / srinivas reddy
For all entries is used to join the one or more tables based on condition.Select * from is used to fetch the data from db
table,but don't use select * from due to performance standards. The code like this
select vbeln
erdat
ernam
vkorg from vbak into table it_vbak
where vbeln eq v_vbeln.
select vbeln
posnr
matnr
matkl from vbap into table it_vbap
for all entrie in it_vbak
where vbeln eq it_vbak-vbeln.
The sequence of fields used in select query must be same as
the sequence of fields in internal table.
thanks,i hpoe this is corrct...........
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What are the different types of internal table?
What are the ways you can do the tuning?
Can you define a field without a data element? : abap data dictionary
Suppose there is a secondary index on 4 non-key fields A,B,C & D. There are 3 select queries :- a) one on basis of A, B, C , D b) Second on basis of A, B, C c) Third on basis of D, C,B, A In which all situations , the above secondary index will be used?
What is a table pool? : abap data dictionary
What is the difference between collect and sum?
Explain the components of selection table?
What are system fields for secondary lists?
Why do we need enhancements?
What are Delivery classes? What data will you want to transport during client copy?
What are domains and data element? : abap hr
Under Data Transfer Portion of ABAP, what do you mean by DX Project
How can a lock object be called in the transaction?
singleton class
Name the function module used to convert logical file names to physical file names in abap/4 programs?