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: 

VBUK-UVALS field is not behaving as expected to check incomplete Order

Former Member
0 Kudos

Hello,

My requirement is to Save the order when Order will be completed else to throw a custom popup with some information. To do that I have written a code in USEREXT_SAVE_DOCUMNET_PREPARE.
The logic is to check VBUK-UVALL or VBUK-UVALS fields for 'A' or 'B' to display the message and 'C' to save it.
Now I can see the weird behavior of VBUK-UVALS field, even though my order is complete with no incompletion log, still the value for this field remains as 'A'.
But sometimes when I navigate to Status tab in Header after completing the order, the field value becomes 'C'.
Any idea why this random value of VBUK-UVALS is getting determined for completed order and if there is any other logic which I can go for checking incomplete order before saving it.

0 REPLIES 0