Skip to Content
4
Nov 14, 2019 at 05:15 AM

AMDP take too much time to run when execute program, but when debug in DB it is very quick

1050 Views

Dear expert !

When I'm using the AMDP, I come up with the issue that make me confuse about the behavior of AMDP. When I call AMDP in execution ABAP program it took so much time to complete , sometimes it throw error SQL code 2048 no memory allocation.
But when I execute in debug mode ( debug run all statements in AMDP ) it just take about 30s to complete.
Is there anyone face this problem before? Please help me find out the reason and solution for this.
I use the AMDP trace to find out which variable take time and realize that : not_common and no_sprctr take time, but while using debugging mode it just took 4s to go through that statement.
@Dear Horst!
I'm a fan of your blogs, I really hope that you could help me out of this issue !

Thanks so much!

Dan

Attachments

amdp-code1.png (30.2 kB)
amdp-trace.png (58.2 kB)
amdp-trace.png (9.7 kB)
amdp-code2.png (26.7 kB)