on 01-05-2015 4:34 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.