cancel
Showing results for 
Search instead for 
Did you mean: 

Calulate condition value by adding / substracting previous calculated conds

Former Member
0 Kudos

Hi gurus,

We need to calculate condition values only by adding / substracting previous calculated conditions, e.g:

ZPR0 --> calculated automatically

ZPR1 --> calculated automatically

CONDITION A = ZPR0 - ZPR1 --> Is it possible to set it somehow via standard? or a new routine development is required?

Thanks,

VL

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi there is a standard routin available in alternative calculation. routine no = 80

you need to define ZPR0 and ZPR1 in following manner

Step No. Condition Type From to Cal. Routine

10 ZPRO

20 ZPR1 80

30 New Condition 10 20

Please check Hope this will resolve your problem.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hey Gurus,

thanks for your quick response.

To Ram:

ZPR0 is a price condition

ZPR1 is a condition calculated base on a Z routine

CONDITION A = ZPR1 - ZPR0 --> only difference of values (KWERT)

To Khaled:

The idea was to reduce number of routines....

To Dhiraj:

Issue is that according to your squema:

Step# Condition Type From to Cal Routine

10 XXXX

20 YYY AAA

30 ZZZZ

Step 20 is already using a routine..

Any idea?

Thanks,

VL

kkafoury1
Active Participant
0 Kudos

Hi Victor,

Please kindly inform whether zpr1 is a price condition or a discount/surcharge discount?

you can use subtotal column of the pricing procedure to add conditions but you will need a condition value routine (VOFM) to move the final value to the required condition type.

Thank you and best regards

Former Member
0 Kudos

Yes,check below If ZPR0 is price and ZPR1 is discount,

you need define condition type ZPR1 in V/06 " Plus/minus" X means Negative, it will deduct.

In pri.pro, you need to place as below

10 ZPR0

20 ZPR1

30 Net price from 10 to 20