27.04.2013 Views

SAP Basis

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Unit 9: Scheduling Background Tasks ADM100<br />

SXPG_DUMMY_COMMAND_CHECK. The system automatically<br />

calls the function module if a user tries to schedule the external<br />

command in a background job.<br />

8. Save the external command both in the screen shown above and in<br />

the initial screen of transaction SM69.<br />

Control Flags<br />

When scheduling an external command (such as ZPING), ensure that the<br />

operating system’s return message is transferred to the job log. A spool<br />

list can only be created for ABAP programs that generate lists. Use an<br />

example to explain the effect of the setting Job waiting for ext. termination.<br />

You do not need to explain the job trace here. For more information, see<br />

the documentation.<br />

You can make specifications about the task and other runtime options<br />

using control flags. You do not normally need to change the default values.<br />

Figure 109: Control Flags for External Programs/Commands<br />

You can, for example, specify:<br />

• Whether the process is to be logged. The output data is written to<br />

the log as it is output by the external program. The language can<br />

differ here from your logon language. You can also call additional<br />

information about the data of an external program in the job log.<br />

• How the <strong>SAP</strong> control program should end and whether the external<br />

program triggers an event. After you have started service programs<br />

with the background processing system (such as daemons in UNIX<br />

340 © 2003 <strong>SAP</strong> AG. All rights reserved. 2003/Q3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!