SAP Function Modules

EMMA_IDOC_PROCESS SAP Function module







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

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


Pattern for FM EMMA_IDOC_PROCESS - EMMA IDOC PROCESS





CALL FUNCTION 'EMMA_IDOC_PROCESS' "
  EXPORTING
    it_loginfo =                " emma_loginfo_out_tab  Returns Table Log Information
    iv_runid =                  " emma_runid    Internal Job Number
    iv_version =                " emmarelease   EMMA Release
    is_emma_hdr =               " emma_hdr      Prepared Application Logs
  IMPORTING
    es_output_hdr =             " emma_hdr      Prepared Application Logs
    et_output_int =             " emma_int_tab  Table Type for EMMA_INT
    et_exporteo =               " emma_obj_msg_tab  Messages in Cluster
    et_exportwo =               " emma_obj_msg_tab  Messages in Cluster
    et_exportso =               " emma_obj_msg_tab  Messages in Cluster
    et_exportim =               " emma_obj_msg_tab  Messages in Cluster
    et_exportwm =               " emma_obj_msg_tab  Messages in Cluster
    et_exportem =               " emma_obj_msg_tab  Messages in Cluster
    et_return =                 " bapirettab    Table with BAPI Return Information
  EXCEPTIONS
    NOT_FOUND = 1               "               Log Not Found
    NO_MESSAGE_FOUND = 2        "               No message found
    .  "  EMMA_IDOC_PROCESS

ABAP code example for Function Module EMMA_IDOC_PROCESS





The ABAP code below is a full code listing to execute function module EMMA_IDOC_PROCESS 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_es_output_hdr  TYPE EMMA_HDR ,
ld_et_output_int  TYPE EMMA_INT_TAB ,
ld_et_exporteo  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_exportwo  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_exportso  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_exportim  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_exportwm  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_exportem  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_return  TYPE BAPIRETTAB .

DATA(ld_it_loginfo) = 'Check type of data required'.
DATA(ld_iv_runid) = 'Check type of data required'.
DATA(ld_iv_version) = 'Check type of data required'.
DATA(ld_is_emma_hdr) = 'Check type of data required'. . CALL FUNCTION 'EMMA_IDOC_PROCESS' EXPORTING it_loginfo = ld_it_loginfo iv_runid = ld_iv_runid iv_version = ld_iv_version is_emma_hdr = ld_is_emma_hdr IMPORTING es_output_hdr = ld_es_output_hdr et_output_int = ld_et_output_int et_exporteo = ld_et_exporteo et_exportwo = ld_et_exportwo et_exportso = ld_et_exportso et_exportim = ld_et_exportim et_exportwm = ld_et_exportwm et_exportem = ld_et_exportem et_return = ld_et_return EXCEPTIONS NOT_FOUND = 1 NO_MESSAGE_FOUND = 2 . " EMMA_IDOC_PROCESS
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_es_output_hdr  TYPE EMMA_HDR ,
ld_it_loginfo  TYPE EMMA_LOGINFO_OUT_TAB ,
ld_et_output_int  TYPE EMMA_INT_TAB ,
ld_iv_runid  TYPE EMMA_RUNID ,
ld_et_exporteo  TYPE EMMA_OBJ_MSG_TAB ,
ld_iv_version  TYPE EMMARELEASE ,
ld_et_exportwo  TYPE EMMA_OBJ_MSG_TAB ,
ld_is_emma_hdr  TYPE EMMA_HDR ,
ld_et_exportso  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_exportim  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_exportwm  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_exportem  TYPE EMMA_OBJ_MSG_TAB ,
ld_et_return  TYPE BAPIRETTAB .

ld_it_loginfo = 'Check type of data required'.
ld_iv_runid = 'Check type of data required'.
ld_iv_version = 'Check type of data required'.
ld_is_emma_hdr = 'Check type of data required'.

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