cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing condition based on a $ value

Former Member
0 Kudos

Hello,

We have a uniqure requirement in the Pricing for a Sales Order.

We have a sales price condition PBXX maintained and it populates automatically during sales Order creation.

Now what we want is if the total of all the conditions is less then 5000$ at the header level then the system should populate another condition with a $ value on it.

So basically we want another condition (with a fix $$ amount that we will maintain) to come up in the sales order when the header value of that order is less then 5000$.

Any Ideas?

Thanks

SAP Fan....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Create the condition record and then assign the fixed $ value in VK11. Don't forget to define the condition record to be applicable at header level.

On the pricing procedure v/08 include the new condition record and then put as a requirement that the amount should be less than your amount of money. This will make the condition record valid to show up on the document.

Former Member
0 Kudos

Hello Jimmy,

Thanks for your response.

I understand that the requirement should take care of it. Just want to confirm couple of things.

The condition we want will be at the header level for the entire sales order. Also these condition will be populated only if the net value at header level is less then a fixed number.

Can you tell me what is the techinical name for the field for net value. Also would I have to enter the net value $ amount in the requirement routine ABP code. Cant I have a flexibility of changing the net value without every time changing the program.

Let me know

Thanks

SAP Fan...

Former Member
0 Kudos

Hi,

The technical name for the net value field is 'NETWR'.

Yes, in the routine you should enter the value which forms the base for the system to pick up your alternate condition type.

Hope I have made my point clear.

Swami

Former Member
0 Kudos

hello friend ,

it doesn't have to be hard coded ,

you can change the second header condition to " value scale" with a formula that refers to

the your relevant condition .

this can provide you the flexibility of changing the net value .

BR

ASA

Former Member
0 Kudos

Hello Shivanand,

Thanks for the Response.

What would be the table for this field(VBAP or KOMP).

Also can anyone of you tell me what would the code look like in the Routine.

Let me know

Thanks

SAP FAN....

Former Member
0 Kudos

Shiva/Jimmy/ASA,

Can you explain a little more on the alternate condition type.

I want the condition to be applicabe only at the header level with a fixed amount. If I have the "item condition" checked then the value is going to add up to as many line items.

How can I get the header condition populate automatically for a particular sales order type and/or material group and the net value of the order header.

Waiting for your inputs.

Thanks

SAP Fan...

Former Member
0 Kudos

hey,

you can create header conditions which will get the value of the first condition .

in the pricing proc : in column "sub to" put the first condition value in komp-kzwi3 ( or ziw3, zwi4 ....)

in the requirement formula of the second condition type :

FORM XYZ :

check 1 = 2 .

if komp-"Name of the order type field " = " name of the order type .

check 1 = 1 .

if komp-netwer > komp-kzwi3. "

check 1=1.

.... and so on for the rest of your needs ...............

Hope this would help .

ASA

Former Member
0 Kudos

Hello ASA,

Thanks for the Response.

Can you elaborate more on how can I enter a condition value (200$) in the field "Sub to" in komp-kzwi3 . It only accepts the standard numbers 1,2, and so on.

You mentioned "in the requirement formula of the second condition type ".

Firstly: How do I get to the requirement formula for condition type? XYZ is ?

Secondly if you are considering the second condition type to be the total value then it might not be the case. As the total value will come from an addition of all the conditions ie. VBAK-NETWR and not a condition type.

Or may be I didnt understood what you have explained.

Can you please explain it in more details with transactions if needed.

Thanks

SAP Fan.

Former Member
0 Kudos

hey friend ,

i read again what you wrote,

lets make it simple :

A) you have 1 header condition that works in he sales order : PBXX - maintain a value in vk12 .

B) create another header condition : Z005 - and maintain a value in vk12 .

( its possible to maintain a value for header conditions )

C) now you want to activate the second condition (Z005 ) if the sum of all the conditions

is greater than 5000 ,

    • 2 options :

1. hard coded - go to transaction VOFM-REQUIRMENTS-create new formula :

and add the next lines to the routine :

FORM "XYZ" ( the name is generated by the system ) :

check 1 = 2.

if komp-netwer > 50000

check 1 = 1.

end if .

2. by " value scale " - define Z005 condition as a value scale.

go to transaction vs01 and define the following intervals :

0 - 5000 USD

5000 - 9999,9999 USD

go to transaction vk12 and assign your surchage :

0 - 5000 -


> assign value 0

5000 - 9999,9999 -


> assign the value you want to be activate

hope i made my self clear .

BR

ASA

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks..