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

How will you insert record in a sorted table

862


Is it possible to bring select option in module pool screens?

531


How to copy table across clients?

618


What are critical issues you have faced in your project

2916


What are data classes? What are the various data classes available for selection? : abap data dictionary

549






How can we set the table spaces and extent sizes? : abap data dictionary

732


How to specify a client for database table processing?

613


How did you test the form you developed? How did you taken print?

606


What are the buffering options in abap?

561


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?

863


Define batch input session?

576


What is a size category? : abap data dictionary

655


function modules are also external subroutines. State true or false. : abap modularization

598


ALV Report that will show the details of order like order no, order date, customer, product code & description, order quantity and value along with the details of dispatch of those orders like invoice no, invoice date, invoice quantity and pending order quantity. plz mention the detail coding Tahnks, Rahul

2169


Explain how is batch input process different from processing on line?

550