Specifying the Program to Run 

Prerequisites

On the Job step screen, you specify the ABAP program or external program to be run in the background.

For ABAP programs, you can also specify how any print output should be treated.

In each job step, you can name one program to be executed. However, you can also run more than one program with a single background job. Simply add a job step for each desired program.

Procedure

ABAP Report

  1. By default, your name appears in the User field. This means that the program in this job step will run under your SAP System authorizations.
  2. If you want the program to run under the authorizations of another user, enter the appropriate name.

  3. Choose ABAP.
  4. Enter the name of the report.
  5. You can select a variant for the report with Variant list. If you need to maintain a variant, you do this in the ABAP Editor.
  6. In the Language field, specify the language to use for the report output.
  7. With Print specifications, you can have the report output held in the SAP spool system or have it printed as soon as the job has run.

External Command

  1. By default, your name appears in the User field. This means that the program in this job step will run under your SAP System authorizations.
  2. Enter another user name if the program should run under the authorizations of another user.
  3. Choose External command.
  4. Enter the predefined SAP name for the command.
  5. If required, enter any additional arguments required for the command.
  6. Specify the name of the host system on which the command should run and the type of operating system at the host.

You can determine the host name with the host name command on the target host system.

With Control flags, you can specify how output from the external program should be treated, as well as other runtime options. Usually, you should leave these options at their default settings.

For more information on external commands, see the F1 field help.

If you have administrator authorization for background processing, you can also choose External programs as a job step option. To run an external program, enter:

External programs are not predefined in the SAP System, and the system does not perform an authorization check to determine whether you are permitted to use the command.

  1. Save the job step and return to the job identification screen.