Application Development and Automation 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: 
Read only

FM for evaluating a formula

Former Member
0 Likes
1,967

Hi,

  I want an FM for evaluating a formula.I am using EVAL_FORMULA now.But if i give negative values to the variables in this formula,it gives wrong results.Anybody know any better FM?

Hi,

  I want an FM for evaluating a formula.I am using EVAL_FORMULA now.But if i give negative values to the variables in this formula,it gives wrong results.Anybody know any better FM?

8 REPLIES 8
Read only

Former Member
Read only

0 Likes
1,488

This CHECK_FORMULA is not doing anything useful for the present requirement.

Read only

Former Member
0 Likes
1,488

Hi Lavanya,

Did you try using :

OIC_EVALUATE_FORMULA ?

-Sowmya

Read only

0 Likes
1,488

I don't understand the Exporting parameters in this FM.

Read only

0 Likes
1,488
Read only

0 Likes
1,488

I am using the same FM EVAL_FORMULA.They have mentioned in the article,that it accepts negative number.But,suppose the equation is 2.4*x*y and the values which i give are x= -10 and y =3.3,the formula will become 2.4*10-*3.3.So,it is not able to give a correct result.This is my issue.

Read only

0 Likes
1,488

what is the result?  What did you expect?  If you expect something other than 79.2-, then I think you need to adjust your expectations.

Read only

0 Likes
1,488

my expectation is 79.2-.But it is giving me some other random result.