cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the calculation formula for a condition type

former_member496861
Participant
0 Kudos

Hi all,

I have a condition type ZPP1 which is a charge of a flat fee $6. The fee is split among all line items in the sales order.

Cond class for ZPP1 is A (surcharge), Calc type is B (fixed amt), Cond Cat is H (basic price).

If i have 2 line items in the sales order, the charges of ZPP1 is not shown at line item level until I go to Header / Condition tab.

I cannot find any formula for ZPP1 in pricing procedure. Then how are the line item charges calculated ? Is this standard sap pricing ? It seems the price is re-price after going to the header. Is this configuration ?

We have a condition rec for ZPP1 for $6 only, no scale. I need to find out each charge (condition value/ kwert) for each line item. I need to find out the charge for each line item is calculated ?

thanks

Joyce

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Go to V/06 and check that this Codition type is activated as Group Condition & as a Header Condition.

Best Regards,

Ankur

former_member496861
Participant
0 Kudos

Hi Ankur,

The condition type is a group condition as well as Header and Item Condition. Would you know how or where i can find out sap calculate the price for all line items which is distributed from the header ?

thanks

Joyce

Former Member
0 Kudos

Hi Joyce,

1. In the pricing procedure, we maintain condition types for the pricing elements like Price, Discounts or surcharges and Taxes. Here we maintain routine for "Requirement" Field, "Alternative cal type", "Alternative Condition Base Value".

Here we can check the logic with source code or documentation or by T.code : VOFM.

Regards

Ravishankar M

Former Member
0 Kudos

Hi Joyce,

In V/06 you have to either select item condition or header condition.

You cant select both the things.

In general sap always do the addition of the given value while doing the pricing.

But in V/06 if you provide Plus/minus value then that condition type behave like that only.

If you give negative then that condition type value will be deducted from the over all value and if you use positive then vise versa will happen.

To divide the header amount to the item value you can use AltCTy and AltCBV in your pricing procedure.

You have to write the routine to that how the value should be distributed to the item.

Hope so this will solve your problem

If still problem exist then let us know

Regards

Raj.

Former Member
0 Kudos

Kindly activate the Condition type as Group Condition.Now maintain 2 different Materials under same Material Group and create an Order.

There is no customizing regarding the Subject matter as this is standard from SAP.

Best Regards,

Ankur

former_member496861
Participant
0 Kudos

Hi Raj,

ZPP1 is a group condition, is both header and item condition. You mentioned you cannot have both header and item condition selected ?

Can you tell me what is the diffferent between AltCTy and AltCBV ? There is a routine in AltCB that calculate the unit price of ZPP1.

The other question i have is when the line items are created for ZPP1, i cannot see the condition value for these until i go to Header/Conditions tab, then return to line item screens to see the prices for ZPP1. Is this normal ?

thanks

Joyce

former_member496861
Participant
0 Kudos

Hi Ankur,

What's going to happen if i have 2 different materials under different material group ?

Does this mean the $6 would NOT be distributed to all line items ?

thanks

Joyce

former_member496861
Participant
0 Kudos

Hi Ravishankar,

I am aware for this. I am trying to understand how thses are applied to the order.

thanks

Joyce

Former Member
0 Kudos

Hi,

If you select header condition then that condition type will be visible in header pricing

And it can be changed in header pricing only.

If you select item condition then vise a versa will happen.

Group condition is used when you have more than one condition type for discount and you want to pick the best condition type then group condition is used.

Obviously you have to do more setting for group condition.

So if you have selected both then that condition type will be seen in header only by default and can be changed in header.

Condition Formula for Alternative Calculation Type: - It specifies that the system is to use the formula represented in this column as an alternative in finding the value of the condition type, rather than by using the standard condition technique. This can be used to calculate complex tax scenarios.

Alternative Formula for Condition Base Value: - It is a formula assigned to a condition type in order to promote an alternative base value for the calculation of a value. For example, one can specify a formula that uses a subtotal, such as 4, from the subtotal field, modify it slightly, such as dividing it by 2, and then using the resultant value as a base value for the condition type.

(These definations are already posted in the forum just doing the copy paste.)

Hope so this will clear out some of your doubt

Regards

Raj.

former_member496861
Participant
0 Kudos

Hi Raj,

Thanks for your explaination. I selected both header and item condition and i am unable to change the price at the header leve.

Regarding these :'Condition Formula for Alternative Calculation Type' and 'Alternative Formula for Condition Base Value', i wonder if the system go to condition formula first, then to Alternative Formula ?

Also, can you tell me how to create a condition formula for Alt Calc Type ? I cannot find a 'new' entry icon in VOFM/ Formula/Condition Value.

Thanks

Joyce

Former Member
0 Kudos

Hi,

Can you please tell me your requirement about ZPP1.

For what purpose you want to use it then it will be better to understand the problem properly.

If you want ZPP1 to your header condition then select header in condition

Or select item to be item condition.

Regarding pricing systems check both formula for that particular condition type.

You can give different formulau2019s to condition type to react in different ways.

Go to VOFM/Formula/Condition value.

Now select the one of the formula which you want to modify it.

Then click on the source text it will go to ABAPer screen.

After changing the formula there will be some way to save that program.

ABAPer will know it properly I donu2019t have much idea about that.

Regards

Raj.

former_member496861
Participant
0 Kudos

HI Raj,

Thanks for the info. Would you know how to create a formula using condition value ? I go to Formula but don't see any option to create a new entry for a new number .

thanks

joyce

Answers (2)

Answers (2)

former_member496861
Participant
0 Kudos

Hi everyone who replied,

I still can't find an answer to this.

Thanks for your reply.

former_member315051
Active Contributor
0 Kudos

Yes , this is the standard behaviour of SAP , once you go to Header condition tab then it will split into Item levels., as per my knowledge this is not configuration , this will be form Program i think.

Regards,

Ramesh

former_member496861
Participant
0 Kudos

HI Ramesh,

Thanks for the info. Does this mean that i have to go to the Header condition tab each time before i see all prices recalculated for ZPP1 before i can save the order ? Is there a better way to do than this ?

thanks

Joyce