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 does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?

1284


What is “call mode”?

988


Why cant we use Normal function module for data transfer?

2185


Can a constructor be declared private? If yes then in which scenario?

1394


What are the disadvantages of using explicit enhancement?

2015


Which commands are used for interactive reports?

1208


Can we use write statements in screen fields?if not how is data transferred from field data to screen fields?

996


Can you delete data element, which is being used by table fields. : abap data dictionary

1123


What are the differences between table controls and step loops?

1140


What is the use of the raising exception? : abap modularization

969


What is dialog module?

1059


What is step-loop?

1075


What happens if a function module runs in an update task? : abap modularization

1035


What are the basic components of dialog program?

1224


How to display or know if the value entered contains records or not?

1017