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

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

696


Can you show multiple alvs on a single screen?

695


How the at-user command serves mainly in lists?

718


What is a currency factoring technique?

791


A function module can be called from a transaction screen outside an abap/4 program. State true or false. : abap modularization

655






What are clustered tables?

703


What are the types of subroutines?

710


dear friends, do you know how to configure web dynpro and adobe into ECC6.0 IDES?

2630


What is the difference between Classic badi and Kernal badi ?

1927


Can a transparent table exist in data dictionary but not in the database physically? : abap data dictionary

786


What is an Unpack command?

727


A subroutine can contain nested form and endform blocks. State true or false. : abap modularization

894


when does a list get sent to the screen on the presentation layer?

1521


What are roles and authorization objects?

1290


Can we make use of flow logic control key words in abap/4 and vice-versa?

692