12-18-2012 2:58 AM
Hello,
I am raising one event in a program and passing that event name in a batch job so that batch job will run when program is run.
I have followed the same steps as mentioned in this blog :
http://wiki.sdn.sap.com/wiki/display/ABAP/Scheduling+background+job+by+triggering+an+event
My issue is :
When i run the program batch job runs for one time. But when the next time i run that program batch job is not executed.
That is because no batch job is in scheduled/released status.
For this i tried checking the option of periodic job but after this the batch job continues to run infinite and i had to delete my program to stop that batch job.
My requirement is every time i execute the program in which i have used BP_EVENT_RAISE one batch job should be triggered.
I am not able to achieve this . Please help.
Regards
Gaurav Ranjan
12-18-2012 6:16 AM
Solved the issue. Because of the fact my job was a dummy job and was not selecting any data that is why multiple batch jobs were called for periodic job... I have written some piece of code so that event calling takes some time and problem is solved. Or else we can write some code for wait for some seconds after the event is called.
12-18-2012 6:16 AM
Solved the issue. Because of the fact my job was a dummy job and was not selecting any data that is why multiple batch jobs were called for periodic job... I have written some piece of code so that event calling takes some time and problem is solved. Or else we can write some code for wait for some seconds after the event is called.
12-18-2012 6:23 AM
Sorry, but I did not understand that why do you have to define a periodic job in this case?