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):
- 'G' (Copy pricing elements unchanged and redetermine taxes):
The following condition types are redetermined:
- Condition class KOAID = 'D' (Taxes)
- Condition class KOAID = 'C' (Rebate)
- Condition category KNTYP = 'I' (Intercompany billing conditions)
- Condition category KNTYP = 'R' (Remuneration list conditions)
- Condition category KNTYP = 'L' (Generally new when copying)
- Condition category KNTYP = 'G' (cost)
- Condition category KNTYP = 'E' (Cash discount conditions)
I hope this helps!
Krishna