Print TO during Delivery Creation
Due to Network Printer being not available, we want to Print TO automatically during delivery creation using User Exit REFRESH_DOCUMENT in include MV50AFZ1.
We are trying to fetch TO number from VBUK Table after delivery is saved and TO creation starts in the back ground in Update Task.
But problem is that when we write Select query in this exit for VBUK we find no TO as TO creation is still going on and VBUK is not yet updated.
but if i put WAIT and again write select query sometimes it finds the entry in VBUK but not for large number of TO items as still processing is happening in update task.
This is the last Exit and i need to print TO in only this.
Is there any way so that i can put a wait till Updation happens in background?
or i can check the TO creation is triggered or not and is yet over or not?