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
Explain what are the system fields? Explain?
what are the 2 other types of views, which are not allowed in release 3.0? : abap data dictionary
what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.
What are the data types of the abap/4 layer? : abap data dictionary
A subroutine can contain nested form and endform blocks. State true or false. : abap modularization
Does every abap/4 have a modular structure?
What does nw 7.4 sp 05/nw 7.5 sp 02 offers in abap?
Difference between sy-tabix and sy-index? Can you check sy-subrc after perform?
HOW TO DIFFERENT CALL TRANSACTION ON THE BASIS OF DOUBLE CLICKING ON DIFFERENT FIELD.
What are the aggregate objects in the data dictionary? : abap data dictionary
What is the full form of spro? : sap abap hr
Is it possible to pass data to and from include programs explicitly?
Explain the disadvantage of using exec sql statement in abap?
Explain what is a foreign key relationship? Explain this with the help of an example.
How memory management happens for internal tables and work areas in abap?