cancel
Showing results for 
Search instead for 
Did you mean: 

Condition base value...

Former Member
0 Kudos

Hi,

We have two basic price condition types called

ZLAB and ZLTR. At any point of time only one condition type will be executed and fetch the price.

We also have ZLAD is the discount based on whichever availble on the above one.

ZLAB

ZLTR

ZLAD

Now I need execute this discount rate based on which is active condtion record.

To cater this can I make use of altenative condition base value formula ?

or any other config set up will help?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This can be done in the pricing procedure by setting exclusion between the two price conditions, then a sub-total to cover them both and then apply the discount to the subtotal :

Step 10 = ZLAB = 25 (Inactive)

Step 20 = ZLTR = 20 (active)

Step 30 = Sub-tot (on steps 10 - 20) = 20

Step 40 = ZLAD = 10% (on step 30) = 2

Brian

Answers (1)

Answers (1)

Former Member
0 Kudos

You can use condition exclusion groups so that system reads only active record between condition types ZLAB & ZLTR.

The discount condition type ZLAD uses the price determined from active condition record to calculate the discount.

Former Member
0 Kudos

Guys,

Those ideas are very good. But I don't want to create one more condition type or net value.

Can I use alt cond base value routine, to determine the LAD discount is based on what?

If yes, how to writte a program?

Former Member
0 Kudos

Sorry, but I cannot see why you would want to write special code when the desired result can be achieved via standard configuration.....

Former Member
0 Kudos

Hi,

Which pricing schema look better out of given 2 here

*************************************

Schema 1

**************************************

ZLAB Basic price

ZLTR Basic Price

ZLAD Discount on any one of ZLAB or ZLTR, which is available

ZLVR Discount on any one of ZLAB or ZLTR, which is available

======

Net value

=======

***************************************

Schema 2

**************************************

ZLAB

ZLTR

======

sum value

=====

ZLAD

ZLVR

===========

Net value

========

Here the schema 1 is looks better and as per Standard SAP way. I got the answer for how to writte the cond. base value routine.

Step 1: - Assign subtotal to ZLAB (say "A)

Step 2: - Assign subtotal to ZLTR (say "B")

Step 3: - create new cond. base value , write a code

as

if Value for A is not equal to zero, pass the value to xkwert

else

pass the value of B to xkwert.

Step 4: - Assign this routine to ZLAD

step 5: - Create ZLAD condition record.

Results: - System takes either A or B value as base value and for the discoun of ZLAD.

Thanks, good learning

Laxman