‎2005 Jul 22 10:48 PM
Hi experts,
I have a formula and i want to implement it program but not getting proper values.
gr = (( e.count / s.count ) pow 1/n ) - 1.
in the program,
I did seperately also but still not getting the values,
i implemented in this way in the program.
n1 = 1 / n.
e = e.count / s.count.
p = e ** n1.
gr = p - 1.
But still not getting the values in the programs output,
Any suggestion or help on this will be of great use to me.
Thanks in advance.
Prabs.
‎2005 Jul 22 10:56 PM
Did you define n1 as decimal rather than integer? I think everything should be decimal (P) or floating point (F).
Have you used a break-point to figure out exactly where the problem comes up?
Rob
‎2005 Jul 22 11:32 PM
Hi Rob,
I defined everything n1 as p and also d, p.
I abap debugger, its not going to that value at all.
Thanks,
Prabs.
‎2005 Jul 23 4:08 AM
‎2005 Jul 23 5:59 AM
Solved it, defined all the variables as packd decimal.
Thanks,
Prabs.