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 is filter dependent BADI?

1349


What is the difference between a dialog program and a report?

1039


What is the meaning of abap editor integrated with abap data dictionary? : abap data dictionary

1078


What is a predefined type in abap?

1122


What are extracts?

964


what are the two methods of modifying sap standard tables? : abap data dictionary

1059


How do you restrict the data to be entered in the payroll area? : sap abap hr

1014


What are lock objects?

975


Explain the Types of Select statements?

1040


How to load data from ms excel sheet to sap by using bdc method ? : abap bdc

1235


Explain the client concept of sap.

991


How can we decide weather we can enhance the standard infotype or not ? : abap hr

1046


How to find the return code of a statement in abap programs?

1066


A field containing quantity amounts (data type quan) must be assigned to a referencetable and a reference field. Explain?

905


what precautions or prerequisites do you follow to update a record into database table and how

5922