09-06-2010 8:07 AM
It's possible to change the scheduling of a job created by a RAISE EVENT, and instead of executing immediately, to schedule it as +1 minute delay?
Thanks!
PS: i have to wayt because, after the event, some tables are updated in my program and i have to wait the commit
Edited by: Was Wasssu on Sep 6, 2010 9:08 AM
09-06-2010 8:12 AM
HI!
If the program executed by the job is a custom, you can put a "WAIT UP TO 60 seconds" instruction at its start.
09-06-2010 8:40 AM
Yes, the program is a custom. Could be inserted a delay here. But if i don't want a delay in that program? Any other solution exists?
Thanks
09-06-2010 8:51 AM
You can put a parameter as input with the delay time.
Or you can check if sy-batch = 'X' and, only in this case, you can call the wait instruction...
09-06-2010 8:56 AM
Have you tried using COMMIT WORK AND WAIT and raise the event afterwards?
Thomas
09-06-2010 8:58 AM
If he is in a customer function or an user-exit, it's a bit too... risky put a commit work.
09-06-2010 9:03 AM
That's true, but from the sparse information in the original post I understood that he is issueing a COMMIT WORK anyway in his code. So Mr. Wasssu, are you inside a customer exit? Anything else we need to know?
Thomas