SAP SXMS_TEST_MAPPING Function Module for









SXMS_TEST_MAPPING is a standard sxms test mapping SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for sxms test mapping FM, simply by entering the name SXMS_TEST_MAPPING into the relevant SAP transaction such as SE37 or SE38.

Function Group: SXMS_MAPPING
Program Name: SAPLSXMS_MAPPING
Main Program: SAPLSXMS_MAPPING
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SXMS_TEST_MAPPING pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SXMS_TEST_MAPPING'"
EXPORTING
TESTCASE = "
* ACK_REQUEST = "
* ATTACH_FLAG = "
* QUEUE_ID = "
* QUANTITY = 1 "
* DATA = "

IMPORTING
MSGID_TAB = "

EXCEPTIONS
CX_AI_SYSTEM_FAULT = 1
.



IMPORTING Parameters details for SXMS_TEST_MAPPING

TESTCASE -

Data type: STRING
Optional: No
Call by Reference: Yes

ACK_REQUEST -

Data type: PRX_ACK_REQUEST_DETAILS
Optional: Yes
Call by Reference: Yes

ATTACH_FLAG -

Data type: CHAR1
Optional: Yes
Call by Reference: Yes

QUEUE_ID -

Data type: SXMSQUEUE_ID
Optional: Yes
Call by Reference: Yes

QUANTITY -

Data type: I
Default: 1
Optional: Yes
Call by Reference: Yes

DATA -

Data type: STRING
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SXMS_TEST_MAPPING

MSGID_TAB -

Data type: SXMSMGUIDT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CX_AI_SYSTEM_FAULT -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SXMS_TEST_MAPPING Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_testcase  TYPE STRING, "   
lv_msgid_tab  TYPE SXMSMGUIDT, "   
lv_cx_ai_system_fault  TYPE SXMSMGUIDT, "   
lv_ack_request  TYPE PRX_ACK_REQUEST_DETAILS, "   
lv_attach_flag  TYPE CHAR1, "   
lv_queue_id  TYPE SXMSQUEUE_ID, "   
lv_quantity  TYPE I, "   1
lv_data  TYPE STRING. "   

  CALL FUNCTION 'SXMS_TEST_MAPPING'  "
    EXPORTING
         TESTCASE = lv_testcase
         ACK_REQUEST = lv_ack_request
         ATTACH_FLAG = lv_attach_flag
         QUEUE_ID = lv_queue_id
         QUANTITY = lv_quantity
         DATA = lv_data
    IMPORTING
         MSGID_TAB = lv_msgid_tab
    EXCEPTIONS
        CX_AI_SYSTEM_FAULT = 1
. " SXMS_TEST_MAPPING




ABAP code using 7.40 inline data declarations to call FM SXMS_TEST_MAPPING

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
DATA(ld_quantity) = 1.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!