Hi there,
The purpose is to add every digit of a "string" with only numeric characters together.
The result will be returned by the function if it is less then 22.
So for p_datum= "13011970" = 1+3+0+1+1+9+7+0 = 22
So it will run the function agein with 22. 2+2=4, so now it will return 4.
This works when I debug, I get the value 4 which is in the return value, but then I think it returns from the previous call where the value is 22, there it returns nothing so the end result is null.
So the problem is that I loose the returning value, probably due to invalid logic in my code ?