Beruflich Dokumente
Kultur Dokumente
in SAP
1. To create a background job in SAP, Use the transaction code SM36 to enter the Define
Background Job screen
To schedule the background job according to one of the options, click the matching push
button at the top of the window. After the selection, the appropriate entry fields will become
active in the window. The two most common options will maybe Immediate and Date/Time.
To run job immediately in background. Click the immediate pushbutton, and then the active
save button. No additional entries are essential.
To run job in background according to a specific date and time, click on the Date/Time
pushbutton. Several fields will appear. Enter the desired values in the Scheduled start fields.
Entries in these fields are mandatory. The background job will be released at this data and
time but may wait in a queue. To avoid a job waiting in the queue from running after a certain
time, enter the desired values in the No start after fields.
When either Immediate or Date/Time options are chosen, the Periodic job click box will appear
at the bottom of the screen. Click this box if you want to run this job at periodic intervals. Options
for periodic scheduling appear when the Period values pushbutton is clicked. The background
job will run at periodic intervals after the first background job runs. In addition, a Restrictions
pushbutton will appear. In the Restrictions window, there are several options. Click only on
workdays to limit the days the job releases on. We limit these days by specifying a calendar at
the bottom of the window. We can have different calendars bases on requirements.
8. Click on Steps pushbutton to define the program(s) that will run in the background.
10. Enter the ABAP/4 program name in the Name field and, if necessary, enter the variant in
the Variant field. A variant specifies the set of parameters that an SAP program needs to
execute.
11. To run external programs on the UNIX platform may be executed using the SAP
scheduler. Click the External program pushbutton & enter the required information.
12. Once the background program has been defined, click the Save pushbutton. This will save
one “step,” which will now appear on the Step List screen.
Variants allow us to save sets of input values for programs that we often start with the same
selections. Variants can be define in the ABAP/4 Program Development initial Screen using
transaction code SE38.
Sometimes we may have a requirement to schedule a back ground jobs, based on the current
month/Date in the selection screen.
To overcome the above scenario, SAP has given more elasticity to do the things. Below the
step to create variant that changes dynamically based on the current date.
1. Go to SE38, enter the report program name and select radio buttons “variants” and
press Display
Note: There are few different ways of creating report variants, out of which below
example is one way of doing it.
Press F4, under “Name of Variable (input Only Using F4), we will get all possible entries &
.
In this case we want all forecast today + 20 days old. All those forecast which are not consume
& today + 20 days old will be picked & deleted.
Start From/To Date/Time - To find jobs with start times in a particular interval,
enter the beginning of the interval in the From Date and Time fields and the end of
the interval in the To Date and Time fields.
Jobs Status - To find jobs with a particular status, select the appropriate box. The
statuses are Scheduled, Released, Ready Active, Finished, Cancelled, Jobs without
start date, and Jobs with previous job.
3. Once the selection criteria have been specified, click the Execute pushbutton. This will
bring up the Job Overview: which will gives us a listing of jobs that satisfy the criteria
with the status of each job.
4. By default system show the jobs alphabetically. To sort the list by different criteria,
select Sort from the Edit menu.
5. Click the Refresh pushbutton to update the information listed on the overview screen.