Header Ads Widget

Responsive Advertisement

Background Jobs(SM 36)




SM 36 To define the Background Jobs
SM37 To monitor Background jobs
SE38 ABAP editor

There are 3 types of Background jobs
1 ABAP Programme
2 External Programme àOS Programme
3 External Commands à OS Commands

There are 3 job classes

a. High Priority
b. Middle Priority
c. Low priority (Default)

Exec Target: - If nothing is monitored then it will occupy which ever are free instances.

If we mention any target server for particular Background job that job will be bounded for that particular application server.

If application server goes down. It will wait until it comes up.


A batch user should be provided in the user name

S_BTCH_ADM à Admin for batch jobs
S_BTCH_NAMà Specifying the user name
S_BTCH_JOBà Authorization to run the batch jobs

Start Conditions.
Immediate: - It will run batch jobs immediately
Date/Time:-Specify the date/Time to run the Batch Jobs
After Job: - Dependent on other job which should be run
After Event:-

At Operation Mode:-

Job Status

1 Schedule,
2, Release
3, Ready
4, Active,
5, Finished
6, Cancelled.

Schedule: The step of the background job is saved. No start condition.
Released: The step is saved with start condition
Ready: The start time has reached and waiting for resources.
Active: The process is being running
Finished: Completed successfully.
Cancelled: Terminated with errors


1 Rerun the old batch jobs
2 Start from failure steps
Reasons to fail the batch jobs

1 User is not having the authorization to run the batch jobs.
2Varient does not exist
3 Duplicate records existing in the database
4 Resources are not available
5. Application server is down
6 If it’s in the loop of ABAP programme the batch jobs keep on active status.
7 To analyze the ABAP programme we can put active job in capture mode.

Job Capture

Capturing jobs is only for ABAP programmes not for external commands or external programme.

To cancel the active job we need to go to job details there we get the pid and application securename.Then we go to SM51 and double click on the application server and cancel the process by selecting the pid.

BTCTRn(delta)1

SE38 àbtctrns1 Scheduled to upgrade (This will hold the released jobs)
SE38 àbtctrns2 Rescheduled to upgrade (This will release the hold jobs)

Were we can see all standard jobs
SM36
RSBtcdel

Practical

1> SM36

Job Name àStart with Z or Y
Job ClassàA or B or c (Default) Low priority
Status àSchedule
Exec Target àTarget Server (Not mandatory it will run on any free application server)
Step
2>Click on ABAP Programme
Name àABAP Programme name (like RSBTCdel)
Variant àCan select the ABAP Programme
Check
Save
3>Start Condition
Immediate (It will start immediately)
Date/Time (To specify the date)
Scheduled Start
Start Afterwards

Period Values
Hourly
Daily
Weekly
Monthly
Other Period
Save.

To Monitor (SM37) Batch Jobs
Job Name(*)
User name(*)
Job status
Scheduled, Released, Ready, Active, Finished, Cancelled
Select the step and click on job change to edit to immediate.

Post a Comment

0 Comments

SPAM/SAINT Support Package and Stack Upgrade in SAP