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 is a database view? : abap data dictionary
What does the ‘suppress dialog’ do?
What are the functional areas? User groups? And how does abap/4 query work in relation to these?
How will you link form with the event driven in sap scripts?
What are different abap/4 editors?
PROGRAM TO CREATE INQUIRY IN SD USING BAPI 'BAPI_INQUIRY_CREATEFROMDATA'
What are the types of data types in the sap abap?
Difference between top-of-page and top-of-page during at line- selection?
What are datasets in abap?
Control Break statements- At new...endat.
Differentiate screen painter from menu painter.
What is web dynpro for abap?
What is a 'z' report?
While sorting field groups we cannot use more than one key field. State true or false. : abap modularization
How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?