Skip to Content
0

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

Jun 30, 2017 at 07:52 PM

51

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers