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

Performance Releated small doubt.

Former Member
0 Likes
583

Hi

I have one doubt can you tell me as per performance issues or SAP standard which statement is better.

Statement 1

REFRESH : i_tab1.

REFRESH : i_tab2.

REFRESH : i_tab3.

REFRESH : i_tab4.

Statement 2.

REFRESH : i_tab1, i_tab2, i_tab3, i_tab4.

I know both will do the same results but as per SAP standard and seeing performance which will be better is there any difference in performance.

will SAP complire takes the same memory in executing the 2 statements

can u guys help me out with explanation..

Hi

I have one doubt can you tell me as per performance issues or SAP standard which statement is better.

Statement 1

REFRESH : i_tab1.

REFRESH : i_tab2.

REFRESH : i_tab3.

REFRESH : i_tab4.

Statement 2.

REFRESH : i_tab1, i_tab2, i_tab3, i_tab4.

I know both will do the same results but as per SAP standard and seeing performance which will be better is there any difference in performance.

will SAP complire takes the same memory in executing the 2 statements

can u guys help me out with explanation..

4 REPLIES 4
Read only

Former Member
0 Likes
559

Hi Abhishek,

I think there is no difference between Statement1 and Statement2 in the performance wise but Statement2 will gives you more readable than Statement1.

Internally Statement2 will be spilted like Statement1 only.

Thanks,

Vinay

Read only

Former Member
0 Likes
559

Hi,

No difference at all.

It is just a readability which will matter. Option 2 is the recommended one with slight modification as

REFRESH : i_tab1,

i_tab2,

i_tab3,

i_tab4.

Regards,

Atish

Read only

Former Member
0 Likes
559

Hi Abhishek,

As both of the doing same thing, the only minor difference is that you are callling Refresh 4 times in statement 1 which is taking time to execute comparing to statement 2. As memory point of view it is not occupying memory instead it freeing the memory that is utilized by the internal tables. So it is better to use statement 2 instead of statement 1.

<b>Rewards points if it is useful.</b>

Regards,

Kinjal

Read only

Former Member
0 Likes
559

only difference in source code, no difference in execution!