Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

peformance tuning

former_member206396
Active Participant
0 Likes
675

hi all,

could any one tell me how to increase performance of my report, which is going dump in the quality itself.

tell me what to do to decrease the time??

help me out pls its urgent

thanking you.,

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
648

hi,

1. dont write select query inside loop.

2. sort ur internal table alaways.

3. use binary search for internel table.

4. inside the loop, if ur required condition satisfys jus 'EXIT'.

5.Always use modify command in place of insert and upadte commands.

6.do all ur data manip[ulations only inside the internal table.

all the best.

for any clarifiaction pls mail me.

pls reward points, if this helped u.

regards,

anversha.

anversha.shahul@wipro.com

6 REPLIES 6
Read only

Former Member
0 Likes
648

check SAP tool ST05,SE30.

and paste ur code over there ? so we can give diff.options.

Regards

Prabhu

Read only

0 Likes
648
Read only

anversha_s
Active Contributor
0 Likes
649

hi,

1. dont write select query inside loop.

2. sort ur internal table alaways.

3. use binary search for internel table.

4. inside the loop, if ur required condition satisfys jus 'EXIT'.

5.Always use modify command in place of insert and upadte commands.

6.do all ur data manip[ulations only inside the internal table.

all the best.

for any clarifiaction pls mail me.

pls reward points, if this helped u.

regards,

anversha.

anversha.shahul@wipro.com

Read only

Former Member
0 Likes
648

hi

1 Try to reduse the numer of internal tables.

2 Delete the intenal table not in use after a point.

3 Reduse or remove the number of unnecessory variables.

4 Use proper SQL query try to avoid Joins.

regards

Pulkit Agrawal

Read only

Former Member
0 Likes
648

Hi Rama krishna S

If u specify what u have used and who in your report i can help u more to increase your performance

regards

Pulkit Agrawal

Read only

Former Member
0 Likes
648

Hi,

For performance use below points

1 ) use binary search in read by sorting table

2) Instead of IF use case wherever req

3) remove move-corresponding from select

4) use constants whereever req instead of hardcong

In se30 transaction you can look for

Tip&TRicks button on application toolbar

apart from below conventions

Follow below steps

5) Remove * from select

6) Select field in sequence as defined in database

7) Avoid unnecessary selects

i.e check for internal table not initial

😎 Use all entries and sort table by key fields

9) Remove selects ferom loop and use binary search

10) Try to use secondary index when you don't have

full key.

11) Modify internal table use transporting option

12) Avoid nested loop . Use read table and loop at itab

from sy-tabix statement.

13) free intrenal table memory wnen table is not

required for further processing.

14)

Follow below logic.

FORM SUB_SELECTION_AUFKTAB.

if not it_plant[] is initial.

it_plant1[] = it_plant[].

sort it_plant1 by werks.

delete adjacent duplicates from it_plant1 comparing werks

SELECT AUFNR KTEXT USER4 OBJNR INTO CORRESPONDING FIELDS OF TABLE I_AUFKTAB

FROM AUFK

FOR ALL ENTRIES IN it_plant1

WHERE AUFNR IN S_AUFNR AND

KTEXT IN S_KTEXT AND

  • WERKS IN S_WERKS AND

AUART IN S_AUART AND

USER4 IN S_USER4 AND

werks eq it_plant1-werks.

free it_plant1.

Endif.

ENDFORM. "SUB_SELECTION_AUFKTAB

Regards

Amole