‎2006 Jul 31 10:36 AM
Hello,
I have necessity when Delivery date (<b>VBEP-EDATU</b>) alter at item level I should to update delivery date in VBKD fields <b>(PRSDT, FKDAT)</b> Pricing Date and Invoice Date. I did code in user exit save document prepare of sales order
Values are getting updated correctly I have checked in the debugging but when I open sales order again it holds old values at VBKD fields. Basically these two fields re-<b>define pricing</b> in conditions tab.
Would appreciate if anyone let me know the reason.
Thanks
Suresh
‎2006 Jul 31 10:55 AM
Try using sub-routine: userexit_move_field_to_vbkd or userexit_save_document or userexit_field_modification and see how it acts.
Thanks
Eswar
Note: Reward for helful answers
‎2006 Jul 31 11:10 AM
Hello Eswer,
As i mention i can able to see updated values while sales order leaving the <b>MV45AFZZ</b> userexit but after it is getting change somewhere in standard program.
Thanks
Suresh
‎2007 Apr 13 1:18 PM
Suresh,
Did you ever get this to work. I am experiencing the same problem.
Thanks.... Ron
‎2014 May 07 3:49 PM
Hi Suresh and hi Ron,
I've found this old thread....
I'm working at the same problem, my customer NEED price date = first delvery date.
Immediately I've answered "NO, I can't do it.... too risk".
But he absolutely need this fucxxx userexit.
I'm trying with the way of APPEND XVBKD, if not exist,
and it work quite good....
but in about 5% of tests, I'm getting a short dump, due to SAPSQL_ARRAY_INSERT_DUPREC on VBKD,
and I'm not able to understand why it happens....
How did you solve this problem?
Can you give me some details?
thank you very much.