SAP APPL_LOG_DISPLAY Function Module for Application Log: Display log
APPL_LOG_DISPLAY is a standard appl log display SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Application Log: Display log processing and below is the pattern details for this FM, 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 appl log display FM, simply by entering the name APPL_LOG_DISPLAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLG3
Program Name: SAPLSLG3
Main Program: SAPLSLG3
Appliation area:
Release date: 22-Dec-1994
Mode(Normal, Remote etc): Normal Function Module
Update:
Function APPL_LOG_DISPLAY 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 'APPL_LOG_DISPLAY'"Application Log: Display log.
EXPORTING
* OBJECT = ' ' "Object name
* TIME_TO = SY-UZEIT "Time: Upper limit
* TITLE_SELECTION_SCREEN = ' ' "Selection screen title
* TITLE_LIST_SCREEN = ' ' "Log display title
* COLUMN_SELECTION = '11112221122 ' "Selection of columns in the header list
* SUPPRESS_SELECTION_DIALOG = ' ' "Suppress selection screen
* COLUMN_SELECTION_MSG_JUMP = '1' "
* EXTERNAL_NUMBER_DISPLAY_LENGTH = 20 "
* I_S_DISPLAY_PROFILE = "
* I_VARIANT_REPORT = ' ' "
* I_SRT_BY_TIMSTMP = ' ' "Sort Logs by Timestamp ('X') or Log Number (' ')
* SUBOBJECT = ' ' "Subobject name
* EXTERNAL_NUMBER = ' ' "external number
* OBJECT_ATTRIBUTE = 0 "0 = ready for input, 1 = display, 2 = hide
* SUBOBJECT_ATTRIBUTE = 0 "0 = ready for input, 1 = display, 2 = hide
* EXTERNAL_NUMBER_ATTRIBUTE = 0 "0 = ready for input, 1 = display, 2 = hide
* DATE_FROM = SY-DATUM "Date: Lower limit
* TIME_FROM = '000000' "Time: Lower limit
* DATE_TO = SY-DATUM "Date: Upper limit
IMPORTING
NUMBER_OF_PROTOCOLS = "Number of logs read
EXCEPTIONS
NO_AUTHORITY = 1
IMPORTING Parameters details for APPL_LOG_DISPLAY
OBJECT - Object name
Data type: BALHDR-OBJECTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TIME_TO - Time: Upper limit
Data type: BALHDR-ALTIMEDefault: SY-UZEIT
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLE_SELECTION_SCREEN - Selection screen title
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLE_LIST_SCREEN - Log display title
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COLUMN_SELECTION - Selection of columns in the header list
Data type: BALDISPDefault: '11112221122 '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_SELECTION_DIALOG - Suppress selection screen
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
COLUMN_SELECTION_MSG_JUMP -
Data type: BALDISP2-MSG_JUMPDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXTERNAL_NUMBER_DISPLAY_LENGTH -
Data type: IDefault: 20
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_S_DISPLAY_PROFILE -
Data type: BAL_S_PROFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VARIANT_REPORT -
Data type: SY-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SRT_BY_TIMSTMP - Sort Logs by Timestamp ('X') or Log Number (SPACE)
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUBOBJECT - Subobject name
Data type: BALHDR-SUBOBJECTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXTERNAL_NUMBER - external number
Data type: BALHDR-EXTNUMBERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OBJECT_ATTRIBUTE - 0 = ready for input, 1 = display, 2 = hide
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SUBOBJECT_ATTRIBUTE - 0 = ready for input, 1 = display, 2 = hide
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXTERNAL_NUMBER_ATTRIBUTE - 0 = ready for input, 1 = display, 2 = hide
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE_FROM - Date: Lower limit
Data type: BALHDR-ALDATEDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TIME_FROM - Time: Lower limit
Data type: BALHDR-ALTIMEDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE_TO - Date: Upper limit
Data type: BALHDR-ALDATEDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for APPL_LOG_DISPLAY
NUMBER_OF_PROTOCOLS - Number of logs read
Data type: SY-DBCNTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORITY - no authorization for displaying the logs
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for APPL_LOG_DISPLAY 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: | ||||
lv_object | TYPE BALHDR-OBJECT, " SPACE | |||
lv_no_authority | TYPE BALHDR, " | |||
lv_number_of_protocols | TYPE SY-DBCNT, " | |||
lv_time_to | TYPE BALHDR-ALTIME, " SY-UZEIT | |||
lv_title_selection_screen | TYPE BALHDR, " SPACE | |||
lv_title_list_screen | TYPE BALHDR, " SPACE | |||
lv_column_selection | TYPE BALDISP, " '11112221122 ' | |||
lv_suppress_selection_dialog | TYPE BALDISP, " SPACE | |||
lv_column_selection_msg_jump | TYPE BALDISP2-MSG_JUMP, " '1' | |||
lv_external_number_display_length | TYPE I, " 20 | |||
lv_i_s_display_profile | TYPE BAL_S_PROF, " | |||
lv_i_variant_report | TYPE SY-REPID, " SPACE | |||
lv_i_srt_by_timstmp | TYPE BOOLEAN, " SPACE | |||
lv_subobject | TYPE BALHDR-SUBOBJECT, " SPACE | |||
lv_external_number | TYPE BALHDR-EXTNUMBER, " SPACE | |||
lv_object_attribute | TYPE BALHDR, " 0 | |||
lv_subobject_attribute | TYPE BALHDR, " 0 | |||
lv_external_number_attribute | TYPE BALHDR, " 0 | |||
lv_date_from | TYPE BALHDR-ALDATE, " SY-DATUM | |||
lv_time_from | TYPE BALHDR-ALTIME, " '000000' | |||
lv_date_to | TYPE BALHDR-ALDATE. " SY-DATUM |
  CALL FUNCTION 'APPL_LOG_DISPLAY' "Application Log: Display log |
