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: 

calculate factorial with recursive methods

ABAPDos
Explorer
0 Kudos

Can someone show an ABAP code to calculate Factorial, using recursive methods ?

It will be helpful for best understanding and coding methods in ABAP.

Thanks in advanced

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

Look at a method such as CL_EHFND_ACE_FORMULA_CALC_DAC=>FACTORIAL.

(NB: this class contains also a method FACTORIAL_NOT_RECURSIVE)