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: 

delay - job created by the RAISE EVENT

was_wasssu
Participant
0 Kudos

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

6 REPLIES 6

SimoneMilesi
Active Contributor
0 Kudos

HI!

If the program executed by the job is a custom, you can put a "WAIT UP TO 60 seconds" instruction at its start.

0 Kudos

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

0 Kudos

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...

ThomasZloch
Active Contributor
0 Kudos

Have you tried using COMMIT WORK AND WAIT and raise the event afterwards?

Thomas

0 Kudos

If he is in a customer function or an user-exit, it's a bit too... risky put a commit work.

0 Kudos

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