SAP Function Modules

EMMA_INTMSG_IMP SAP Function module







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

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


Pattern for FM EMMA_INTMSG_IMP - EMMA INTMSG IMP





CALL FUNCTION 'EMMA_INTMSG_IMP' "
  EXPORTING
    is_emma_int =               " emma_int
*   msgty =                     " symsgty       Message Type
*   object_type =               " fieldname
*   x_cgen = ' '                " emma_xcgen    Generation indicator
  IMPORTING
    et_export =                 " emma_obj_msg_tab  Table of Objects with Messages for Case Determination
    et_msglongtxtpar =          " emma_msglongtxtpar_tab  Parameters in Message Long Text
  EXCEPTIONS
    NOT_ALLOW = 1               "
    NO_INTERVAL = 2             "
    .  "  EMMA_INTMSG_IMP

ABAP code example for Function Module EMMA_INTMSG_IMP





The ABAP code below is a full code listing to execute function module EMMA_INTMSG_IMP 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_et_export  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_msglongtxtpar  TYPE EMMA_MSGLONGTXTPAR_TAB .

DATA(ld_is_emma_int) = 'Check type of data required'.
DATA(ld_msgty) = 'some text here'.
DATA(ld_object_type) = 'some text here'.
DATA(ld_x_cgen) = 'some text here'. . CALL FUNCTION 'EMMA_INTMSG_IMP' EXPORTING is_emma_int = ld_is_emma_int * msgty = ld_msgty * object_type = ld_object_type * x_cgen = ld_x_cgen IMPORTING et_export = ld_et_export et_msglongtxtpar = ld_et_msglongtxtpar EXCEPTIONS NOT_ALLOW = 1 NO_INTERVAL = 2 . " EMMA_INTMSG_IMP
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_et_export  TYPE EMMA_OBJ_MSG_TAB ,
ld_is_emma_int  TYPE EMMA_INT ,
ld_et_msglongtxtpar  TYPE EMMA_MSGLONGTXTPAR_TAB ,
ld_msgty  TYPE SYMSGTY ,
ld_object_type  TYPE FIELDNAME ,
ld_x_cgen  TYPE EMMA_XCGEN .

ld_is_emma_int = 'some text here'.
ld_msgty = 'some text here'.
ld_object_type = 'some text here'.
ld_x_cgen = '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 EMMA_INTMSG_IMP or its description.