SAP I_MSM_COMM_LOG_2_INSERT Function Module for NOTRANSL: Schreiben Status in Tabelle MSM_COMM_LOG_2









I_MSM_COMM_LOG_2_INSERT is a standard i msm comm log 2 insert 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: Schreiben Status in Tabelle MSM_COMM_LOG_2 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 i msm comm log 2 insert FM, simply by entering the name I_MSM_COMM_LOG_2_INSERT into the relevant SAP transaction such as SE37 or SE38.

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



Function I_MSM_COMM_LOG_2_INSERT 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 'I_MSM_COMM_LOG_2_INSERT'"NOTRANSL: Schreiben Status in Tabelle MSM_COMM_LOG_2
EXPORTING
* I_MANDANT = SY-MANDT "
* I_R_COMM_ID = "
* I_S_CODE = "
* I_S_TEXT = "
* I_S_DATE = SY-DATUM "
* I_S_TIME = SY-UZEIT "
I_FOLDER_ID = "
I_MESSAGE_ID = "
* I_R_ADRTP = "
* I_R_ADRYR = "
* I_R_ADRNO = "
* I_R_NRART = "
* I_R_PARNR = "
* I_R_COMM_TYP = "

TABLES
* RECIPIENTSINFO = "

EXCEPTIONS
OBJ_NOT_FOUND = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLI_MSM_COMM_001 Determination of Communication Text

IMPORTING Parameters details for I_MSM_COMM_LOG_2_INSERT

I_MANDANT -

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

I_R_COMM_ID -

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

I_S_CODE -

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

I_S_TEXT -

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

I_S_DATE -

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

I_S_TIME -

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

I_FOLDER_ID -

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

I_MESSAGE_ID -

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

I_R_ADRTP -

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

I_R_ADRYR -

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

I_R_ADRNO -

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

I_R_NRART -

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

I_R_PARNR -

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

I_R_COMM_TYP -

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

TABLES Parameters details for I_MSM_COMM_LOG_2_INSERT

RECIPIENTSINFO -

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

EXCEPTIONS details

OBJ_NOT_FOUND -

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

Copy and paste ABAP code example for I_MSM_COMM_LOG_2_INSERT 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_mandant  TYPE SY-MANDT, "   SY-MANDT
lv_obj_not_found  TYPE SY, "   
lt_recipientsinfo  TYPE STANDARD TABLE OF SOSNDINF, "   
lv_i_r_comm_id  TYPE CHAR40, "   
lv_i_s_code  TYPE SX_STATUSC, "   
lv_i_s_text  TYPE SX_MSGV, "   
lv_i_s_date  TYPE DATUM, "   SY-DATUM
lv_i_s_time  TYPE UZEIT, "   SY-UZEIT
lv_i_folder_id  TYPE SOODK, "   
lv_i_message_id  TYPE SOODK, "   
lv_i_r_adrtp  TYPE SO_OBJ_TP, "   
lv_i_r_adryr  TYPE SO_OBJ_YR, "   
lv_i_r_adrno  TYPE SO_OBJ_NO, "   
lv_i_r_nrart  TYPE NRART, "   
lv_i_r_parnr  TYPE I_PARNR, "   
lv_i_r_comm_typ  TYPE SO_ADR_TYP. "   

  CALL FUNCTION 'I_MSM_COMM_LOG_2_INSERT'  "NOTRANSL: Schreiben Status in Tabelle MSM_COMM_LOG_2
    EXPORTING
         I_MANDANT = lv_i_mandant
         I_R_COMM_ID = lv_i_r_comm_id
         I_S_CODE = lv_i_s_code
         I_S_TEXT = lv_i_s_text
         I_S_DATE = lv_i_s_date
         I_S_TIME = lv_i_s_time
         I_FOLDER_ID = lv_i_folder_id
         I_MESSAGE_ID = lv_i_message_id
         I_R_ADRTP = lv_i_r_adrtp
         I_R_ADRYR = lv_i_r_adryr
         I_R_ADRNO = lv_i_r_adrno
         I_R_NRART = lv_i_r_nrart
         I_R_PARNR = lv_i_r_parnr
         I_R_COMM_TYP = lv_i_r_comm_typ
    TABLES
         RECIPIENTSINFO = lt_recipientsinfo
    EXCEPTIONS
        OBJ_NOT_FOUND = 1
. " I_MSM_COMM_LOG_2_INSERT




ABAP code using 7.40 inline data declarations to call FM I_MSM_COMM_LOG_2_INSERT

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 MANDT FROM SY INTO @DATA(ld_i_mandant).
DATA(ld_i_mandant) = SY-MANDT.
 
 
 
 
 
 
DATA(ld_i_s_date) = SY-DATUM.
 
DATA(ld_i_s_time) = SY-UZEIT.
 
 
 
 
 
 
 
 
 


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!