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.
0 Comments