BeispieldokumentationProgrammbeispiel: Jobs mit JOB_OPEN anlegen

 

Syntax Syntax

  1. * 
    * 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.
Ende des Codes