cancel
Showing results for 
Search instead for 
Did you mean: 

Background jobs

Former Member
0 Kudos

Hi,

t-code btctrns 1 and btctrns 2 are use to reshcedule and deschedule background job during an upgrade or apply SP. My question is, for those job that are suppose to run within the upgrade period, eg from 2pm - 3pm. will it still run after btctrns 2 is executed after 3pm ?

Regards

Lauran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lauran,

While Sheduling a B/G job if you specify time period like FROM and TO in SM36, th ejobs will automatically not execute once the time completes.

The purpose of report BTCTRNS2 is, it will not stop already running jobs. What it will do is it stop a job called <b>rdisp/btctime</b>, which fetches Sechduled B/G jobs from TBTCT and TBTCS tables.It can not stop already running jobs.

Regards,

Suraj

Message was edited by:

Suraj kumar

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Lauran

If your jobs are schedled to run between the period, so the jobs will execute between these periods. after the mentioned periods jobs goes to release mode and it will be activated between the periods.

REgards

Anwer Waseem

Former Member
0 Kudos

Hi All,

Thanks for all the valuable answer.

Regards

Lauran

Former Member
0 Kudos

Lauran,

Some more info...

Concerning BTCTRNS there is not much documentation. The reports were introduced for R/3 upgrade issues in order to cancel batch processing. BTCTRNS1 will take all currently Scheduled and Released jobs and move them into a "special" status. When you are ready to restore them to their previous status simply run BTCTRNS2.

BTCTRNS1 just sets the status flag of each released job (status=S) to status=Z (Z euals to "doze")

It does not cancel running jobs, neither does it reset the time schedule of the jobs

BTCTRNS2 does the opposite of BTCZRNS1

The result is: The batch scheduler which runs in dialog mode (SAPMSSY8) does not start any batches with status=Z.

If you run BTCTRNS2 some time after you started BTCTRNS1, the sleeping jobs are scheduled to start immediately. Depending on parameter rdisp/btctime and number of BTC work processes all or some of them are started every rdisp/btctime seconds, until the queue of waiting jobs is emptied...

SAP Note:37425

Cheers,

Bidwan

Former Member
0 Kudos

Hi kerry,

BTCTRANS2 can only show those jobs which are released state

i.e, some jobs which are scheduled as to run for every hour but not to run after 1 hr delay

in such state these will fail to run

ex : job1 is scheduled to run at 2.30 am not to run after 3.00am

you have ran the report BTCTRANS1 at 2.00 am

and then after upgrade you ran report BTCTRANS2 at 3.30am

in this condition job will get cancelled

Samrat

Former Member
0 Kudos

Hi,

Yes it will run if the uprade is done.....