BASIS Function module Used the same way in S/4HANA

BP_JOB_READ Read Background Job Data

Reads the header, steps, job log information and spool numbers created by a background job. Programs that monitor job status or that find the spool list produced by a job and convert it to PDF use it. JOB_READ_OPCODE sets the scope of data to read; if the job does not exist, the JOB_DOESNT_EXIST exception is raised.

Function group
BTCH
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
JOB_READ_JOBNAMETBTCJOB-JOBNAMEJob nameYes
JOB_READ_JOBCOUNTTBTCJOB-JOBCOUNTJob countYes
JOB_READ_OPCODEBTCH0000-INT4Read operation codeYes
JOB_STEP_NUMBERTBTCP-STEPCOUNTStep number—

Exporting parameters

ParameterTypeDescription
JOB_READ_JOBHEADTBTCJOBJob header
JOBLOG_ATTRIBUTESBAPIXMJOBLOGJob log attributes
EPP_ATTRIBUTESBTCJOBEPPEPP attributes

Changing parameters

ParameterTypeDescriptionRequired
RETIReturn code—

Tables parameters

ParameterTypeDescriptionRequired
JOB_READ_STEPLISTTBTCSTEPJob steps—
SPOOL_ATTRIBUTESBAPIXMSPOOLIDSpool numbers—

Exceptions

  • INVALID_OPCODE — Invalid operation code
  • JOB_DOESNT_EXIST — Job does not exist
  • JOB_DOESNT_HAVE_STEPS — Job has no steps

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BP_JOB_READ'
  EXPORTING
    job_read_jobname = lv_job_read_jobname
    job_read_jobcount = lv_job_read_jobcount
    job_read_opcode = lv_job_read_opcode
  IMPORTING
    job_read_jobhead = lv_job_read_jobhead
    joblog_attributes = lv_joblog_attributes
    epp_attributes = lv_epp_attributes
  CHANGING
    ret = lv_ret
  TABLES
    job_read_steplist = lt_job_read_steplist
    spool_attributes = lt_spool_attributes
  EXCEPTIONS
    invalid_opcode = 1
    job_doesnt_exist = 2
    job_doesnt_have_steps = 3
    OTHERS = 4.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report