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: 

Processing Work Center Formula

Former Member
0 Kudos

Hello,

I am selecting Work Center Formula from table TC25. Based on the formula, I need to calculate the standard hours in a report.

select single ftext into tc25-ftext
        from tc25
       where ident = crco-forml.

I got the value of tc25-ftext as = SAPC00 + ( SAPC00 / 2 ).

I have already determined the value of SAPC00 as 7.000.

Now I have to calculate the "Standar Hours" based on tc25-ftext using the values like:

std_hrs = 7.000 + (7.000/2) = 10.500

But depending on the value of crco-forml, the value of tc25-ftext also varies (dynamically).

So can you please let me know how to build logic for this?

Thanks for the help.

1 REPLY 1

Former Member
0 Kudos

have a look at program RSCALC01. this shows you how to use the EVAL_FORMULA function module. it is not super fast, so i would not use it in a big loop, but it works fine.