Application Development 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: 

qustion in performance

Former Member
0 Kudos

hi,

i wont to now which loop have beterr performence with work area or without work area

like that?

LOOP AT t_tcurr.

MOVE: t_tcurr-gdatu TO ti_date-date ,

t_tcurr-ukurs TO ti_date-exchange_rate.

APPEND ti_date.

ENDLOOP.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Performance tips : Declaring internal tables with Header line is no more entertained for performance reasons.

Use typed internal tables and use Work area to place the loop contents.

Overall performance will be definitely higher

5 REPLIES 5

Former Member
0 Kudos

hi,

it depends on situation. if ur internal table is having with header line then it works faster when looping to a internal table with out header line.

if helpful reward some points.

with regards,

Suresh Aluri.

Rodrigo-Giner
Active Contributor
0 Kudos

SAP now propose using work area instead of Header Line, but I think is more like a conevntion.

I use header line all the time, but is more performance using work area, an better yet field-symbol.

Anyway.. u will be optimizing a few micro-nano-tiny seconds ^^

Former Member
0 Kudos

Hi

Performance tips : Declaring internal tables with Header line is no more entertained for performance reasons.

Use typed internal tables and use Work area to place the loop contents.

Overall performance will be definitely higher

Former Member
0 Kudos

Hi,

I feel its better to use work area but we need to clear once we have done with our task.

Regards,

Ramakrishna kotha.

rodrigo_paisante3
Active Contributor
0 Kudos

Hi,

Try to go SE30, Tips & Tricks and put your code at the two editors. Click Measure Runtime and see the test result.

You can see other sample codes and see the total time to compare.

Hope it help you.

Regards!