SAP CM_F_INFO Function Module for NOTRANSL: Übergibt Informationen zu den bereits gesammelten Nachrichten









CM_F_INFO is a standard cm f info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Übergibt Informationen zu den bereits gesammelten Nachrichten 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 info FM, simply by entering the name CM_F_INFO 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_INFO 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_INFO'"NOTRANSL: Übergibt Informationen zu den bereits gesammelten Nachrichten
EXPORTING
* ALL = 'X' "Switch: for entire error log
* APLID = ' ' "Application
* OBJECT = ' ' "Information on an object: object specification
* OBJECT_ID = ' ' "Object identification
* WILDCARD_SEARCH = ' ' "

IMPORTING
APLIDENT = "Application last initializing
MSGTY_PRO = "Message type for the most severe error (log)
MSGTY_SCR = "Message type for the most severe error (screen)
MSG_COUNTER_PRO = "Total number of messages in error log
MSG_COUNTER_SCR = "Total number of messages output
NOT_ACTIVE = "Error management not initialized
OBJECT_IDENT = "Object identification set for application
W_MSG_COUNTER_PRO = "Number of warning messages in error log
W_MSG_COUNTER_SCR = "Number of warning messages output
A_MSG_COUNTER_PRO = "Number of abort messages in error log
A_MSG_COUNTER_SCR = "Number of abort messages that were output
E_MSG_COUNTER_PRO = "Number of error messages in error log
E_MSG_COUNTER_SCR = "Number of error messages output
I_MSG_COUNTER_PRO = "Number of information messages in error log
I_MSG_COUNTER_SCR = "Number of information messages output
MAX_SEVERITY_PRO = "Highest message severity in error log
MAX_SEVERITY_SCR = "Highest message severity of messages output

TABLES
* I_OBJECT_FILTER = "

EXCEPTIONS
WRONG_OBJECT_ID = 1
.



IMPORTING Parameters details for CM_F_INFO

ALL - Switch: for entire error log

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

APLID - Application

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

OBJECT - Information on an object: object specification

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

OBJECT_ID - Object identification

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

WILDCARD_SEARCH -

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

EXPORTING Parameters details for CM_F_INFO

APLIDENT - Application last initializing

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

MSGTY_PRO - Message type for the most severe error (log)

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

MSGTY_SCR - Message type for the most severe error (screen)

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

MSG_COUNTER_PRO - Total number of messages in error log

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

MSG_COUNTER_SCR - Total number of messages output

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

NOT_ACTIVE - Error management not initialized

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

OBJECT_IDENT - Object identification set for application

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

W_MSG_COUNTER_PRO - Number of warning messages in error log

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

W_MSG_COUNTER_SCR - Number of warning messages output

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

A_MSG_COUNTER_PRO - Number of abort messages in error log

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

A_MSG_COUNTER_SCR - Number of abort messages that were output

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

E_MSG_COUNTER_PRO - Number of error messages in error log

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

E_MSG_COUNTER_SCR - Number of error messages output

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

I_MSG_COUNTER_PRO - Number of information messages in error log

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

I_MSG_COUNTER_SCR - Number of information messages output

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

MAX_SEVERITY_PRO - Highest message severity in error log

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

MAX_SEVERITY_SCR - Highest message severity of messages output

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

TABLES Parameters details for CM_F_INFO

I_OBJECT_FILTER -

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

EXCEPTIONS details

WRONG_OBJECT_ID - Object_ID is not equal to Objekt_ID of Init.

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

Copy and paste ABAP code example for CM_F_INFO 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_all  TYPE STRING, "   'X'
lv_aplident  TYPE TCMF6-APLID, "   
lt_i_object_filter  TYPE STANDARD TABLE OF TCMF6, "   
lv_wrong_object_id  TYPE TCMF6, "   
lv_msgty_pro  TYPE TCMF6, "   
lv_msgty_scr  TYPE TCMF6, "   
lv_msg_counter_pro  TYPE TCMF6, "   
lv_msg_counter_scr  TYPE TCMF6, "   
lv_not_active  TYPE TCMF6, "   
lv_object_ident  TYPE TCMF5-OBJECT_ID, "   
lv_w_msg_counter_pro  TYPE TCMF5, "   
lv_w_msg_counter_scr  TYPE TCMF5, "   
lv_aplid  TYPE TCMF6-APLID, "   SPACE
lv_a_msg_counter_pro  TYPE TCMF6, "   
lv_object  TYPE TCMF6, "   SPACE
lv_a_msg_counter_scr  TYPE TCMF6, "   
lv_object_id  TYPE TCMF5-OBJECT_ID, "   SPACE
lv_e_msg_counter_pro  TYPE TCMF5, "   
lv_wildcard_search  TYPE C, "   SPACE
lv_e_msg_counter_scr  TYPE C, "   
lv_i_msg_counter_pro  TYPE C, "   
lv_i_msg_counter_scr  TYPE C, "   
lv_max_severity_pro  TYPE SY-SUBRC, "   
lv_max_severity_scr  TYPE SY-SUBRC. "   

  CALL FUNCTION 'CM_F_INFO'  "NOTRANSL: Übergibt Informationen zu den bereits gesammelten Nachrichten
    EXPORTING
         ALL = lv_all
         APLID = lv_aplid
         OBJECT = lv_object
         OBJECT_ID = lv_object_id
         WILDCARD_SEARCH = lv_wildcard_search
    IMPORTING
         APLIDENT = lv_aplident
         MSGTY_PRO = lv_msgty_pro
         MSGTY_SCR = lv_msgty_scr
         MSG_COUNTER_PRO = lv_msg_counter_pro
         MSG_COUNTER_SCR = lv_msg_counter_scr
         NOT_ACTIVE = lv_not_active
         OBJECT_IDENT = lv_object_ident
         W_MSG_COUNTER_PRO = lv_w_msg_counter_pro
         W_MSG_COUNTER_SCR = lv_w_msg_counter_scr
         A_MSG_COUNTER_PRO = lv_a_msg_counter_pro
         A_MSG_COUNTER_SCR = lv_a_msg_counter_scr
         E_MSG_COUNTER_PRO = lv_e_msg_counter_pro
         E_MSG_COUNTER_SCR = lv_e_msg_counter_scr
         I_MSG_COUNTER_PRO = lv_i_msg_counter_pro
         I_MSG_COUNTER_SCR = lv_i_msg_counter_scr
         MAX_SEVERITY_PRO = lv_max_severity_pro
         MAX_SEVERITY_SCR = lv_max_severity_scr
    TABLES
         I_OBJECT_FILTER = lt_i_object_filter
    EXCEPTIONS
        WRONG_OBJECT_ID = 1
. " CM_F_INFO




ABAP code using 7.40 inline data declarations to call FM CM_F_INFO

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.

DATA(ld_all) = 'X'.
 
"SELECT single APLID FROM TCMF6 INTO @DATA(ld_aplident).
 
 
 
 
 
 
 
 
"SELECT single OBJECT_ID FROM TCMF5 INTO @DATA(ld_object_ident).
 
 
 
"SELECT single APLID FROM TCMF6 INTO @DATA(ld_aplid).
DATA(ld_aplid) = ' '.
 
 
DATA(ld_object) = ' '.
 
 
"SELECT single OBJECT_ID FROM TCMF5 INTO @DATA(ld_object_id).
DATA(ld_object_id) = ' '.
 
 
DATA(ld_wildcard_search) = ' '.
 
 
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_max_severity_pro).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_max_severity_scr).
 


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!