cancel
Showing results for 
Search instead for 
Did you mean: 

How to lock targetserver execution in job scheduling

former_member117942
Participant
0 Kudos

Hi,

I've a SAP System with a central instance and two application servers.

I would set authorizations so that users when they schedule their jobs (example in SM37), the field target server is locked and set to a particular application server.

Any idea ?

Thanks

Maurizio Manera

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member215759
Active Participant
0 Kudos

Hi,

Giving an overview of the tables involved in batch processing. The jobs details are stored in the system on the following tables.

TBTCO - the overall state and information of a background job

TBTCS - the view of the jobs that the time based job scheduler has

TBTCP - the steps a background job consists of.

BTCEVTJOB - the view of the jobs that the event based scheduler has

BTCCTL - Controls what BTC schedules runs in system

Fields include:

===============

JOBNAME, JOBCOUNT: unique identifiers(i.e. key fields)

SDLDATE, SDLTIME: scheduled date & time of when job is created

SDLSTRTDT, SDLSTRTIM: scheduled start date & time

These are the two fields EXECSERVER & REAXSERVER you should be concerned

EXECSERVER: executing server; filled if you specify a target server

REAXSERVER: filled at run-time; gets same server as EXECSERVER if target.

Regards,

Snow

Former Member
0 Kudos

Another idea would be assuming you are planning to run Background jobs on one or two dedicated servers, is to create a server group for background jobs in t-code SM61.

Check [SAP Note 786412 - Determining execution server of jobs w/o target server|https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=786412]

After defining the server group SAP_DEFAULT_BTC jobs will always run on the servers defined in that group.

Hope this helps.

Thanks,

Naveed