Skip to Content

Assign Batch server group automatically

Nov 10, 2017 at 09:45 AM


avatar image
Former Member

Hello together,

I need to assign a group of users always to use a specific server group whenever they schedule a Batchjob.

For this I defined a Server group in sm61. But mostly the users do not select the execution target when they schedule a batch job. Therefore I'm looking for a way to assign Batch jobs automatically to batch server group depending on the scheduling user.

Unfortunately, I did not find a parameter ID that I can pre-allocate with a server group.

any idea how to achive this?

Kind regards Alex

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Matt Fraser
Nov 10, 2017 at 12:48 PM

Hi Alexander,

In SM61, if you define a job server group called SAP_DEFAULT_BTC, then all jobs that are not otherwise assigned to a job server group will be executed in this group. So, this becomes your fallback or default.

I'm not entirely sure how you can setup different groups and restrict users to those groups. One thought you might experiment with is in authorizations: assign the users the authorization object S_BTCH_JOB, and for the authorization value JOBGROUP try setting a job server group name in here. I haven't tried this myself, and the online documentation simply says "always put * in this field," but why else have the field? Could be worth a shot. However, if you do this, I doubt it will actually default the users' jobs to that group; it will simply give them an authorization error if they choose anything else.


10 |10000 characters needed characters left characters exceeded