BeispieldokumentationProgrammbeispiel: Job-Start bei Ereignis (JOB_CLOSE)

 

Syntax Syntax

  1. * 
    * Submit job for processing: job eligible for start when the 
    * specified event occurs. 
    * 
    CALL FUNCTION 'JOB_CLOSE' 
    EXPORTING 
    JOBCOUNT = JOBNUMBER " Job identification: number 
    JOBNAME = JOBNAME " and name. 
    EVENT_ID = 'EVENT_NAME' " Name of the event for which 
    " the job is to wait. 
    EVENT_PARAM = 'Additional qualifying value' 
    EVENT_PERIODIC = 'X' " Restart job whenever event 
    " is triggered. 
    EXCEPTIONS 
    CANT_START_IMMEDIATE = 01 
    INVALID_STARTDATE = 02 
    JOBNAME_MISSING = 03 
    JOB_CLOSE_FAILED = 04 
    JOB_NOSTEPS = 05 
    JOB_NOTEX = 06 
    LOCK_FAILED = 07 
    OTHERS = 99. 
    
    IF SY-SUBRC > 0.
    <Error processing> 
    ENDIF.
Ende des Codes