IT CanvassTalk to an advisor
SAP TCodes · LessonReviewed by Arjun, SAP Solution Architect · Updated · Published · SAP S/4HANA 2023 · all levels

SAP SM21

SM21 is the SAP transaction code for System Log (Basis). It displays the SAP system log, time-stamped records of system events, errors and warnings per instance, a primary tool for diagnosing system-level problems.

Quick answer

SM21 displays the SAP system log, time-stamped records of system events, errors and warnings per instance, a primary tool for diagnosing system-level problems.

Key takeaways
  • Time/date and instance selection.
  • Log entries with type and message.
  • Details of each entry (cause, context).
  • Watch out: it logs per instance in system time, so the entry may be on another server.

Purpose

It displays the SAP system log, time-stamped records of system events, errors and warnings per instance, a primary tool for diagnosing system-level problems.

Key fields and screen

  • Time/date and instance selection.
  • Log entries with type and message.
  • Details of each entry (cause, context).
  • Filtering by user/transaction/problem class.

Tips

  • Correlate log entries with the time of a reported problem.
  • Look for database, work-process and configuration errors.
  • Combine with ST22 (dumps) and SM13 (updates) for a full picture.

Common errors

  • Database connection/lock issues logged.
  • Work-process errors or restarts.
  • Not correlating by time (missing the relevant entries).

Common pitfalls

  • Reading one instance. A multi instance system logs per instance, so the entry you want may be on an application server you did not select.
  • Reading the times as the user's time zone. The log records system time, and an hour's difference is enough to miss the entry entirely.
  • Treating every warning as an incident. The log is noisy by design, and the skill is recognising which entries are normal for your system.
  • Selecting a narrow window around the reported time. The cause frequently precedes the symptom by minutes.
  • Stopping here. The system log says something failed; the dump analysis and the update records usually say why.
Already working on SAP and stuck on a live ticket?Get an expert SAP developer on screen-share to finish your daily tasks with you. Deliver on time, protect your reputation and your job. Monthly support only, no task-wise plans.Task assigned · no idea where to startStill stuck · your job on the lineExpert joins your screenDelivered on timeExplore On Job Support