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: 

Raise event using FM 'BP_EVENT_RAISE'

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.

0 Kudos

Sorry, but I did not understand that why do you have to define a periodic job in this case?