Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Plan Cost update during sales order save

Former Member
0 Kudos

Hi,

While the sales order save, plan cost is getting calculated at background. I want to change that cost. Is there any user exit, BADI availble to do so.

I tried sales order save user exits like MOVE_TO_VBAP, SALES_DOCUMENT_SAVE, SAVE_DOCUMENT_PREPARE but it doesn't works.

Is there any other way to change costing which gets generated during sales order save?

Please reply.

2 REPLIES 2

Former Member
0 Kudos

Hi,

USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ should work. Which internal table strcuture you are trying to update?

Regards

Vinod

0 Kudos

Internal structure is "KKB_DUMM" and field is "WERT".

I observered that value in this field gets updated in VBAP-WAVWR field, but by changing this field, cost is not getting updated as well when I save sales order VBAP-WAVWR takes the orginal value that is cost.