EXPORTING | ||
OBJECT | = lv_object | |
TIME_TO | = lv_time_to | |
TITLE_SELECTION_SCREEN | = lv_title_selection_screen | |
TITLE_LIST_SCREEN | = lv_title_list_screen | |
COLUMN_SELECTION | = lv_column_selection | |
SUPPRESS_SELECTION_DIALOG | = lv_suppress_selection_dialog | |
COLUMN_SELECTION_MSG_JUMP | = lv_column_selection_msg_jump | |
EXTERNAL_NUMBER_DISPLAY_LENGTH | = lv_external_number_display_length | |
I_S_DISPLAY_PROFILE | = lv_i_s_display_profile | |
I_VARIANT_REPORT | = lv_i_variant_report | |
I_SRT_BY_TIMSTMP | = lv_i_srt_by_timstmp | |
SUBOBJECT | = lv_subobject | |
EXTERNAL_NUMBER | = lv_external_number | |
OBJECT_ATTRIBUTE | = lv_object_attribute | |
SUBOBJECT_ATTRIBUTE | = lv_subobject_attribute | |
EXTERNAL_NUMBER_ATTRIBUTE | = lv_external_number_attribute | |
DATE_FROM | = lv_date_from | |
TIME_FROM | = lv_time_from | |
DATE_TO | = lv_date_to | |
IMPORTING | ||
NUMBER_OF_PROTOCOLS | = lv_number_of_protocols | |
EXCEPTIONS | ||
NO_AUTHORITY = 1 | ||
. " APPL_LOG_DISPLAY |
ABAP code using 7.40 inline data declarations to call FM APPL_LOG_DISPLAY
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 OBJECT FROM BALHDR INTO @DATA(ld_object). | ||||
DATA(ld_object) | = ' '. | |||
"SELECT single DBCNT FROM SY INTO @DATA(ld_number_of_protocols). | ||||
"SELECT single ALTIME FROM BALHDR INTO @DATA(ld_time_to). | ||||
DATA(ld_time_to) | = SY-UZEIT. | |||
DATA(ld_title_selection_screen) | = ' '. | |||
DATA(ld_title_list_screen) | = ' '. | |||
DATA(ld_column_selection) | = '11112221122 '. | |||
DATA(ld_suppress_selection_dialog) | = ' '. | |||
"SELECT single MSG_JUMP FROM BALDISP2 INTO @DATA(ld_column_selection_msg_jump). | ||||
DATA(ld_column_selection_msg_jump) | = '1'. | |||
DATA(ld_external_number_display_length) | = 20. | |||
"SELECT single REPID FROM SY INTO @DATA(ld_i_variant_report). | ||||
DATA(ld_i_variant_report) | = ' '. | |||
DATA(ld_i_srt_by_timstmp) | = ' '. | |||
"SELECT single SUBOBJECT FROM BALHDR INTO @DATA(ld_subobject). | ||||
DATA(ld_subobject) | = ' '. | |||
"SELECT single EXTNUMBER FROM BALHDR INTO @DATA(ld_external_number). | ||||
DATA(ld_external_number) | = ' '. | |||
"SELECT single ALDATE FROM BALHDR INTO @DATA(ld_date_from). | ||||
DATA(ld_date_from) | = SY-DATUM. | |||
"SELECT single ALTIME FROM BALHDR INTO @DATA(ld_time_from). | ||||
DATA(ld_time_from) | = '000000'. | |||
"SELECT single ALDATE FROM BALHDR INTO @DATA(ld_date_to). | ||||
DATA(ld_date_to) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects