SAP Function Modules

CUSTOMIZED_MESSAGE SAP Function module - Send Messages According to Set Message Type







CUSTOMIZED_MESSAGE 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 CUSTOMIZED_MESSAGE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: MESS
Released Date: 24.09.1999
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CUSTOMIZED_MESSAGE - CUSTOMIZED MESSAGE





CALL FUNCTION 'CUSTOMIZED_MESSAGE' "Send Messages According to Set Message Type
  EXPORTING
    i_arbgb =                   "               Application/message ID
    i_dtype =                   " t100c-msgts   Standard type of message (S,I,W,E,A)
    i_msgnr =                   " t100c-msgnr   Message number
*   i_var01 = SPACE             "               1st variable of the message
*   i_var02 = SPACE             "               2nd variable of the message
*   i_var03 = SPACE             "               3rd variable of the message
*   i_var04 = SPACE             "               4th variable of the message
    .  "  CUSTOMIZED_MESSAGE

ABAP code example for Function Module CUSTOMIZED_MESSAGE





The ABAP code below is a full code listing to execute function module CUSTOMIZED_MESSAGE 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_i_arbgb) = 'some text here'.

SELECT single MSGTS
FROM T100C
INTO @DATA(ld_i_dtype).


SELECT single MSGNR
FROM T100C
INTO @DATA(ld_i_msgnr).

DATA(ld_i_var01) = 'some text here'.
DATA(ld_i_var02) = 'some text here'.
DATA(ld_i_var03) = 'some text here'.
DATA(ld_i_var04) = 'some text here'. . CALL FUNCTION 'CUSTOMIZED_MESSAGE' EXPORTING i_arbgb = ld_i_arbgb i_dtype = ld_i_dtype i_msgnr = ld_i_msgnr * i_var01 = ld_i_var01 * i_var02 = ld_i_var02 * i_var03 = ld_i_var03 * i_var04 = ld_i_var04 . " CUSTOMIZED_MESSAGE
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_i_arbgb  TYPE STRING ,
ld_i_dtype  TYPE T100C-MSGTS ,
ld_i_msgnr  TYPE T100C-MSGNR ,
ld_i_var01  TYPE STRING ,
ld_i_var02  TYPE STRING ,
ld_i_var03  TYPE STRING ,
ld_i_var04  TYPE STRING .

ld_i_arbgb = 'some text here'.

SELECT single MSGTS
FROM T100C
INTO ld_i_dtype.


SELECT single MSGNR
FROM T100C
INTO ld_i_msgnr.

ld_i_var01 = 'some text here'.
ld_i_var02 = 'some text here'.
ld_i_var03 = 'some text here'.
ld_i_var04 = 'some text here'.

SAP Documentation for FM CUSTOMIZED_MESSAGE


An application developer can use the function module CUSTOMIZED_MESSAGE and its related Customizing tables to enable the customer to determine ...See here for full SAP fm documentation

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 CUSTOMIZED_MESSAGE or its description.