cancel
Showing results for 
Search instead for 
Did you mean: 

Update Condition in VA01/VA02 ( Manual problem).

Mahmoud-Farag
Participant
0 Kudos
1,914

Dears , Hi all , I need some help with VA01 and VA02 the header conditions,

my task is make update condition to work automatically after pressing enter or enter the condition type and amount,

the current behaver is that after enter the condition and type,
I have to check -> update condition -> "Carry out new price " to update the condition value .
So i need to make update condition "Carry out new price" to work automatically .
in the image (1) the condition value in the first line display after update "carry out new price"
but the second line does not display because I did not click in the update
I need it to be automatic . is there any solution configuration or enhancement to be done .?

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Mahmoud-Farag
Participant
0 Kudos

https://answers.sap.com/questions/2924775/user-exit-for-new-pricing-at-header---urgent.html
I followed this thread and I use the enhancement in User exit save_prepare .
and it works with me when Save not with enter.

Thanks to every one 🙂

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor
0 Kudos

My first question would be how frequently, this is happening? Ideally, a valid pricing condition record should exist when a sale order is created in which case, what you expect can be eliminated. Rather going for custom validation, try to avoid with the standard approach

Mahmoud-Farag
Participant
0 Kudos

I need that automatic update to work every time the header conditions changed ,

Amiran
Explorer
0 Kudos

Hello,

Include: MV45AFZB

FORM USEREXIT_NEW_PRICING_VBAP CHANGING NEW_PRICING.
* Example: new pricing, when field 'Route' is changed
* if vbap-route ne *vbap-route.
* new_pricing = 'B'.
* endif.

This exit might be suitable for your requirement. I would suggest to find the respective information for this exit on this forum as well.

Kind Regards,

Amiran Dartsmelia

Mahmoud-Farag
Participant
0 Kudos

thank for your replay ,
I put a break point in the code , and I found that user exit woke only with the item level (item condition),
I want with header level ( the header condition) ...

Amiran
Explorer
0 Kudos

Hi,

Please try this exit USEREXIT_NEW_PRICING_VBKD

it's in the same MV45AFZB include.

Kind regards,

Amiran Dartsmelia