Code: Alles auswählen.
DATA JOBCOUNT TYPE TBTCM-JOBCOUNT.
DATA JOBNAME TYPE TBTCM-JOBNAME.
DATA STEPCOUNT TYPE TBTCM-STEPCOUNT.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
JOBCOUNT = JOBCOUNT
JOBNAME = JOBNAME
STEPCOUNT = STEPCOUNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF sy-subrc = 0.
DATA JOB_READ_STEPLIST TYPE STANDARD TABLE OF TBTCSTEP.
CALL FUNCTION 'BP_JOB_READ'
EXPORTING
job_read_jobcount = jobcount
job_read_jobname = jobname
job_read_opcode = 36
JOB_STEP_NUMBER = STEPcount
TABLES
JOB_READ_STEPLIST = JOB_READ_STEPLIST
EXCEPTIONS
INVALID_OPCODE = 1
JOB_DOESNT_EXIST = 2
JOB_DOESNT_HAVE_STEPS = 3
OTHERS = 4.