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


Please Help Members By Posting Answers For Below Questions

What are extracts?

761


How can we access the correction and transport system?

741


what is the difference between Blocked ALV and interactive ALV?

2106


Did you create primary index?

761


How many types of tables exist and what are they in data dictionary?

824


How many main windows will be there in a page window?

749


what will happen if called program is not executable ?

1872


Explain what is the step-by-step process to create a table in data dictionary?

869


How do you read files from the application server ? : abap bdc

834


What is an “on input filed” statements?

881


How do we handle multiple line items in BDC's.

6889


What are internal tables? How to use a specific number occurs statement?

749


Describe the difference between macro and subroutine?

845


What is the use of 'table index'?

839


What is a badi?

735