In this section, the use and basic management of background jobs are introduced. More advanced options and information about the background processing system are explained in Chapter.Background jobs are definitions of programs, printing specifications, and start times to be processed by the SAP background processing system. The programs can be either ABAP reports or external programs.With background processing, the system automatically runs the programs specified in the job at the scheduled time for its execution.
here are facilities to monitor the background jobs arid for displaying the job's results. Background jobs have the advantage over traditional online processing that once the job is defined, the background processing system takes care of running it. Otherwise, launching a program interactively locks your session for further input until the program is finished. Remember that in interactive dialog work processes there is a limit on the time a process can be running. If the programs surpass this limit, the system displays an error and the program is canceled. In cases of long-running reports, background jobs are the only way to execute those programs.
Because background jobs can be scheduled to run at any time, another of their advantages is that the execution of long reports can be specified to run at periods with less system load, such as nighttime or weekends. The background jobs offer a great advantage for defining automatic and periodic execution of the jobs, for example, periodic database cleaning jobs or the system performance collector, which runs hourly as a background job. System administrators have to define these jobs only once, and then they are regularly executed at the scheduled times. A report defined in a background job generates the same output as one run interactively. The output list can be either printed directly or sent to the output controller.
Because job definitions are held on the SAP database, jobs are available even when the whole SAP system or the computer itself is restarted. Jobs that were running at the time of a shutdown are canceled by the system, and the owner of the job has to schedule it back. There are several ways to define and schedule programs for background execution:
either online or in the background. Within the ABAP editor, this function is under Program | Execute | Execute in Background. Upon choosing this option, the system displays the screen for defining and scheduling the job. At any time and anywhere in the SAP system, a job can be defined by selecting System | Services | Jobs | Define Job. Alternatively, system administrators can also go to the job definition screen by selecting Tools | CCMS | Jobs | Definition or directly with transaction SM36, where the job information must be specified.
Initial Job Definition screen
Scheduling Background Jobs
The system offers several ways to define background jobs as stated earlier. A job definition basically consists of the following:
There are many other options when scheduling a job, such as specifying the host to execute the job, indicating the priority, deciding whether to execute it periodically, specifying a system event instead of time, and so on. Since release 4.6 of SAP R/3 and other SAP Basis-based solutions, you can also find a Job wizard, which will guide you step by step in the process of defining a background job. To schedule a job, go to the job definition screen by selecting System | Services Jobs | Define Job from any menu. On this screen, enter a name for the job first. You can choose any meaningful name. In the Job Class input field, you can specify A B, or C. Job class C is the normal and default value. A and B are higher-priority classes, and users must have authorization for those classes.
Users can enter a target host (Exec. Target) for background processing or leave it blank for executing it on the default background server. Clicking on the possible entries arrow displays a list of available background servers. Select the start time for the job by clicking on the Start Condition button. The screen for specifying the start lime has many available options. Normal options are either Immediate, which schedules the job as soon as you save it, or Date/Time, which schedules the job for the date and time specified. The other options follow.
Check your entries with the Check button and, if the system does not complain, save your entries. The system then takes you back to the job definition screen. Now, you mustspecify the program or programs to execute. Because a job might contain several programs (either ABAP or external programs), the system names them as steps. Click on the Define Steps button on the application toolbar. The system displays the Create Step screen. Initially, the input fields of the screen are grayed out until you either press the ABAP Program, External Command, or External Program buttons, depending on the type of program being sent to the background. Clicking on one of the buttons changes the color of the associated input fields. Select over one of the fields and fill in the needed information:
When specifying external programs, such as C programs, shell scripts, or other supported types, the full pathname must be specified together with the parameters the program might need, such as options or filenames, and the hostname where the program will be executed. Make sure the system can access the specified host and path and that it has the right permissions. Press the Save button to save the job. At this moment, the job is scheduled to be processed by the background system at the specified start date and time.
job that has been scheduled does not actually run until it is also released. To release a job, the user must have the right authorizations. If the user is not authorized to release jobs, then administrators must release the jobs for him or her. This is a security measure to better monitor and control the background processing system. To check the status of your background jobs, select System | Own Jobs from any SAP screen in the system. If you see a job with status Cancelled, it means the job has terminated abnormally. Press the Log button to find out the reason for the failure. System administrators can monitor background jobs graphically from the facilities of the CCMS.
SAP BASIS Related Interview Questions
|SAP CRM Interview Questions||SAP HR Interview Questions|
|SAP ABAP Interview Questions||SAP HANA Interview Questions|
|SAP Crystal Reports Interview Questions||SAP SOLMAN Interview Questions|
|SAP Security Interview Questions||SAP BPC Interview Questions|
|SAP Netweaver Interview Questions||SAP UI5 Interview Questions|
|SAP Smart Forms Interview Questions|
Sap Basis Tutorial
Sap: From Sap R/3 To Sap Netweaver
The Architecture Of The Sap Web Application Server
Sap Netweaver: An Overview
Using Sap Systems
Upgrading To Sap R/3 Enterprise: The First Step Into Sap Netweaver
The Change And Transport System
Development Options With Sap Solutions: Abap Engine
User Management And Security In Sap Environments
Web Application Server System Management
Performance And Troubleshooting With Sap Solutions
Sap For It Managers: Implementation, Planning, Operation, And Support Of Sap Systems
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.