cancel
Showing results for 
Search instead for 
Did you mean: 

Formula for condition value

Former Member
0 Kudos

Hi Gurus,

I just want to know how the formulas are created/computed. For example, routine number 12, XWORKD - XWORKE, where do they get the data? I'm copying a new routine and is using a new formula. how can I simulate the entries of data?

What is the right way of generating when creating new routines?

Thanks,

Paul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

last resort, ABAP

Former Member
0 Kudos

Hi there,

All formulas are developed in VOFM --> Formulas --> condition base value.

For eg you want to calculate condition type ZDIS on 10% of net value.

So in the formulas you will code in such a way:

1st you will read the KOMP-KZWI2. Then you will calculate 10% of KOMP-KZWI2. You will store that value in an internal table / work area.

Then you will canculate the discount ZDIS on that value stored in work area / internal table.

If ZDIS is 10% discount, the final effect will be 90% x (10% x KOMP-KZWI2).

This is how you wil write the formula.

Regards,

Sivanand