06-30-2017 8:52 PM
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.