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: 

Print TO during Delivery Creation

Former Member
0 Kudos

Hi! gurus,

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?

Regards,

Digvijay

1 REPLY 1

Former Member
0 Kudos

Put your code in Function module, and call this FM in user-exit in "UPDATE TASK".

Regards,

Suraj