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

JOB_OPEN Open Background Job

Creates a new background job and returns its job count (JOBCOUNT); it is the first step of the trio used together with JOB_SUBMIT and JOB_CLOSE. Custom programs use it to run or schedule a report in the background from code. Pass the returned JOBCOUNT and JOBNAME unchanged to the next two calls and always handle the exceptions.

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

Importing parameters

ParameterTypeDescriptionRequired
JOBNAMETBTCJOB-JOBNAMEJob nameYes
JOBGROUPTBTCJOB-JOBGROUPJob group—
SDLSTRTDTTBTCJOB-SDLSTRTDTPlanned start date—
SDLSTRTTMTBTCJOB-SDLSTRTTMPlanned start time—

Exporting parameters

ParameterTypeDescription
JOBCOUNTTBTCJOB-JOBCOUNTJob count
INFOIInfo code

Changing parameters

ParameterTypeDescriptionRequired
RETIReturn code—

Exceptions

  • CANT_CREATE_JOB — Job could not be created
  • INVALID_JOB_DATA — Invalid job data
  • JOBNAME_MISSING — Job name missing

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 'JOB_OPEN'
  EXPORTING
    jobname = lv_jobname
  IMPORTING
    jobcount = lv_jobcount
    info = lv_info
  CHANGING
    ret = lv_ret
  EXCEPTIONS
    cant_create_job = 1
    invalid_job_data = 2
    jobname_missing = 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