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

Nested LOOP AT SCREEN leads to an infinite loop (recursion?)

2,327

Hi,

I have been developing in ABAP for some years now but I have run into the following bug(?) just now.

There was a programming error in one of my programs which lead to a timeout. It took me some time to figure out what was wrong and in the end it was nested `LOOP AT SCREEN`. I have not found any article on that topic nor anything in the documentation.

I posted a question on Stackoverflow:

https://stackoverflow.com/questions/56748140/why-does-nested-loop-at-screen-cause-infinite-loop-recu...

Actually I wanted to approach horst.keller directly but I am unsure how to do it here.

8 REPLIES 8
Read only

Sandra_Rossi
Active Contributor
1,845

As a side note, let me say that your question in stackoverflow is sufficiently clear and documented to directly copy & paste it into a ticket at SAP support. If you don't have access to the support (no S-user), I can open one on your behalf (SAP support is nice: I opened a ticket recently and I had a positive answer; even SAP staff opens tickets on their own if they feel SCN questions underlie bugs)

Read only

1,845

Hi, Sandra, I do have an S-User but unfortunately I do not have authority to submit a ticket. If this is also interesting to you I would not mind if you create an incident by yourself by just copying & pasting what I have posted on SO.

Read only

Sandra_Rossi
Active Contributor
1,845

Done (link for my own purpose : https://launchpad.support.sap.com/#/incident/pointer/002075129400003756892019).

I will update this thread as soon as I have an answer.

Read only

matt
Active Contributor
1,845

A good question with interesting answers. Thanks for raising it!

Read only

Sandra_Rossi
Active Contributor
1,845

Update: I got a message from SAP, they are still investigating; they have to make sure that the incorrect behavior is only limited to an endless loop, and if it's the same behavior in all other supported versions. If it's only an endless loop, in all versions, they would simply raise a runtime error.

As an example of a possible different behavior, this old thread is talking about "The loop at screen [...] lose its correct index", but doesn't mention an endless loop.

Read only

0 Likes
1,845

Thanks for the update Sandra! I am happy that they considered it as an issue and are working on it.

Read only

Sandra_Rossi
Active Contributor
1,845

For information, SAP support is still "working" on it...

Read only

0 Likes
1,845

I think there is some regression to be done by such a change, therefore the long processing time.