SAP CM_F_DISPLAY_LOG Function Module for Display Log









CM_F_DISPLAY_LOG is a standard cm f 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 for 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 cm f display log FM, simply by entering the name CM_F_DISPLAY_LOG into the relevant SAP transaction such as SE37 or SE38.

Function Group: CMFE
Program Name: SAPLCMFE
Main Program: SAPLCMFE
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CM_F_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 'CM_F_DISPLAY_LOG'"Display Log
EXPORTING
* APLID = ' ' "
* OBJECT = ' ' "
* WITH_OBJECTINDEPENDENT = 'X' "
* ONLY_MSGTYP = ' ' "
* ADDITIONAL_INFO = "
* MSG_EXITCALL_ICON = ' ' "
* GRID_DISPLAY = ' ' "
* ALV_VARIANT = '1' "
* HEADLINE = ' ' "
* OCS_ACTIV = ' ' "
* OCS_SEND_IMMEDIATE = ' ' "
* SKIP_INFO_SCREEN = ' ' "
* NO_STATISTIC = ' ' "
* DISPLAY_IN_NEW_TASK = ' ' "
* TITLEBAR = ' ' "
* TITLE = ' ' "

TABLES
* I_OBJECT_FILTER = "

EXCEPTIONS
NOT_ACTIVE = 1 ERROR_WITH_OBJECT = 2 ERROR_WITH_SUBOBJ = 3 ERROR_WITH_ADDINFO = 4
.



IMPORTING Parameters details for CM_F_DISPLAY_LOG

APLID -

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

OBJECT -

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

WITH_OBJECTINDEPENDENT -

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

ONLY_MSGTYP -

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

ADDITIONAL_INFO -

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

MSG_EXITCALL_ICON -

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

GRID_DISPLAY -

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

ALV_VARIANT -

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

HEADLINE -

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

OCS_ACTIV -

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

OCS_SEND_IMMEDIATE -

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

SKIP_INFO_SCREEN -

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

NO_STATISTIC -

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

DISPLAY_IN_NEW_TASK -

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

TITLEBAR -

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

TITLE -

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

TABLES Parameters details for CM_F_DISPLAY_LOG

I_OBJECT_FILTER -

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

EXCEPTIONS details

NOT_ACTIVE - Error management is not active

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

ERROR_WITH_OBJECT -

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

ERROR_WITH_SUBOBJ -

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

ERROR_WITH_ADDINFO -

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

Copy and paste ABAP code example for CM_F_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:
lv_aplid  TYPE TCMF6-APLID, "   SPACE
lv_not_active  TYPE TCMF6, "   
lt_i_object_filter  TYPE STANDARD TABLE OF TCMF6, "   
lv_object  TYPE TCMF6, "   SPACE
lv_with_objectindependent  TYPE C, "   'X'
lv_only_msgtyp  TYPE SY-MSGTY, "   SPACE
lv_additional_info  TYPE CMFADDINFO, "   
lv_msg_exitcall_icon  TYPE CMF_MSGEXITCALLICON, "   SPACE
lv_grid_display  TYPE C, "   SPACE
lv_alv_variant  TYPE SLIS_VARI, "   '1'
lv_headline  TYPE SLIS_VARI, "   SPACE
lv_error_with_object  TYPE SLIS_VARI, "   
lv_ocs_activ  TYPE C, "   SPACE
lv_error_with_subobj  TYPE C, "   
lv_error_with_addinfo  TYPE C, "   
lv_ocs_send_immediate  TYPE C, "   SPACE
lv_skip_info_screen  TYPE C, "   SPACE
lv_no_statistic  TYPE C, "   SPACE
lv_display_in_new_task  TYPE C, "   SPACE
lv_titlebar  TYPE CMFITITLEBAR, "   SPACE
lv_title  TYPE SY-TITLE. "   SPACE

  CALL FUNCTION 'CM_F_DISPLAY_LOG'  "Display Log
    EXPORTING
         APLID = lv_aplid
         OBJECT = lv_object
         WITH_OBJECTINDEPENDENT = lv_with_objectindependent
         ONLY_MSGTYP = lv_only_msgtyp
         ADDITIONAL_INFO = lv_additional_info
         MSG_EXITCALL_ICON = lv_msg_exitcall_icon
         GRID_DISPLAY = lv_grid_display
         ALV_VARIANT = lv_alv_variant
         HEADLINE = lv_headline
         OCS_ACTIV = lv_ocs_activ
         OCS_SEND_IMMEDIATE = lv_ocs_send_immediate
         SKIP_INFO_SCREEN = lv_skip_info_screen
         NO_STATISTIC = lv_no_statistic
         DISPLAY_IN_NEW_TASK = lv_display_in_new_task
         TITLEBAR = lv_titlebar
         TITLE = lv_title
    TABLES
         I_OBJECT_FILTER = lt_i_object_filter
    EXCEPTIONS
        NOT_ACTIVE = 1
        ERROR_WITH_OBJECT = 2
        ERROR_WITH_SUBOBJ = 3
        ERROR_WITH_ADDINFO = 4
. " CM_F_DISPLAY_LOG




ABAP code using 7.40 inline data declarations to call FM CM_F_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 APLID FROM TCMF6 INTO @DATA(ld_aplid).
DATA(ld_aplid) = ' '.
 
 
 
DATA(ld_object) = ' '.
 
DATA(ld_with_objectindependent) = 'X'.
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_only_msgtyp).
DATA(ld_only_msgtyp) = ' '.
 
 
DATA(ld_msg_exitcall_icon) = ' '.
 
DATA(ld_grid_display) = ' '.
 
DATA(ld_alv_variant) = '1'.
 
DATA(ld_headline) = ' '.
 
 
DATA(ld_ocs_activ) = ' '.
 
 
 
DATA(ld_ocs_send_immediate) = ' '.
 
DATA(ld_skip_info_screen) = ' '.
 
DATA(ld_no_statistic) = ' '.
 
DATA(ld_display_in_new_task) = ' '.
 
DATA(ld_titlebar) = ' '.
 
"SELECT single TITLE FROM SY INTO @DATA(ld_title).
DATA(ld_title) = ' '.
 


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!