cancel
Showing results for 
Search instead for 
Did you mean: 

execute ABAP-BCH-reports BTCTRNS1 + BTCTRNS2

christoph_ostrop
Active Contributor
0 Kudos

we want to suspend all BCH-Jobs for a specific period (some hours during backup),

then (after a while) release all BCH-Jobs again.

i already know, for this option, there are 2 abap-reports BTCTRNS1 + BTCTRNS2.

but is it possible to submit both reports for repeat execution (periodic execution daily),

e.g.

Z_BCH_SUSPEND => BTCTRNS1

Z_BCH_RELEASE => BTCTRNS2

but running report BTCTRNS1 suspend all other BCH except the BTCTRNS2-job  (Z_BCH_RELEASE)?


any idea?

Christoph

Accepted Solutions (1)

Accepted Solutions (1)

behlau_carlos
Contributor
0 Kudos

Hello Christoph,

maybe a alternate idea would be, to organize your job management via Redwood or the free of charge version of SAP => Central Process Scheduler (CPS).

You are able to define queues and assign the job to these queues.

Via process chains you can stop queue and release them after your backup programm is finished.

It might also work with CPS/Redwood to run BTCTRNS1/2 as CPS/Redwood connects over RFC/API.

Best regards

Carlos Behlau

christoph_ostrop
Active Contributor
0 Kudos

Hi, Carlos,

thanks for your answer:

In this case it is the SAP-SolutionManager system itself with enabled E2E-Monitoring who is executing several BCH-Jobs during backup-time.

yes, we have that "free of charge version of SAP" => Central Process Scheduler (CPS) running,

but not yet for all Batchjobs in all SAP-systems,

and the issue is, that in SAP-Systems there are a lot of situations and a lot of posibilities where BCH-Jobs are initiated, e.g. several BCH-Jobs were evoked via installation-assistent-jobs or by pressing some buttons or via TCOLL table or evoked by events.

So it is very hard to controll all BCH-Jobs via CPS.

but, of course, we could submit these 2 mentioned reports via CPS at the desired time,

that is right.

Z_BCH_SUSPEND => BTCTRNS1

Z_BCH_RELEASE => BTCTRNS2

Thanks,

Christoph

Answers (2)

Answers (2)

Former Member
0 Kudos

Christoph,

I got an idea.

1. Create your custom suspend and release jobs in SM37 as "event trigger" based.

2. Create two EVENT in SAP, one for suspend, the other for release.

3. Write shell scripts or batches (depends on your platform) to use sapevt program to send event out.

    You might need two scripts

4. Use cron or Windows task manager to schedule the scripts/batches.

I haven't done this before but it should work in theory.  Hope you can make it true and share to us.

Check the usage of sapevt.

Sriram2009
Active Contributor
0 Kudos

Hi Christoph

For this you have to create the Z program from BRCTRNS1 with variables selection. in our production environment we are suspending the all the BG jobs (except release jobs) during the peak times. after that its will release with help of BTCTRNS2

BR

SS

christoph_ostrop
Active Contributor
0 Kudos

thanks,

why SAP did not deliver   such simple things for real usage,

it would make the reports really reasonably usable.


Thanks

Christoph

Sriram2009
Active Contributor
0 Kudos

Hi Christoph

Those two program are used when your are performing the System copy(Export the Source system), not on normal usage. some of the customers they are creating in the custom Z program with variants. SAP may be consider with upcoming versions.

Regards

SS