cancel
Showing results for 
Search instead for 
Did you mean: 

Update condition price at SO creation / change

0 Kudos

Hi Gurus,

Could anyone kindly help me to update the SO price during creation / change?

[Requirement]

Overwrite the condition price with the scale price, which is determined with referring to the total quantity of  the same material under the document.

[Example]

Condition record

Condition type: ZLST

Material: A

Scale price:

101 - 200 qty -> 10USD

201 - 300 qty -> 9USD

301 - 400 qty -> 8USD

Sales Document

SO: #12345

Item 100: Material A, 100 qty

Item 200: Material B, 100 qty

Item 300: Material A, 150 qty

Here, determine 9USD for ZLST of both item 100 and 300, by summing up the quanty.

This is supposed to be done by CONDITION_RECORD_READ.

[Question]

How / where can I pass the ZLST price (9USD) for the price to be saved?

I am trying to change the value under USEREXIT_PRICING_PREPARE_TKOMP (MV45AFZZ), but so far out of luck.

Does anyone know how to overwrite the condition price with arbitrarily prepared price?

Your help would be greatly appreciated.

Best Regards,
Mari

Accepted Solutions (0)

Answers (1)

Answers (1)

siva_vasireddy2
Active Contributor
0 Kudos

you can use the following Exits

  • USEREXIT_NEW_PRICING_VBAP
  • USEREXIT_NEW_PRICING_VBKD
0 Kudos

Hi Siva,

Thanks a lot for your advice!

I was successful to update the price.

But one thing I want to know, how can I trigger the exit?

Though I set the break point, first time I just saved the document it was not triggered.

When I pressed the Update bottun in Condition tab, it was triggered.

Is there any way I can trigger it upon saving without pressing Update bottun?

Thanks a lot in advance.

Best Regards,

Mari