Entering content frame

Sample Program: Creating a Job with JOB_OPEN Locate the document in its SAP Library structure

*
* Create your job with JOB_OPEN. The module returns a unique job
* number. Together with the jobname, this number identifies the
* job. Other parameters are available, but are not required.
*
JOBNAME = 'Freely selectable name for the job(s) you create'.

CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME
IMPORTING
JOBCOUNT = JOBNUMBER
EXCEPTIONS
CANT_CREATE_JOB = 01
INVALID_JOB_DATA = 02
JOBNAME_MISSING = 03
OTHERS = 99.

IF SY-SUBRC > 0.
<Error processing>
ENDIF.

Leaving content frame