REPORT YSYSLG.
* This report creates a system log entry
TABLES: TSL1T, TSL1D, TSL2D, TSL2T.

SELECTION-SCREEN BEGIN OF BLOCK A WITH FRAME.
PARAMETERS: TYP LIKE TSL2T-CLASID.
PARAMETERS: KEY(3).
PARAMETERS: DATA(32) DEFAULT 'test message'.
SELECTION-SCREEN END OF BLOCK A.

CALL 'C_WRITE_SYSLOG_ENTRY'
      ID 'TYP' FIELD TYP
      ID 'KEY' FIELD KEY
      ID 'DATA'  FIELD DATA
      ID 'SUBRC' FIELD SY-SUBRC.