Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 do you do when the system crashes in the middle of a BDC batch session?

1126


What is an interactive report?

1033


What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why?

978


What are the domains and data element?

976


What do you mean by transparent tables in sap abap? : abap data dictionary

969


how can we enable hyperlink in screen painter?

3862


What are internal tables? : abap hr

949


If yes then why do we require logical database

3072


What is processing class, where we do them and why? : sap abap hr

1073


how can you display data say "your name"in sap script without print program or driver program??

2134


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

1388


What is generic buffering?

1326


What is an evaluation path? : sap abap hr

992


What is buffering in abap?

1152


What is an interface? In what scenario we use interface? What is the difference between abstract class and interface?

1316