‎2008 Nov 03 4:31 PM
Hello !
I have a problem and can solve it.
I am calling within a Function Module a badi and calling the same Function Module
again within this badi beacuse I need it. And now I have big recursive loop with no ending.
How can I process to avoid this circultance ?
Regards
Erdem Sas
‎2008 Nov 03 4:33 PM
Change your logic. With any recursion, there has to come a point when you don't call the function again. Otherwise, your program simple resolves to:
DO.
ENDDO.As you so often do, you've not given sufficient information for meaningful answers.
matt
‎2008 Nov 03 4:33 PM
You have to code an exit point when the recursion is complete.
Rob
‎2008 Nov 03 4:33 PM
Change your logic. With any recursion, there has to come a point when you don't call the function again. Otherwise, your program simple resolves to:
DO.
ENDDO.As you so often do, you've not given sufficient information for meaningful answers.
matt
‎2008 Nov 03 4:36 PM
do you mean extension point ?
If so why and where exactly ?
@MAtt
What makes do enddo .....
Do
Endo
regards
sas
‎2008 Nov 03 4:54 PM
More like:
FORM recursion
USING a
CHANGING b.
* Use a to get next b
* If it's what you want.
* Exit.
* Else.
* perform recursion
* using b
* changing c
*
ENDFORM. " recursionRob
Edited by: Rob Burbank on Nov 3, 2008 2:33 PM
Since this is referenced in the Coffee Corner, I cleaned it up