on 06-11-2014 2:34 PM
Dear all,
I'm trying to find out, if it's possible to have a condition (in our case freight condition ZKOP) set up with two different calculation types?
Definition of how it should be:
- If the order value is below a specific amout, ZKOP is xxx.xx EUR.
- If the order value is above a specific amount, ZKOP should be calculated as a percentage base of the order value.
Please can you let me know if it's possible and how?
Thanks in advance.
Andreas
Andreas,
As you know Alternate Calculation type is a routine (piece of code). ABAPer can create the new routine with the required logic - 2 condition, depending upon the order value.
You have to give the logic (field names, table names e.g. order value etc. etc.) to the ABAPer.
This routine can be assigned to your freight condition type in the pricing procedure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andreas,
Please Let me know if this freight condition type is manually entered in sales order based on net value or what?
Regards
S.Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andreas,
Why dont you look at the possibilities of entering the calculation type manually in the condition record level itself. If you maintain 2 scales for this frieght charge, Have the scales with different calcultion type by entering it manually as Manual entry is the priority over the calcualtion type coming from Condition type config.
With Regards
S.Siva
Through standard configuration, it is not possible. You can try with either of the below user exits
In fact, you cannot change the calculation type on case to case basis, instead, you apply the logic via coding. Update here whatever be the outcome.
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For the requirement posted by OP, couple of options are there. One option is what I suggested and the other option is what you were suggesting. In both ways, it can be achieved. Only difference in both the cases, as you would be aware is, in case, the logic is to be added via a routine, then Access Key is needed whereas, in case of exit, it is not required.
G. Lakshmipathi
Andreas,
For this requirement, ABAPer has to create a table (exactly as created by you above).
In this table, user can input the freight values (fixed or percentage) against process (export / inland) and INCOTERMS.
The routine will inturn "call" this table, after "knowing" the order value and incoterms from the order.
Give the logic, table,field names to the ABAPer.
After the routine is created, you have to assign it to the freight cond type in the pricing procedure and activate it.
Next would be testing.
TW
Access Key is just a "formality" in the process. And is not difficult to get an access key to do this development. Please correct me if needed.
For this requirement, probably putting the code in a userexit is not the optimal way and can lead to system performance impact. Every time an order is create, the logic will go and check this userexit. But it might not be applicable for every order (or process).
Side comment: Just want to learn from your experience.
Thanks!
TW
If the coding is not written correctly, it would definitely affect the system performance. This is not only for user exit but also will be applicable to routines. So it makes no difference.
And is not difficult to get an access key to do this development
Not in all cases. In some projects, getting an Access Key itself is very difficult and it undergoes cumbersome process from client side. So we have to take a decision on case to case basis whether to go with routine or user exit.
G. Lakshmipathi
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.