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 two ways for restricting the value range for a domain? : abap data dictionary
In which table the material master data is stored?
What is internal payroll process? : sap abap hr
What are two different ways to add fields to sap tables?
What is its? : abap hr
what are the 2 other types of views, which are not allowed in release 3.0? : abap data dictionary
Why grouping of fields is required? What is the max no of modification groups for each field?
What are secondary indexes. How can we know which index is being used in a select query?
How do you read files from the presentation server ? : abap bdc
How can you manipulate the presentation and attributes of interactive lists?
What is gui status? How to create /edit gui status?
What kind of deliverables you have on a day to day basis?
What is a transaction variant and why are they used?
How are BAPI different from normal function modules?
Define alv programming in abap?