Application Development 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: 

Infinite looping before Purchase Requisition save

former_member242512
Participant
0 Kudos

Hi All

We are creating a PR but on save its going into infinite loop.

If i put a breakpoint in my BADI , control will come in that method again and again .

We are unable to understand , how come same code initerating infinite times and finally gives a time out dump .

Have anyone come across usch issues , please let me know .

How can i debug in such scenario where same code looping infinite time and can know the reason behind it ?

Thanks and Regards

Ujjwal

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ujj,

This happens when some data is changed in a worng way inside a BADI. So the execution gets repeated. Check wether any data change is done inside the badi.

4 REPLIES 4

Former Member
0 Kudos

Hi Ujj,

This happens when some data is changed in a worng way inside a BADI. So the execution gets repeated. Check wether any data change is done inside the badi.

0 Kudos

Thanks a lot !! I deactivated the BADI implimentation and it is working now . But strange never ever thaught that BADI can call itself.

0 Kudos

Thanks Arulmani , you are correct . Problem solved.

0 Kudos

The BAdI doesn't call itself, but when some data "may" have been changed (some SET_DATA method was called) the system will trigger another cycle of checks.

So don't use any SET_DATA when you don't actually change data. (if new_val NE current_val, call set_data. endif.)

But AFAIK SAP prevented infinite loop by managing some counter, check if OSS notes can be applied in your system.

Regards,

Raymond