SAP TRINT_DISPLAY_LOG Function Module for









TRINT_DISPLAY_LOG is a standard trint display log SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for trint display log FM, simply by entering the name TRINT_DISPLAY_LOG into the relevant SAP transaction such as SE37 or SE38.

Function Group: SLOG
Program Name: SAPLSLOG
Main Program: SAPLSLOG
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TRINT_DISPLAY_LOG pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'TRINT_DISPLAY_LOG'"
EXPORTING
* IV_DISPLAY_LEVEL = '1' "Display level (1 to 9)
* IV_WITH_REFRESH_ICON = ' ' "With 'refresh' icon
* IV_TITLEBAR = ' ' "Title line
* IV_HEADING1 = ' ' "Heading 1
* IV_HEADING2 = ' ' "Heading 2
* IV_LANGUAGE = SYST-LANGU "
* IV_GUI_STATUS = "Menu Painter: Status code

IMPORTING
EV_REFRESH = "
EV_USER_CANCELED = "
EV_USER_WANTS_DISPLAY = "

CHANGING
* CV_WITH_LONG_TEXT_ICON = ' ' "
* CV_WITH_LINE_NUMBERS = ' ' "With Line Numbering
* CV_WITH_MESSAGE_NUMBERS = ' ' "
* CV_WITH_LEVEL = ' ' "
* CS_REFRESH_PARAMETERS = "

TABLES
CT_LINES = "Log

EXCEPTIONS
INVALID_INPUT = 1
.



IMPORTING Parameters details for TRINT_DISPLAY_LOG

IV_DISPLAY_LEVEL - Display level (1 to 9)

Data type: SPROT-LEVEL
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_WITH_REFRESH_ICON - With 'refresh' icon

Data type: TRPARI-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_TITLEBAR - Title line

Data type: SY-TITLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_HEADING1 - Heading 1

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_HEADING2 - Heading 2

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_LANGUAGE -

Data type: SY-LANGU
Default: SYST-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_GUI_STATUS - Menu Painter: Status code

Data type: GUI_STATUS
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TRINT_DISPLAY_LOG

EV_REFRESH -

Data type: TRPARI-FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

EV_USER_CANCELED -

Data type: C
Optional: No
Call by Reference: Yes

EV_USER_WANTS_DISPLAY -

Data type: C
Optional: No
Call by Reference: Yes

CHANGING Parameters details for TRINT_DISPLAY_LOG

CV_WITH_LONG_TEXT_ICON -

Data type: TRPARI-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CV_WITH_LINE_NUMBERS - With Line Numbering

Data type: TRPARI-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CV_WITH_MESSAGE_NUMBERS -

Data type: TRPARI-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CV_WITH_LEVEL -

Data type: TRPARI-FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CS_REFRESH_PARAMETERS -

Data type: TRLOG_REFRESH_PARAMETERS
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for TRINT_DISPLAY_LOG

CT_LINES - Log

Data type: TRLOG
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID_INPUT - Invalid entry

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TRINT_DISPLAY_LOG Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_ct_lines  TYPE STANDARD TABLE OF TRLOG, "   
lv_ev_refresh  TYPE TRPARI-FLAG, "   
lv_invalid_input  TYPE TRPARI, "   
lv_iv_display_level  TYPE SPROT-LEVEL, "   '1'
lv_cv_with_long_text_icon  TYPE TRPARI-FLAG, "   ' '
lv_ev_user_canceled  TYPE C, "   
lv_cv_with_line_numbers  TYPE TRPARI-FLAG, "   ' '
lv_iv_with_refresh_icon  TYPE TRPARI-FLAG, "   ' '
lv_iv_titlebar  TYPE SY-TITLE, "   SPACE
lv_ev_user_wants_display  TYPE C, "   
lv_cv_with_message_numbers  TYPE TRPARI-FLAG, "   ' '
lv_iv_heading1  TYPE C, "   SPACE
lv_cv_with_level  TYPE TRPARI-FLAG, "   ' '
lv_iv_heading2  TYPE C, "   SPACE
lv_cs_refresh_parameters  TYPE TRLOG_REFRESH_PARAMETERS, "   
lv_iv_language  TYPE SY-LANGU, "   SYST-LANGU
lv_iv_gui_status  TYPE GUI_STATUS. "   

  CALL FUNCTION 'TRINT_DISPLAY_LOG'  "
    EXPORTING
         IV_DISPLAY_LEVEL = lv_iv_display_level
         IV_WITH_REFRESH_ICON = lv_iv_with_refresh_icon
         IV_TITLEBAR = lv_iv_titlebar
         IV_HEADING1 = lv_iv_heading1
         IV_HEADING2 = lv_iv_heading2
         IV_LANGUAGE = lv_iv_language
         IV_GUI_STATUS = lv_iv_gui_status
    IMPORTING
         EV_REFRESH = lv_ev_refresh
         EV_USER_CANCELED = lv_ev_user_canceled
         EV_USER_WANTS_DISPLAY = lv_ev_user_wants_display
    CHANGING
         CV_WITH_LONG_TEXT_ICON = lv_cv_with_long_text_icon
         CV_WITH_LINE_NUMBERS = lv_cv_with_line_numbers
         CV_WITH_MESSAGE_NUMBERS = lv_cv_with_message_numbers
         CV_WITH_LEVEL = lv_cv_with_level
         CS_REFRESH_PARAMETERS = lv_cs_refresh_parameters
    TABLES
         CT_LINES = lt_ct_lines
    EXCEPTIONS
        INVALID_INPUT = 1
. " TRINT_DISPLAY_LOG




ABAP code using 7.40 inline data declarations to call FM TRINT_DISPLAY_LOG

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_ev_refresh).
 
 
"SELECT single LEVEL FROM SPROT INTO @DATA(ld_iv_display_level).
DATA(ld_iv_display_level) = '1'.
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_cv_with_long_text_icon).
DATA(ld_cv_with_long_text_icon) = ' '.
 
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_cv_with_line_numbers).
DATA(ld_cv_with_line_numbers) = ' '.
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_iv_with_refresh_icon).
DATA(ld_iv_with_refresh_icon) = ' '.
 
"SELECT single TITLE FROM SY INTO @DATA(ld_iv_titlebar).
DATA(ld_iv_titlebar) = ' '.
 
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_cv_with_message_numbers).
DATA(ld_cv_with_message_numbers) = ' '.
 
DATA(ld_iv_heading1) = ' '.
 
"SELECT single FLAG FROM TRPARI INTO @DATA(ld_cv_with_level).
DATA(ld_cv_with_level) = ' '.
 
DATA(ld_iv_heading2) = ' '.
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_iv_language).
DATA(ld_iv_language) = SYST-LANGU.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!