Suppose u r using FOR ALL ENTRIES. What happens when there
is no data in the itab which is using all the entries?
Answer Posted / phani
Hi All,
If we use FOR ALL ENTRIES, first internal table should
have at least one record ( ie, it should not initial ).The
data will fetch from database based on second select
statement,irrespective of first internal table records ,
because first internal table is empty.
It is best practice to use IF NOT I_TAB1[] IS INITIAL.
Because we use FOR ALL ENTRIES statement to avoid the
duplicates entries.
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What are the user interfaces of interactive lists?
While sorting field groups we cannot use more than one key field. State true or false. : abap modularization
What are the attributes of a field that can be activated or deactivated during runtime?
What is the difference between Check and Continue?
How to read files and process BDC's automatically ?
What is PS structure
What is the diffreence between bdc_close_group and bdc_close_dataset? : abap bdc
what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?
What are logical data bases used in hr module? : abap hr
What is pass by value and what is pass by reference? Which is better?
Can a posting run be deleted? : sap abap hr
What is meant by hot spots? : abap data dictionary
What are logical databases? : abap hr
What are the parameters in bdc_open_group? : abap bdc
Performance tuning techniques