SAP Function Modules

SXIVERI_RUNTIME_EXECUTE SAP Function module







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

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


Pattern for FM SXIVERI_RUNTIME_EXECUTE - SXIVERI RUNTIME EXECUTE





CALL FUNCTION 'SXIVERI_RUNTIME_EXECUTE' "
  EXPORTING
    service =                   " sairt_type    Processing Type
    qos =                       " sxmsqos       Integration Engine: Quality of Service
*   queue_id =                  " sxmsqid
    message_header_input =      " sxiveri_messageheader
*   message_header_comp =       " sxiveri_messageheader
    mo_content_input =          " sxiveri_con_tab  XI Automatic Tests: Test Data Container
*   mo_content_comp =           " sxiveri_con_tab  XI Automatic Tests: Test Data Container
*   debug =                     " char01        Character Field Length 1
*   external_check = ' '        " char01        Character Field of Length 1
  IMPORTING
    return =                    " bapirettab    Table with BAPI Return Information
    messageguid =               " sxmsmguid
  EXCEPTIONS
    TESTCASE_FAILED = 1         "
    .  "  SXIVERI_RUNTIME_EXECUTE

ABAP code example for Function Module SXIVERI_RUNTIME_EXECUTE





The ABAP code below is a full code listing to execute function module SXIVERI_RUNTIME_EXECUTE 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_return  TYPE BAPIRETTAB ,
ld_messageguid  TYPE SXMSMGUID .

DATA(ld_service) = 'Check type of data required'.
DATA(ld_qos) = 'Check type of data required'.
DATA(ld_queue_id) = 'Check type of data required'.
DATA(ld_message_header_input) = 'Check type of data required'.
DATA(ld_message_header_comp) = 'Check type of data required'.
DATA(ld_mo_content_input) = 'Check type of data required'.
DATA(ld_mo_content_comp) = 'Check type of data required'.
DATA(ld_debug) = 'Check type of data required'.
DATA(ld_external_check) = 'Check type of data required'. . CALL FUNCTION 'SXIVERI_RUNTIME_EXECUTE' EXPORTING service = ld_service qos = ld_qos * queue_id = ld_queue_id message_header_input = ld_message_header_input * message_header_comp = ld_message_header_comp mo_content_input = ld_mo_content_input * mo_content_comp = ld_mo_content_comp * debug = ld_debug * external_check = ld_external_check IMPORTING return = ld_return messageguid = ld_messageguid EXCEPTIONS TESTCASE_FAILED = 1 . " SXIVERI_RUNTIME_EXECUTE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_return  TYPE BAPIRETTAB ,
ld_service  TYPE SAIRT_TYPE ,
ld_messageguid  TYPE SXMSMGUID ,
ld_qos  TYPE SXMSQOS ,
ld_queue_id  TYPE SXMSQID ,
ld_message_header_input  TYPE SXIVERI_MESSAGEHEADER ,
ld_message_header_comp  TYPE SXIVERI_MESSAGEHEADER ,
ld_mo_content_input  TYPE SXIVERI_CON_TAB ,
ld_mo_content_comp  TYPE SXIVERI_CON_TAB ,
ld_debug  TYPE CHAR01 ,
ld_external_check  TYPE CHAR01 .

ld_service = 'Check type of data required'.
ld_qos = 'Check type of data required'.
ld_queue_id = 'Check type of data required'.
ld_message_header_input = 'Check type of data required'.
ld_message_header_comp = 'Check type of data required'.
ld_mo_content_input = 'Check type of data required'.
ld_mo_content_comp = 'Check type of data required'.
ld_debug = 'Check type of data required'.
ld_external_check = '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 SXIVERI_RUNTIME_EXECUTE or its description.