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 what are the system fields? Explain?

550


what are the 2 other types of views, which are not allowed in release 3.0? : abap data dictionary

599


what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.

2046


What are the data types of the abap/4 layer? : abap data dictionary

649


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

762






Does every abap/4 have a modular structure?

543


What does nw 7.4 sp 05/nw 7.5 sp 02 offers in abap?

674


Difference between sy-tabix and sy-index? Can you check sy-subrc after perform?

626


HOW TO DIFFERENT CALL TRANSACTION ON THE BASIS OF DOUBLE CLICKING ON DIFFERENT FIELD.

1766


What are the aggregate objects in the data dictionary? : abap data dictionary

1037


What is the full form of spro? : sap abap hr

666


Is it possible to pass data to and from include programs explicitly?

577


Explain the disadvantage of using exec sql statement in abap?

508


Explain what is a foreign key relationship? Explain this with the help of an example.

557


How memory management happens for internal tables and work areas in abap?

718