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

ABAP performance

Former Member
0 Likes
691

Hi!

I have an internal table, which has 250000 records.

LOOP AT itab INTO wa.
...
* here are some other ABAP statements, but no SELECT
* or other database accesses
...
READ TABLE ...
MOVE ...
...
ENDLOOP.

This code part runs for 8 minutes and I don't know why is it so slow.

How can I trace, which command takes the most time? If I go into the debugger and run it step-by-step, it seems every command is progressed instantly. Is there some tool for it?

SE30 is not enough detailfully, so it is not useful in my case.

Thank you

Tamá

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
648

Maybe the read table is the bottle neck. How did you declare the internal table you are reading here?

Standard, sorted, hashed table, with (non) unique key?

Hi,

u can use ST05 <Tcode> for detail check

Regards,

sathish

4 REPLIES 4
Read only

Sm1tje
Active Contributor
0 Likes
649

Maybe the read table is the bottle neck. How did you declare the internal table you are reading here?

Standard, sorted, hashed table, with (non) unique key?

Read only

ThomasZloch
Active Contributor
0 Likes
648

yes, you have to tell us more.

Most likely your READ statement does not use a qualified key. Also, you might want to drop "INTO wa" and use field symbols instead ("ASSIGNING <fs>"). At 250K records you're saving some copying costs.

Cheers

Thomas

Edit:

You have to explicitely switch on analysis of internal table operations in SE30. Also see this excellent blog:

/people/siegfried.boes/blog/2007/11/13/the-abap-runtime-trace-se30--quick-and-easy

Read only

Former Member
0 Likes
648

Hi,

u can use ST05 <Tcode> for detail check

Regards,

sathish

Read only

Former Member
0 Likes
648

I can't access that system now, I'll popup later.