SAP FMKU_CUMULATE_MSG Function Module for cumulate msg in the log









FMKU_CUMULATE_MSG is a standard fmku cumulate msg SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for cumulate msg in the 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 fmku cumulate msg FM, simply by entering the name FMKU_CUMULATE_MSG into the relevant SAP transaction such as SE37 or SE38.

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



Function FMKU_CUMULATE_MSG 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 'FMKU_CUMULATE_MSG'"cumulate msg in the log
EXPORTING
I_REF_MSG = "Application log with context
* I_CONTEXT_AREA = 'OTHR' "Area
* I_MSGTY = 'E' "Application Log: Message type (A,E,W,I,S)
* I_MSGID = 'FMKU' "Application Log: Message class, message ID
* I_MSGV1 = "Application Log: Message variable 1
* I_MSGV2 = "Application Log: Message variable 2
* I_MSGV3 = "Application Log: Message variable 3
* I_MSGV4 = "Application Log: Message variable 4
I_MSGNO = "Application Log: Message number in message class
.



IMPORTING Parameters details for FMKU_CUMULATE_MSG

I_REF_MSG - Application log with context

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

I_CONTEXT_AREA - Area

Data type: BUBAS_AREA
Default: 'OTHR'
Optional: Yes
Call by Reference: Yes

I_MSGTY - Application Log: Message type (A,E,W,I,S)

Data type: BALMSGTY
Default: 'E'
Optional: Yes
Call by Reference: Yes

I_MSGID - Application Log: Message class, message ID

Data type: BALMSGID
Default: 'FMKU'
Optional: Yes
Call by Reference: Yes

I_MSGV1 - Application Log: Message variable 1

Data type: BALMSGV1
Optional: Yes
Call by Reference: Yes

I_MSGV2 - Application Log: Message variable 2

Data type: BALMSGV2
Optional: Yes
Call by Reference: Yes

I_MSGV3 - Application Log: Message variable 3

Data type: BALMSGV3
Optional: Yes
Call by Reference: Yes

I_MSGV4 - Application Log: Message variable 4

Data type: BALMSGV4
Optional: Yes
Call by Reference: Yes

I_MSGNO - Application Log: Message number in message class

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

Copy and paste ABAP code example for FMKU_CUMULATE_MSG 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_i_ref_msg  TYPE CL_BUBAS_APPL_LOG_CTX, "   
lv_i_context_area  TYPE BUBAS_AREA, "   'OTHR'
lv_i_msgty  TYPE BALMSGTY, "   'E'
lv_i_msgid  TYPE BALMSGID, "   'FMKU'
lv_i_msgv1  TYPE BALMSGV1, "   
lv_i_msgv2  TYPE BALMSGV2, "   
lv_i_msgv3  TYPE BALMSGV3, "   
lv_i_msgv4  TYPE BALMSGV4, "   
lv_i_msgno  TYPE BALMSGNO. "   

  CALL FUNCTION 'FMKU_CUMULATE_MSG'  "cumulate msg in the log
    EXPORTING
         I_REF_MSG = lv_i_ref_msg
         I_CONTEXT_AREA = lv_i_context_area
         I_MSGTY = lv_i_msgty
         I_MSGID = lv_i_msgid
         I_MSGV1 = lv_i_msgv1
         I_MSGV2 = lv_i_msgv2
         I_MSGV3 = lv_i_msgv3
         I_MSGV4 = lv_i_msgv4
         I_MSGNO = lv_i_msgno
. " FMKU_CUMULATE_MSG




ABAP code using 7.40 inline data declarations to call FM FMKU_CUMULATE_MSG

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_i_context_area) = 'OTHR'.
 
DATA(ld_i_msgty) = 'E'.
 
DATA(ld_i_msgid) = 'FMKU'.
 
 
 
 
 
 


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!