SAP FWTM_MESSAGE_STORE Function Module for









FWTM_MESSAGE_STORE is a standard fwtm message store SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fwtm message store FM, simply by entering the name FWTM_MESSAGE_STORE into the relevant SAP transaction such as SE37 or SE38.

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



Function FWTM_MESSAGE_STORE 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 'FWTM_MESSAGE_STORE'"
EXPORTING
ID_RUN_ID = "
* ID_MSGV4 = "
ID_STEP = "
* ID_DETAIL = ' ' "
ID_ARBGB = "
ID_MSGTY = "
ID_MSGNR = "
* ID_MSGV1 = "
* ID_MSGV2 = "
* ID_MSGV3 = "

EXCEPTIONS
NOT_STORED = 1 INCORRECT_CALL = 2
.



IMPORTING Parameters details for FWTM_MESSAGE_STORE

ID_RUN_ID -

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

ID_MSGV4 -

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

ID_STEP -

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

ID_DETAIL -

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

ID_ARBGB -

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

ID_MSGTY -

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

ID_MSGNR -

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

ID_MSGV1 -

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

ID_MSGV2 -

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

ID_MSGV3 -

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

EXCEPTIONS details

NOT_STORED -

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

INCORRECT_CALL -

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

Copy and paste ABAP code example for FWTM_MESSAGE_STORE 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_id_run_id  TYPE WTMIGRUN-RUN_ID, "   
lv_not_stored  TYPE WTMIGRUN, "   
lv_id_msgv4  TYPE SYMSGV, "   
lv_id_step  TYPE WTMIGSTEP-STEP, "   
lv_incorrect_call  TYPE WTMIGSTEP, "   
lv_id_detail  TYPE WTMIGMESS-DETAIL_FLAG, "   SPACE
lv_id_arbgb  TYPE WTMIGMESS-ARBGB, "   
lv_id_msgty  TYPE WTMIGMESS-MSGTY, "   
lv_id_msgnr  TYPE WTMIGMESS-MSGNR, "   
lv_id_msgv1  TYPE SYMSGV, "   
lv_id_msgv2  TYPE SYMSGV, "   
lv_id_msgv3  TYPE SYMSGV. "   

  CALL FUNCTION 'FWTM_MESSAGE_STORE'  "
    EXPORTING
         ID_RUN_ID = lv_id_run_id
         ID_MSGV4 = lv_id_msgv4
         ID_STEP = lv_id_step
         ID_DETAIL = lv_id_detail
         ID_ARBGB = lv_id_arbgb
         ID_MSGTY = lv_id_msgty
         ID_MSGNR = lv_id_msgnr
         ID_MSGV1 = lv_id_msgv1
         ID_MSGV2 = lv_id_msgv2
         ID_MSGV3 = lv_id_msgv3
    EXCEPTIONS
        NOT_STORED = 1
        INCORRECT_CALL = 2
. " FWTM_MESSAGE_STORE




ABAP code using 7.40 inline data declarations to call FM FWTM_MESSAGE_STORE

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 RUN_ID FROM WTMIGRUN INTO @DATA(ld_id_run_id).
 
 
 
"SELECT single STEP FROM WTMIGSTEP INTO @DATA(ld_id_step).
 
 
"SELECT single DETAIL_FLAG FROM WTMIGMESS INTO @DATA(ld_id_detail).
DATA(ld_id_detail) = ' '.
 
"SELECT single ARBGB FROM WTMIGMESS INTO @DATA(ld_id_arbgb).
 
"SELECT single MSGTY FROM WTMIGMESS INTO @DATA(ld_id_msgty).
 
"SELECT single MSGNR FROM WTMIGMESS INTO @DATA(ld_id_msgnr).
 
 
 
 


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!