cancel
Showing results for 
Search instead for 
Did you mean: 

Less execution time when setting up a break-point !

Former Member
0 Kudos

Hi all,

I'm testing performance in some ABAP code (in a Web dynpro component), I encountered a strange behavior:

I have the following simplified code:

" Many select statements


loop at lt_str assigning <lfs_str>.

     " Some simple operations

     authority-check object 'AUTH_OBJ'

              id 'GRP' field lv_group

              id 'ACTVT' field '03'.


endloop.


Execution time is about 8 seconds normally, but when I place a break-point just before the loop statement and I continue execution rapidly, the same code is executed in about 5 seconds! I'm talking about the execution of the loop statement only.


I tried replacing the break-point by a WAIT UP TO '0.5' SECONDS statement, but it doesn't have the same effect.

Maybe something is related to a database commit...


For information, the loop is executed about 11000 times.

What did this break-point changes? Something related to ABAP runtime or Web dynpro framework maybe?


Any help is welcome.

Thanks and kind regards,

Amine Abida.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Do you want to check authorization only once or for every record in the loop.

I think you want to check only once because , in Auth-Check statement inside loop you're not using field symbol field instead you're using LV_GROUP.

authority-check object 'AUTH_OBJ'     id 'GRP' field lv_group      id 'ACTVT' field '03'.

And the excution time varies because of the values you'r passing,.


Execution time is about 8 seconds normally, but when I place a break-point just before the loop statement and I continue execution rapidly, the same code is executed in about 5 seconds! I'm talking about the execution of the loop statement only.

Former Member
0 Kudos

Hi Katrice,

Thanks for your reply.

As I simplified the code, I didn't mention that I'm using the authority check for every single record in the loop. Which is the most time consuming statement in this case.