Do you use select statement in loop end loop, how will be
the performance? To improve the performance?

Answer Posted / sukhbir

Best option will be to select the data before loop and
inside loop use read statement.

select f1 f2 f3(key fields) from db into
iNtertab
for all entries in itab
where condition.
sort intertab by f1.
loop at itab.
read intertab with key f1 = itab-f1
binary search.
Endloop.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a database view? : abap data dictionary

733


What is the transaction code to display the payroll results ? : abap hr

650


A function module can be called from a transaction screen outside an abap/4 program. State true or false. : abap modularization

655


Can we make use of flow logic control key words in abap/4 and vice-versa?

692


Control Break statements- At new...endat.

1034






What is native sql?

691


Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subrc after perform?

722


What are the layers of data description in r/3? : abap data dictionary

731


Explain the difference between a dialog program and a report?

642


what is the t-code to link technical and functional operation?

2058


Explain the Importance of pa20? : abap hr

728


What are field symbols and field groups? Have you used component idx of structure clause with field groups?

691


What are the major steps will you use for tuning?

675


Polymorphism real time scenario

1127


What is the meaning of client independent?

656