Vous êtes sur la page 1sur 6

Defining a Background Job to Run an External Program

Overview

Chapter 31: Defining a Background Job to Run an External Program


Contents
Overview ................................................................
................................................................................................
................................................................
................................................................
................................................
................311
311
Defining the Background Job Attributes ................................................................
................................................................................................
................................................................
....................................
....311
311
Defining the Step ................................................................
................................................................................................
................................................................
................................................................
....................................
....312
312
Scheduling the Background job................................
job ................................................................
................................................................
................................................................
................................................
................314
314

Overview
This chapter will show you how to define a background job to run an external program. For example, you
can use the SAP background processing system to start service programs, such as demons in a UNIX
system.
These programs are intended to remain active after they have been started. They do not terminate and
return to the SAP background control program like normal programs.

Defining the Background Job Attributes


1. Begin the procedure by following
the menu path: Tools
Administration Jobs Define
job.

Alternative:

2. Enter a name of your choice in the


Job name field.
4

Be sure that other users will be able to


recognize the job and its function by
the name! Descriptive names are the
most useful.

3. Now, assign a priority class to the


job by filling in the Job class field (A
is the highest priority, C is the
lowest).
4. Click the S teps button to define the step.

1996 SAP Technology, Inc.

311

Defining a Background Job to Run an External Program


Defining the Step

Defining the Step


1. Click on the External program
button.

2. In the External program group box,


enter the programs Name,
Parameter, and Target host.

The Name of the program is the


pathname of the program which is to
be performed by the background
processing system. For long names,
use both lines of this field.
When filling in the Parameter field,
enclose all values that contain a space
in quotes. (For example: -1 4 will be
read as 2 values, while -1 4 will be
read as one.) Your Target host is the
system selected to run the background
job.

2
3

3. Now, click on the Control flags button.

312

1996 SAP Technology, Inc.

Defining a Background Job to Run an External Program


Defining the Step

4. For both the Output to job logand


Error output to job logoptions, select
the yes radio buttons. Doing so will
send both the normal and error
outputs to a job log.

5. In the Job to wait for ext.program to


end group box, select yes.

If no is selected, no return data will


be expected. If you are running a
Daemon program or something
similar, you may want to turn this
option off.

5
6

6. For the Activate trace option, select


no.

If you have problems running


external programs, choosing yes for
the above option will cause two
diagnostic files to be written on the
operating system for further
debugging.

7. Click on the Save icon to save the external program definitions.


8. Click on the Save icon again to
complete the process.

1996 SAP Technology, Inc.

313

Defining a Background Job to Run an External Program


Scheduling the Background job

Your program is now listed as the


first program in the Step List.

9. Click the Back icon.

Scheduling the Background job


1. Click on the Start date button to
schedule the operation time and
date for the job.

314

1996 SAP Technology, Inc.

Defining a Background Job to Run an External Program


Scheduling the Background job

2. For this example, we will schedule


the job to run immediately by
clicking on the Immediate button.

3. Then click the Save icon to preserve


the settings you have entered.

4. To save the job definition and


create the job, click the Save icon.
4

1996 SAP Technology, Inc.

315

Defining a Background Job to Run an External Program


Scheduling the Background job

5. The Job Log screen displays the job


output (see Viewing Background
Jobs to display the Job Log).

For further details refer to


R/3 System Administration Made Easy
Viewing Background Jobs (Ch. 34)
R/3 Basis Knowledge Products
System Management CD

Reference Implementation Job Scheduling System Planning


Jobs

R/3 System Online Help


Basis Components System Administration Computer Center Management System
Background Processing Managing and Scheduling Background Jobs
Basis Courses
Advanced R/3 Administration (BC305)

316

1996 SAP Technology, Inc.