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: 

About Background Jobs???

Former Member
0 Kudos

can anyone tell me

1)how can i stop a background job during the runtime of that job???

2)how can i delete the background job which are already finished??

i promise to give points ....

bye

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Arjit,

Use transaction code SM37 for your requirements.

To delete a background job.

Complete Jobs will have a status has Released

1) Goto SM37 and Give your Job name and Click on execute

2) Check the Job and Click on Delete( Shift+F2)

This will delete the Job

To Stop a background active Job

1) Goto SM37 and Give your Job name and Click on execute

2) Click on the check box against job

3) Goto Job Menu and select Cancel active Job ( Ctrl+F1 )

Thanks,

Vinay

2 REPLIES 2

Former Member
0 Kudos

Hi Arjit,

Use transaction code SM37 for your requirements.

To delete a background job.

Complete Jobs will have a status has Released

1) Goto SM37 and Give your Job name and Click on execute

2) Check the Job and Click on Delete( Shift+F2)

This will delete the Job

To Stop a background active Job

1) Goto SM37 and Give your Job name and Click on execute

2) Click on the check box against job

3) Goto Job Menu and select Cancel active Job ( Ctrl+F1 )

Thanks,

Vinay

0 Kudos

The statuses of a background job are:

scheduled

released

active

finished

cancelled, and so on. If you go to sm36 and schedule a job without giving time-constraints, it would go into a scheduled-status. Then, if you go to SM37 and provide the runtime details (immediate, periodic, start-at-time, and so on), the job goes into a released-status. At this point, if you change your mind and need to cancel, go to JOB-> "released->scheduled", and this will do the job.

Once the resources are available and time-constraints met, the job goes from released to ACTIVE, which is when the job is actually running. At this time, you'll see the STOP button in SM37 to stop the job, and it will then be in a status CANCELLED.

If you're unable to cancel using SM37, you could then go to SM50 or SM66, and very carefully identify the thread which is executing your job. BE VERY CAREFUL TO IDENTIFY THE CORRECT THREAD! then, there are options in the menu to kill the job manually - my recommendation, be sure of what you're doing on these transactions, they're quite powerful and so are also quite risky to use!

Not sure what "with core" and "without core" mean - any clues?