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...

Performance techniques?

Answer Posted / ramesh

(1) Try not to delete a record from internal table with in
a loop. Every time when you delete a record from internal
table the index of the table is regenerated and this can be
a major performance issue. So if you have to delet a record
from internal table, create an additional column in the I.T
say del_ind and you want to delete the record for a
particular condition. then the code should go something
like this

loop at itab.

...
...
if <cond> .
itab-del_ind = 'x'.
modify itab transporting del_ind.
....
.......
endloop.

delete itab where del_ind = 'x' .


(2) Always sort the internal table by <key> and try to use
the statement Read table itab with key = <kwy> binary
search.

(3) Instead of joins use the for all entries option

(4) If the number of entries in the internal table are less
and you want to modify the internal table in loop, then its
better to go for field symbols than the regular
loop at itab.
.....
modify itab
,,,
endloop.

The overhead of reading the internal table record into itab
header can be avoided. Field symbol directly modifies the
record in the current loop pass

I will post more whenever i get free time again
Hope these are helpful

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of search helps? : sap abap data dictionary

1033


What are the personnel administration related Infotypes

2457


What is an update task? : abap modularization

1012


What is sql trace? : abap data dictionary

1142


What are the differences between sap memory and abap memory?

1061


What is the difference between leave transaction and call transaction?

1018


How do you document abap/4 programs? Do you use program documentation menu option?

1164


i want to add 2 records to a table but the last field in the table is 1000 char long.Is it possible?if yes how?

2174


Explain open dataset in sap abap?

1258


What abap statement will trigger list generation?

1014


How do u set up background jobs in SAP? What r the steps? What are the event driven batch jobs?

1055


What is generic area buffering in abap?

1005


What is your approach to find exit and BAdi?

1254


where do we store all custom programs in SD module?

5608


Hi All , Would be providing online trainings for SAP ABAP , guidance with real time experience examples , guidance in profile prepartion . Any one intrested please contact on 8978890047.

2410