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 extracts?
How can we access the correction and transport system?
what is the difference between Blocked ALV and interactive ALV?
Did you create primary index?
How many types of tables exist and what are they in data dictionary?
How many main windows will be there in a page window?
what will happen if called program is not executable ?
Explain what is the step-by-step process to create a table in data dictionary?
How do you read files from the application server ? : abap bdc
What is an “on input filed” statements?
How do we handle multiple line items in BDC's.
What are internal tables? How to use a specific number occurs statement?
Describe the difference between macro and subroutine?
What is the use of 'table index'?
What is a badi?