cancel
Showing results for 
Search instead for 
Did you mean: 

Batch job

Former Member
0 Kudos

All,

Can someone please tell how i can run a batch in foreground.

we have several jobs setup in sm37 to run in the background. How can i run one of the sm37 jobs in foreground?

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

SM37 itself is for background job.

For running that job in foreground,goto the T.Code "SM37",Enter the batch program name.

Execute.

Select the job.Click on Step.

Get the program name.Goto the T.Code "SE38".

Pass this program name.Execute.

Here Select the variant.

Execute the program.

Regards,

Krishna.

Answers (1)

Answers (1)

Shiva_Ram
Active Contributor
0 Kudos

When you say you want to run foreground, do you mean to run the job immediately instead of a schedule time?

If the job contains only one program, then the above solution proposed should be fine. If the job contains multiple programs with multiple variants and if you dont want to change the variant, then to run a background job in foreground, in SM37, select the job, then go to menu Job->copy.Give a new name to the job and then copy.Then selec the new job, go to menu Job->change. Click on the start conditoin button on the top. Then click on the immediate button on the starttime window.Then click on the save button. Then again click on the save button on top of the screen. This will allow the job to run immediately.

Regards,