In this lesson, you will learn about the basics of background processing.
Business Example
Reports that are to run on a regular basis and long-running programs are scheduled as jobs in the SAP system. The administrator schedules jobs and monitors the system's background processing to ensure that it is running correctly.
The Idea of Background Processing
Dialog work processes for processing end-user requests should generally be made available immediately, or at least without a noticeable wait time. Therefore, dialog work processes should only be used for requests with short processing times to ensure the maximum possible throughput and rapid availability. Up to SAP_BASIS 754, the system profile parameter rdisp/max_wprun_time exists for this reason. It limits the maximum runtime of a dialog step within a dialog work process. This should ensure that dialog work processes are not blocked by long-running programs, thus interfering with online operation. After the maximum runtime has elapsed, the program is terminated.
The operation of the parameter rdisp/max_wprun_time is described in detail in SAP Note 25528: Configuration of maximum work process runtime - parameter rdisp/max_wprun_time .
Note
As of SAP_BASIS 740, a more precise setting is possible: The maximum runtime can be set using the following parameter depending on the kernel priority (high, medium, low):
rdisp/scheduler/prio_high/max_runtime: Maximum runtime for requests executed with priority high (for example, GUI requests) .
rdisp/scheduler/prio_normal/max_runtime: Maximum runtime for requests executed with priority medium (for example, RFC requests).
rdisp/scheduler/prio_low/max_runtime: Maximum runtime for requests executed with priority low (for example, dialog requests triggered by background requests).
However, the following applies for compatibility reasons: If the parameter rdisp/max_wprun_time has been configured explicitly, its value overwrites the more specific settings.
As of SAP_BASIS 755, the parameter rdisp/max_wprun_time is removed from the ABAP kernel. Also the upgrade procedure removes it from the profiles during upgrade to SAP_BASIS 755 and above. See SAP Note 2918906: Deprecation of Profile Parameter "rdisp/max_wprun_time" for details. The set of the three new parameters above provide much more flexibility. Moreover, SAP assumes that the default values of the new profile parameter should meet the needs of most customers and their applications. But because of the mentioned compatibility rules of releases prior to SAP_BASIS 755, their values are often overwritten and the benefit is lost. Also, a switch from an old profile where rdisp/max_wprun_time has been set to the new priority-based defaults might cause incompatibilities if the ABAP code of the application is not well written.

As the figure Purpose of Background Processing illustrates, you can use the background work processes (sometimes also called batch work processes) for long-running tasks. You can also use background processing for recurrent tasks, such as the daily database backup or the month-end work for financial accounting.
You can define new jobs in transaction SM36. You can also call the Job Wizard (transaction SM36WIZ) from here. Alternatively, you can schedule background tasks in transaction SA38, along with numerous application transactions.
Note
In most cases, background tasks are scheduled by experts in the user departments. As the system administrator, you ensure that the scheduled jobs can actually run in the system (by ensuring a suitable system configuration, for example).

As shown in the figure above, when you define a job, you have to enter the following information:
General specifications such as job name, job class / priority (default: "C") and (optional) execution target / target server (group)
Definition of one or more job steps
Definition of a start condition (time-dependent or event-dependent)
Job steps and start criteria will be discussed in more detail in the remaining part of this lesson.
The Job Wizard supports you when defining jobs by guiding you easily through the creation process.
Note
The way in which a job is created ("classic" or using the Job Wizard) has no influence on the result. Some functions, such as specifying an SAP user for each step, or swapping steps, are not available with the Job Wizard.