Skip to Content


Dear community,

I am dealing with a requirement in which our customers asks us to create an automatic header condition that applies only at the header level. The condition is a surcharge and a fixed amount to apply if the total gross value of the sales order is lower than a certain threshold - for instance, being the threshold 100 €, if the gross value is 80 € the surcharge to apply will be 5 €.

We told him that that's not SAP standard as header conditions are manual (not access sequences) and are split or duplicated at an item level... and I am thinking about the right solution.

My approach now is to create TWO conditions (statistical, applying at header & position levels - threshold and surcharge). If "total gross value" > "threshold" => "surcharge" would apply <= these code would be written in routines affecting the respective conditions.

If one of the conditions applies, I would block the sales order with a "threshold reason" so that the user knows that she needs to add an additional item with value the statistical surcharge and amount 1.

I anticipate that he won't be happy with the solution but I don't have a better idea.

Would you please give me a different approach? What do you think about mine?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 13, 2017 at 12:46 PM

    This should be possible by appending a header condition type and it's price manually to XKOMV table in USEREXIT_PRICING_PREPARE_TKOMK (MV45AFZZ). All the validations can be done by reading XKOMV table and then append header condition. I have not done this earlier but please give a try.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 28, 2017 at 05:41 AM


    you can use header condition with formula and create a condition record for it.


    Add comment
    10|10000 characters needed characters exceeded

  • Apr 28, 2017 at 12:55 PM

    Hi there, thank you Shanthi and Robert for your answer. I think that it really looks to me like impossible to achieve it. I guess that I could get a header condition thru programming BUT I think it would be impossible for me to prevent the condition to be copied to the positions.

    And, by the way, talking to our customer it looks like they tried to avoid a problem they are having in outbound deliveries and they thought they would avoid so... as they are probably not right everything needs to be studied again. So, I thank you very much again to you and close the thread.

    Best Regards,

    Add comment
    10|10000 characters needed characters exceeded