on 03-05-2014 3:58 PM
Hello all,
we have a discount condition(ZXXX) which is applied to only the 1st order of a customer.
-I created the 1st order for the customer and it applied the ZXXX discount correctly.
-I created a 2nd order and it did not apply the ZXXX discount in that order, which is correct.
-Now after i deliver both the orders and i invoice the 2nd order 1st, it's applying the ZXXX discount in that billing document.
- it is also applying the ZXXX discount in the 1st order invoice too.
Ideally the discount should not be applied to the Invoice of the 2nd order, since the reference transaction is not the 1st transaction for the customer.
can anybody give an idea on how i can fix this issue?
Regards,
Keerthi,
Some questions:
- Does the invoice use the same pricing procedure as the sales order?
- Is the discount condition manually applied on the order or is it determined automatically from a condition record?
- Are you using order related billing or delivery related? In your item level copy controls, what is your pricing type & price source?
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply krishna!
- Does the invoice use the same pricing procedure as the sales order?
Yes
- Is the discount condition manually applied on the order or is it determined automatically from a condition record?
Automatically determined condition
- Are you using order related billing or delivery related? In your item level copy controls, what is your pricing type & price source?
Delivery Related Billing
the copy control of billing document for sales order to billing document at item level is
Pricing type- G- Copy pricing elements unchanged and redetermine taxes
Price Source- Blank-order
Hi Keerthi:
Based on your information, the only explanation for a normal case would be, in your v/06, ZXXX is categorized as tax and thus it can have a different value in the invoice from Order.
Most likely, this would not be the case. then you can check on pricing Analysis on ZXXX in both OR and F2 to obtain more information. Also check the change log on both order and invoice for potential clue.
Okay, so here are a few thoughts:
- How are you preventing the discount from showing up on the 2nd order? You may have to fix something in the routine (you probably already checked this)
- Can you check what the condition category/ condition class is of your ZXXX discount condition?
Take a look at SAP note24832; even though your calculation type is G (which says copy everything and redetermine taxes), the system actually redetermines conditions with categories shown below (copied from the note):
The following condition types are redetermined:
I hope this helps!
Krishna
Hello Krishna,
Thank you for the detailed analysis!
-How are you preventing the discount from showing up on the 2nd order? You may have to fix something in the routine (you probably already checked this)
This is happening from the condition record- Maximum number of orders in item details of condition record- I set it as 1, hence it pulls the ZXXX condition only in the 1st order and not the 2nd one.
-Can you check what the condition category/ condition class is of your ZXXX discount condition?
Condition category for ZXXX is Blank
Condition Class is A- Discount or surcharge
I looked at the note, It doesn't seem to fit my scenario as my condition category is blank.
Do you think my condition category should not be blank?
Take a look at SAP note 1459597. It talks about incorrect values on documents and statistics tables because of a programming error. The correction code seems to show that the system does not take already cumulated values (in your case, the first order that already got a discount) into consideration.
The note specifies some function modules read by standard SAP pricing (SD_COND_STATISTICS_READ). You may be able to put a break point here and check system behavior.
The item that confuses me though is why the system is re-determining pricing for this condition type when it should not.
Having a condition category of "blank" is acceptable: it should be cause any issues.
Krishna
User | Count |
---|---|
109 | |
15 | |
10 | |
5 | |
4 | |
3 | |
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.