12-02-2014 7:00 AM
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
12-02-2014 7:06 AM
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.
12-02-2014 7:06 AM
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.
12-02-2014 7:33 AM
Thanks a lot !! I deactivated the BADI implimentation and it is working now . But strange never ever thaught that BADI can call itself.
12-02-2014 11:41 AM
12-02-2014 3:48 PM
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