ERPClimb logoERPClimb

Basis · Beginner · Configuration

How to schedule a background job in SM36 and monitor it in SM37

Create a variant for a report, define a background job with a step and a time-based periodic start condition, release it, monitor its status, log and spool, and understand the event-based alternative.

APPLICABILITY
SAP S/4HANA on-premise and Cloud Private Edition and SAP ECC on Application Server ABAP with SAP GUI. SAP S/4HANA Cloud Public Edition and SAP BTP ABAP environment schedule application jobs with Fiori apps instead of SM36.
TOOLS / TRANSACTIONS
SA38 · SM36 · SM37 · SM64 · SM62

Your project assignment

A hypothetical Basis team must run the report that lists profile parameters every night at 02:00 in the quality assurance system and keep the spool list for review. They need one periodic job with a variant, released by an administrator, and a check the next morning.

Where to start: URLs and transactions

SAP GUI transactions
SA38, SM36, SM36WIZ, SM37, SM64, SM62
SAP menu path
Tools → CCMS → Background Processing → Define Job; Jobs - Overview and Administration

Prerequisites

  • Authorization to schedule jobs for the program, and authorization to release jobs or an administrator who releases them.
  • A report that can run without dialog input and a saved variant with the selection values.
  • An agreed job name, job class, start time outside peak load and an owner who checks the result.

Configuration workflow

Life of a periodic background job

All steps visible. Play or advance one stage at a time.

Life of a periodic background jobVariant (SA38): Selection values for the report → Job and step (SM36): Program, variant, step user → Start condition: Date and time, periodic, or after event → Release: Status Released → Run and successor (SM37): Finished, next instance released. If it works: Finished, Job log without errors. If it fails: Scheduled or Canceled, Release it, or read the job log1Variant (SA38)Selection values for the report2Job and step (SM36)Program, variant, step user3Start conditionDate and time, periodic, or after event4ReleaseStatus Released5Run and successor (SM37)Finished, next instance releasedWORKSFinishedJob log without errorsFAILSScheduled orCanceledRelease it, or readthe job log
Status path: Scheduled, Released, Ready, Active, then Finished or Canceled. ERPClimb original instructional diagram · not a live SAP screenshot.

Hands-on implementation — step by step

Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.

0/8 completed
  1. 1

    SA38 → create a variant

    Enter the report, open its selection screen, fill the selection values and save them as a variant.

    SA38 → create a variantERPClimb · illustrative screen
    Report
    RSPFPAR
    Selection
    Parameter name rdisp* (hypothetical filter)
    Variant name
    Z_NIGHTLY (hypothetical)

    Expected result: The variant is saved for the report.

    Why this matters: A background job cannot ask for input, so selection values must come from a variant.

  2. 2

    SM36 → Define Background Job: general data

    Enter a job name that says what the job does and choose the job class. Leave the target empty unless a server group is required.

    SM36 → Define Background Job: general dataERPClimb · illustrative screen
    Job name
    Z_PARAM_REPORT_NIGHTLY (hypothetical)
    Job class
    C
    Execution target
    Empty

    Expected result: The job header is filled.

    Why this matters: Class C is the normal priority; higher classes take reserved work processes.

  3. 3

    SM36 → Step

    Choose Step, select ABAP program, enter the report, the variant and the user under which the step runs. Check the print specifications, then go back.

    SM36 → StepERPClimb · illustrative screen
    ABAP program
    RSPFPAR
    Variant
    Z_NIGHTLY
    User
    Dedicated background user (hypothetical)

    Expected result: The step list shows one step.

    Why this matters: The step defines what runs and with whose authorizations.

  4. 4

    SM36 → Start condition: Date/Time

    Choose Start condition, then Date/Time, and enter the first scheduled start. Optionally enter a time after which the job must not start any more.

    SM36 → Start condition: Date/TimeERPClimb · illustrative screen
    Scheduled start
    Tomorrow, 02:00:00
    No start after
    Tomorrow, 04:00:00

    Expected result: The start time is set.

    Why this matters: A latest start time stops a delayed job from running into business hours.

  5. 5

    SM36 → Periodic job and period values

    Select Periodic job, choose Period values, select Daily and save the period. Save the start condition.

    SM36 → Periodic job and period valuesERPClimb · illustrative screen
    Periodic job
    Selected
    Period values
    Daily
    Restrictions
    As agreed for non-working days

    Expected result: The start condition shows a daily repetition.

    Why this matters: A periodic job schedules its successor each time it runs.

  6. 6

    SM36 → Save and release

    Save the job. If you may release jobs it gets status Released; otherwise ask an administrator to release it in SM37.

    SM36 → Save and releaseERPClimb · illustrative screen
    Status after save
    Released (or Scheduled without release authorization)
    Release in SM37
    Job → Release, if needed

    Expected result: The job is released with its planned start.

    Why this matters: No job starts until it has been released, including jobs set to start immediately.

  7. 7

    SM37 → monitor the run

    The next morning select the job by name, user, status and date. Open the job log and the spool list of the finished run, and check that the next instance is released.

    SM37 → monitor the runERPClimb · illustrative screen
    Job name
    Z_PARAM_REPORT_NIGHTLY
    Job status
    Finished, and Released for the next run
    Check
    Job log, spool, start delay

    Expected result: The run is Finished and the successor is Released.

    Why this matters: Only the finished runs and the next periodic job are shown in the overview.

  8. 8

    SM64 and SM36 → event-based alternative

    If the job must wait for something that has no fixed time, define a user event in SM64 and use the start condition After event instead of a time. Check triggered events in SM62.

    SM64 and SM36 → event-based alternativeERPClimb · illustrative screen
    Event
    Z_FILE_ARRIVED (hypothetical)
    Start condition
    After event, periodic
    Event history
    SM62

    Expected result: You know how to start the same job by event.

    Why this matters: An event tells the background processing system that a particular status has been reached.

Project acceptance checklist

Use this checklist to prepare evidence for your project lead.

0 of 4 checks marked. This does not certify the SAP configuration.

Validate your configuration

  • SM37 shows the job with status Finished and a job log without errors.
  • The next periodic instance is listed as Released with the expected start date and time.

Common errors and what to check

  • the job stays in status Scheduled and never starts.

    Check: It was saved but not released; the user has no authorization to release jobs.

  • the job is Released but starts late.

    Check: All background work processes were busy, or the time-driven job scheduler ran after the planned start time.

  • the job ends with status Canceled.

    Check: The job log shows the cause, often a missing variant, a missing authorization of the step user or a program error.

  • the job runs twice a day or keeps running after it should have stopped.

    Check: A second periodic job with the same step was scheduled, or the periodic job was never deleted; periodic execution has no end date.

More in the SAP Library

Need help with a configuration error? Open ERPClimb Copilot.

Technical references & further reading