Application Development and Automation 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: 
Read only

VBKD table sales order process

Former Member
0 Likes
1,451

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

4 REPLIES 4
Read only

Former Member
0 Likes
923

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

Read only

Former Member
0 Likes
923

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

Read only

0 Likes
923

Suresh,

Did you ever get this to work. I am experiencing the same problem.

Thanks.... Ron

Read only

zaipo
Explorer
0 Likes
923

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.