Fonction SAP TR_READ_AND_DISPLAY_LOG - Read and Display Log

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IV_CLIENT T000-MANDT C 3 ' ' X Client
IV_DISPLAY_LEVEL SPROT-LEVEL N 1 '1' X Display level (1 to 9)
IV_HEADING TRLOG-LINE C 131 X Heading
IV_LANGUAGE SYST-LANGU C 1 SYST-LANGU X Display language
IV_LOGNAME_DB DDPRH-PROTNAME C 40 X Name of log (database)
IV_LOGNAME_FILE TSTRF01-FILE C 255 X Name of log (file)
IV_LOGNAME_MEMORY TSTRF01-FILENAME C 32 X Name of log (memory)
IV_LOG_TYPE TRLOG_TYPE 0 'FILE' X Log type: 'FILE', 'DB', 'MEMORY'
IV_TIMESTAMP TSTAMP N 14 X Time stamp of step (only for search)
IV_TITLEBAR SYST-TITLE C 70 X Title line
IV_TOP_LINE I I 4 '0' X Positioning
IV_WITH_LEVEL TRPARI-FLAG C 1 ' ' X Wih techn. display of check level/error type
IV_WITH_LONG_TEXT_ICON TRPARI-FLAG C 1 'X' X With 'long text' icon
IV_WITH_REFRESH_ICON TRPARI-FLAG C 1 'X' X With 'refresh' icon

Exception Description
ACCESS_ERROR Log could not be read
INVALID_INPUT Invalid entry

Functionality
This function module reads a log from a file, the database, or memory,and displays the log on the screen.
The import parameter "IV_LOG_TYPE" determines from where the logs areread. Possible values are:

  • "FILE" for a file at operating system level

  • "DB" for the database

  • "MEMORY" for memory

  • The name is passed with the import parameters "IV_LOGNAME_FILE","IV_LOGNAME_DB", and "IV_LOGNAME_MEMORY".
    You can pass a title and header with the parameters "IV_TITLEBAR" and"IV_HEADING".
    "IV_DISPLAY_LEVEL" determines at which level the logs are displayedinitially. If there are no logs for a level selected, the next lowerlevel is displayed automatically.
    You can use the parameter "IV_WITH_LONG_TEXT_ICON" to determine whetherlong text icons should be displayed to the right of the log lines whenthere is a long text for a message.

    Further information
    Refer to the documentation on the function module TR_WRITE_LOG.