SAP Function Modules

FTR_MESSAGE_STORE SAP Function module - Output Message to a Message Handler/Dialog







FTR_MESSAGE_STORE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FTR_MESSAGE_STORE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FTR_00
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FTR_MESSAGE_STORE - FTR MESSAGE STORE





CALL FUNCTION 'FTR_MESSAGE_STORE' "Output Message to a Message Handler/Dialog
  EXPORTING
    i_id =                      " sy-msgid      Message Class
    i_type =                    " sy-msgty      Message Type
    i_number =                  "               Message Number
*   i_msgv1 =                   "               Message Variable 1
*   i_msgv2 =                   "               Message Variable 2
*   i_msgv3 =                   "               Message Variable 3
*   i_msgv4 =                   "               Message Variable 4
*   i_mh_tbfld_strg =           "               Cursorfeld / hell leuchtende Felder
*   i_mh_stepl =                " sy-stepl      ggf. Step-loop-Zeile der Nachricht
*   i_mh_sicht =                " tbz3e-sicht   Current View
*   i_mh_repeat_show = '1'      "               W- und I-Messages mehrfach anzeigen?
*   i_mh_flag_coll_end =        "               Nachfolgende Meldg. werden nicht mehr gesammelt
  IMPORTING
    e_rc =                      " sy-subrc      Return Code
    .  "  FTR_MESSAGE_STORE

ABAP code example for Function Module FTR_MESSAGE_STORE





The ABAP code below is a full code listing to execute function module FTR_MESSAGE_STORE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_rc  TYPE SY-SUBRC .

DATA(ld_i_id) = 'some text here'.
DATA(ld_i_type) = 'some text here'.
DATA(ld_i_number) = 'some text here'.
DATA(ld_i_msgv1) = 'some text here'.
DATA(ld_i_msgv2) = 'some text here'.
DATA(ld_i_msgv3) = 'some text here'.
DATA(ld_i_msgv4) = 'some text here'.
DATA(ld_i_mh_tbfld_strg) = 'some text here'.
DATA(ld_i_mh_stepl) = 'some text here'.

SELECT single SICHT
FROM TBZ3E
INTO @DATA(ld_i_mh_sicht).

DATA(ld_i_mh_repeat_show) = 'some text here'.
DATA(ld_i_mh_flag_coll_end) = 'some text here'. . CALL FUNCTION 'FTR_MESSAGE_STORE' EXPORTING i_id = ld_i_id i_type = ld_i_type i_number = ld_i_number * i_msgv1 = ld_i_msgv1 * i_msgv2 = ld_i_msgv2 * i_msgv3 = ld_i_msgv3 * i_msgv4 = ld_i_msgv4 * i_mh_tbfld_strg = ld_i_mh_tbfld_strg * i_mh_stepl = ld_i_mh_stepl * i_mh_sicht = ld_i_mh_sicht * i_mh_repeat_show = ld_i_mh_repeat_show * i_mh_flag_coll_end = ld_i_mh_flag_coll_end IMPORTING e_rc = ld_e_rc . " FTR_MESSAGE_STORE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_rc  TYPE SY-SUBRC ,
ld_i_id  TYPE SY-MSGID ,
ld_i_type  TYPE SY-MSGTY ,
ld_i_number  TYPE STRING ,
ld_i_msgv1  TYPE STRING ,
ld_i_msgv2  TYPE STRING ,
ld_i_msgv3  TYPE STRING ,
ld_i_msgv4  TYPE STRING ,
ld_i_mh_tbfld_strg  TYPE STRING ,
ld_i_mh_stepl  TYPE SY-STEPL ,
ld_i_mh_sicht  TYPE TBZ3E-SICHT ,
ld_i_mh_repeat_show  TYPE STRING ,
ld_i_mh_flag_coll_end  TYPE STRING .

ld_i_id = 'some text here'.
ld_i_type = 'some text here'.
ld_i_number = 'some text here'.
ld_i_msgv1 = 'some text here'.
ld_i_msgv2 = 'some text here'.
ld_i_msgv3 = 'some text here'.
ld_i_msgv4 = 'some text here'.
ld_i_mh_tbfld_strg = 'some text here'.
ld_i_mh_stepl = 'some text here'.

SELECT single SICHT
FROM TBZ3E
INTO ld_i_mh_sicht.

ld_i_mh_repeat_show = 'some text here'.
ld_i_mh_flag_coll_end = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FTR_MESSAGE_STORE or its description.