cancel
Showing results for 
Search instead for 
Did you mean: 

Background Job spool / output file in different app server

RafaelVieira
Active Participant
0 Kudos

We are working with 2 ECC app servers, A and B.

I've defined in app server A a background job to run an abap report and this report creates and submit 4 other background jobs.

Each of these 4 jobs is regarding an abap report which outputs a text file in the server.

The question is, why are the jobs generating the files in different app servers randomically?

The same file, in the 1st execution was generated in app server A, and without any change was generated in app server B, in the job 2nd execution?

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This is because you have batch procesess on each server and the system does automatically jobs load balancing.

If you don't want it, you can force (by programmation) the server to use when creating the children jobs.

Regards,

Olivier

RafaelVieira
Active Participant
0 Kudos

Olivier, thanks for your explanation.

Is there any other way to do that or programming is the only way?

Tks again.

Former Member
0 Kudos

If your primary goal is having all the resulting text files in the same server, rather than running all the batch jobs in the same server, then you (or your basis admin) could create common directories for all SAP application servers. Details will depend on your operating system, of course.

regards

RafaelVieira
Active Participant
0 Kudos

It was solved by setting Target Server through JOB_SUBMIT FM through the abap code.

Thank you all.

Answers (1)

Answers (1)

rupali_karbhari3
Active Contributor
0 Kudos

Hi,

You can specify server name whille creating a batch job , so that it gets executed to that server only.

there is one field (in SM36 during creation or SM37 while modifying batch job) called "Exec Target " , where you can specify server name.

Hence you can plan to run your some batch jobs on server A or B.

Regards,

Rupali