on 10-04-2014 12:35 AM
Hi Experts ,
I have a requirement to re determine pricing in sales order ,when ever Bill to party is changed at item level .
i checked the two places provided by sap in exit MV45AFZB which are for VBAP and VBKD related changes but they are not suitable for my situation. My changes are captured at VBPA level (Partner ) . I did place the code in these user exits ( userexit_new_pricing_vbap) but it was not called as there was not change at VBAP level .
Can any one please share the suitable place to trigger the Pricing or any other way to do it automatic rather than involving the user to press the Update button in condition tab ?
Thanks in advance for your help ,
regards,
swayam
Dear Swayam akki,
check the below screen shot for your reference, the below program triggers when ever if you change the sold to party at header level, one pop will come and ask for redetrimine the Taxes. check with the ABAPER to take this reference and implement for the item level if BILL TO PARTY changed .
Regards,
C.B Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi C.B Reddy ,
I checked your suggestion ,but it did not stop at that place .Let me explain the user actions in my case . User will change the Bill to Party and then either press enter or clicks on other tabs at Item level (Sales/Shipping/Conditions) etc and finally saves the document. Our requirement is as soon as the user Changes the Partner and clicks for next action ,the pricing should be redetermined. It is already happening for the fields changed at additional data Tab (Vbap-zzfields) .Now we want his happen in our case .
The Include FV45KFKD_VBKD_PRICING is finally calls MV45AFZB- userexit_new_pricing_vbkd. But when I do the above actions ,it was not triggered .
Let me know if i am missing any thing
Regards,
swayam.
Hi Swayam,
Instead of using the perform userexit_new_pricing_vbkd, try to use the perform userexit_new_pricing_vbap. You can set the new_pricing indicator as per your requirement based on the comparison of the structures XVBPA and YVBPA. If these structures are not available there, then you can use field-symbols.
Regards,
Shashi Thakur
HI Sashi,
I tried that as my first choice ,you can check my initial Post for that .It did not work ,the user exit was not triggered in my case.Now coming to my current findings , after C.B.Reddy posted the include, I put the code in the VBKD related user exit , it is redetermining at the time of saving .
But now my issue is it was not working for one sales order type and working for other sales order type .
I will update my findings on it at the earliest possible .
Regards,
swayam
Hi Swayam,
Please check the User exit " USEREXIT_PRICING_PREPARE_TKOMP"
here you can find VBPA table and respective fields
try and revert
thanks
santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
8 | |
8 | |
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.