4SAP Background Workprocessor
4SAP Background Workprocessor
BASIS ADMINISTRATION
Background processing
WHAT THIS TOPIC?
I am Dialog Work processor. I am not able to run
the report for generating payroll for 10k. My
memory is exhausting
Generation of
payroll for
10K
employees
Background Work
Dialog Work Processor
Processor
I am Background Work processor. I can
handle this easily. Run the report in
background Mode
Why is Background Processing Required?
Users can schedule jobs any time and an
infinite number of times.
8
To create a background job, use
transaction SM36.
9
1. Give the Job Name & click on Step
2. Click on ABAP Program and
provide details such as Program
Name & Variant
3. Review the Overview of Step
Details
Jan - 2007 10
• A variant is a set of filters and input parameters that
you define to view specific subsets of data from the KPI
or the report.
Jobs can be scheduled to run Jobs can be scheduled to Jobs can be scheduled to run
immediately or at a particular run after another job has after an event has been
date/time. been completed. “raised/triggered”.
Jan - 2007 12
Job
Scheduling
13
Job
Scheduling
14
Scheduling Job After an Event
If you check the ‘Periodic Job’ option, the system starts a new
job each time the specified event is raised.
15
Job
Processing
JOB
JOB
JOB
Background Background
scheduler Dispatcher
Work Processor
16
Job
Processing
Job
Processing
Scheduler
Start Module
Job Log
Spool Job Step #1
List Message
Write
End Module
Job overview
SM37
Job Status
Job
overview
20
• A job can have the following statuses:
• Scheduled
The steps of which the job consists have already been
defined, however the start condition must still be defined
• Released
The job has been completed defined including its start
condition. A job cannot be released without a start
condition. Only an administrator or a user with the relevant
authorizations for background processing can release a job.
This ensures that unauthorized users cannot execute jobs
Job job scheduler has placed the job in the wait queue for a
free background work process
• Delay
• The execution of the job is delayed due to unavailability
of free Background work processes.
Job
Overview
23
tcode SJOBREPO
24
SM64
Event based
scheduling
26
27
• There are two types of users involved in
Background background processing —
• A background user is a dialog user, and this user
Users owns all jobs in the system — It is advised to use a
background user rather than any other dialog
users to create background jobs
• When a job step is defined — you need to define
the name of the user in whose name the step
would be executed. The specified user is used for
the authorization checks during the execution of
the step. By default, the name of the logged-on
user appears in this field. As a best practice use a
system user with SAP_ALL authorization for this
purpose Example: BATCH_USER
28
Execution target
29
• What is Background Processing
• Why it is required
• Phases of Background Processing
• Job Scheduling Steps
• Job Processing Steps
• Job Overview Steps
• Job Statuses
• Job Log Overview
• Standard Jobs in ECC & S/4 HANA
• Event Based scheduling
• External Operating System Command
• Background Users
• Exectuion Target
KEY TAKEAWAYS:
Thank you.
Take a short break before starting the next
session