SAP APPL_LOG_DISPLAY_WITH_LOGNO Function Module for Application Log: Display log









APPL_LOG_DISPLAY_WITH_LOGNO is a standard appl log display with logno 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 with logno FM, simply by entering the name APPL_LOG_DISPLAY_WITH_LOGNO into the relevant SAP transaction such as SE37 or SE38.

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



Function APPL_LOG_DISPLAY_WITH_LOGNO 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_WITH_LOGNO'"Application Log: Display log
EXPORTING
* 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
* TITLE_LIST_SCREEN = ' ' "Log display title
* COLUMN_SELECTION = '11112221122 ' "Selection of columns in the header list
* COLUMN_SELECTION_MSG_JUMP = '1' "
* EXTERNAL_NUMBER_DISPLAY_LENGTH = 20 "
* I_S_DISPLAY_PROFILE = "

IMPORTING
NUMBER_OF_PROTOCOLS = "Number of logs read

TABLES
LOGNUMBERS = "

EXCEPTIONS
NO_AUTHORITY = 1
.



IMPORTING Parameters details for APPL_LOG_DISPLAY_WITH_LOGNO

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)

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: BALDISP
Default: '11112221122 '
Optional: Yes
Call by Reference: No ( called with pass by value option)

COLUMN_SELECTION_MSG_JUMP -

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

EXTERNAL_NUMBER_DISPLAY_LENGTH -

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

I_S_DISPLAY_PROFILE -

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

EXPORTING Parameters details for APPL_LOG_DISPLAY_WITH_LOGNO

NUMBER_OF_PROTOCOLS - Number of logs read

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

TABLES Parameters details for APPL_LOG_DISPLAY_WITH_LOGNO

LOGNUMBERS -

Data type: SZAL_LOGNUMBERS
Optional: 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_WITH_LOGNO 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_lognumbers  TYPE STANDARD TABLE OF SZAL_LOGNUMBERS, "   
lv_no_authority  TYPE SZAL_LOGNUMBERS, "   
lv_object_attribute  TYPE SZAL_LOGNUMBERS, "   0
lv_number_of_protocols  TYPE SY-DBCNT, "   
lv_subobject_attribute  TYPE SY, "   0
lv_external_number_attribute  TYPE SY, "   0
lv_title_list_screen  TYPE SY, "   SPACE
lv_column_selection  TYPE BALDISP, "   '11112221122 '
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. "   

  CALL FUNCTION 'APPL_LOG_DISPLAY_WITH_LOGNO'  "Application Log: Display log
    EXPORTING
         OBJECT_ATTRIBUTE = lv_object_attribute
         SUBOBJECT_ATTRIBUTE = lv_subobject_attribute
         EXTERNAL_NUMBER_ATTRIBUTE = lv_external_number_attribute
         TITLE_LIST_SCREEN = lv_title_list_screen
         COLUMN_SELECTION = lv_column_selection
         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
    IMPORTING
         NUMBER_OF_PROTOCOLS = lv_number_of_protocols
    TABLES
         LOGNUMBERS = lt_lognumbers
    EXCEPTIONS
        NO_AUTHORITY = 1
. " APPL_LOG_DISPLAY_WITH_LOGNO




ABAP code using 7.40 inline data declarations to call FM APPL_LOG_DISPLAY_WITH_LOGNO

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 DBCNT FROM SY INTO @DATA(ld_number_of_protocols).
 
 
 
DATA(ld_title_list_screen) = ' '.
 
DATA(ld_column_selection) = '11112221122 '.
 
"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.
 
 


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!