Suppose u r using FOR ALL ENTRIES. What happens when there
is no data in the itab which is using all the entries?
Answers were Sorted based on User's Feedback
Answer / pramod upadhyay
If the table on which the For All Entries IN clause is
based is empty, all rows are selected into the destination
table. Hence it is advisable to check before-hand that the
first table is not empty.
Is This Answer Correct ? | 18 Yes | 0 No |
Answer / tharun
when you are using for all enteries always check whether
IF ITAB NOT INITIAL.THis internal table is the one
used 'for all enteries in itab'.this will prevent from the
query fetching all data.
IF ITAB NOT INITIAL.
select ... for all enteries in itab.
endif.
Is This Answer Correct ? | 13 Yes | 0 No |
Answer / chvpavankumar
all data will upload to main internal table with out any
checking
Is This Answer Correct ? | 10 Yes | 0 No |
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 |
Answer / lokesh
Please Ignore my earlier Answer ....I regret for that
answer...Please check this one..
If no data is there in ITAB which you are applying for FOR
ALL ENTRIES then select query will fetch all the values
from the DB table which can be real performance issue.
so before making for allentires for a table make a check
that its not empty.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / chowdary
it will retrive all entries of the table on which you are
performing the for all entries into internal table.
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / santhu23
when you are using for all enteries always check whether
IF ITAB NOT INITIAL.
Otherwise it will pick all the values form by second selected table based on "NULL VALUES".
So, We have to check ITAB Is Not Initial.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / karthikeyan
we have to check the particular internal table is not initial.
Is This Answer Correct ? | 2 Yes | 6 No |
Answer / lokesh
If they is no data in itab , the for all entries itab1 will
not display any data..
because 1st itab should be not initial .
check for initial before going for for all entries.
Is This Answer Correct ? | 2 Yes | 8 No |
Explain what is the step-by-step process to create a table in data dictionary?
Can we create a Table Without a Primary key?
Can i have some Realtime Scenarios on Reports.
can u add a new view to the existing view?
2 Answers Bristle Cone, Cap Gemini, HP, Satyam, Wipro,
What is the function module for IDOC generation ?
Explain the advantages/disadvantages of logical databases?
what is difference between method and function module?
why SAP script is clint dependent and smartform is clint indepedent ?
what is the functionality of data class?
what is use of sap script text file header?
what is DATA ,TYPES,PaRAMETERS called in ABAP terms?
Waht is "READ TABLE" command?? Whats the use of it?? Whats the syntax of the same?