SAP MMPUR_SEND_WITH_PROXY Function Module for RFC Send with Proxy
MMPUR_SEND_WITH_PROXY is a standard mmpur send with proxy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RFC Send with Proxy processing and below is the pattern details for this FM, 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 mmpur send with proxy FM, simply by entering the name MMPUR_SEND_WITH_PROXY into the relevant SAP transaction such as SE37 or SE38.
Function Group: MMPUR_INTEGRATION_CQTN
Program Name: SAPLMMPUR_INTEGRATION_CQTN
Main Program: SAPLMMPUR_INTEGRATION_CQTN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function MMPUR_SEND_WITH_PROXY 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 'MMPUR_SEND_WITH_PROXY'"RFC Send with Proxy.
EXPORTING
* NS = "Namespace
* LOGICAL_PORT_NAME = "Logical Port Name
* IV_EOIO = "Character Field of Length 1
* IV_QUEUE_ID = "Proxy Runtime: Serialization Context
* IFNAME = "Interface Name
* IFVERSION = "Interface Version
* APPL_LOG_FUNCTION = 'AIF_SEND_WITH_PROXY' "Action
* DO_COMMIT = 'X' "Character Field of Length 1
* RESTART_MSG_GUID = "XI: Message ID
* MSGGUID = "XI: Message ID
* IS_RESTART = "Character Field of Length 1
* IV_PERSIST_XML = 'X' "Character Field of Length 1
IMPORTING
XIMSGGUID = "XI: Message ID
XIMSGGUID_OUT = "XI: Message ID
CHANGING
* ERROR_STRING = "
* ERROR_LONG_TEXT = "
* SAP_STRUCT = "Central Supplier Quotation Confirmation Entity
TABLES
* ADD_RETURN_TAB = "Return Parameter
EXCEPTIONS
PERSISTENCY_ERROR = 1 STATUS_UPDATE_FAILED = 2 MISSING_KEYS = 3 INTERFACE_NOT_FOUND = 4 TRANSFORMATION_ERROR = 5 GENERAL_ERROR = 6
IMPORTING Parameters details for MMPUR_SEND_WITH_PROXY
NS - Namespace
Data type: /AIF/NSOptional: Yes
Call by Reference: No ( called with pass by value option)
LOGICAL_PORT_NAME - Logical Port Name
Data type: PRX_LOGICAL_PORT_NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_EOIO - Character Field of Length 1
Data type: CHAR01Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_QUEUE_ID - Proxy Runtime: Serialization Context
Data type: PRX_SCNTOptional: Yes
Call by Reference: No ( called with pass by value option)
IFNAME - Interface Name
Data type: /AIF/IFNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IFVERSION - Interface Version
Data type: /AIF/IFVERSIONOptional: Yes
Call by Reference: No ( called with pass by value option)
APPL_LOG_FUNCTION - Action
Data type: /AIF/IFACTIONDefault: 'AIF_SEND_WITH_PROXY'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DO_COMMIT - Character Field of Length 1
Data type: CHAR01Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RESTART_MSG_GUID - XI: Message ID
Data type: SXMSMGUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
MSGGUID - XI: Message ID
Data type: SXMSMGUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_RESTART - Character Field of Length 1
Data type: CHAR01Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_PERSIST_XML - Character Field of Length 1
Data type: CHAR01Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MMPUR_SEND_WITH_PROXY
XIMSGGUID - XI: Message ID
Data type: SXMSMGUIDOptional: No
Call by Reference: No ( called with pass by value option)
XIMSGGUID_OUT - XI: Message ID
Data type: SXMSMGUIDOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for MMPUR_SEND_WITH_PROXY
ERROR_STRING -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
ERROR_LONG_TEXT -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
SAP_STRUCT - Central Supplier Quotation Confirmation Entity
Data type: MMPUR_CQTNCONFIRMATION_S4_MSGOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MMPUR_SEND_WITH_PROXY
ADD_RETURN_TAB - Return Parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
PERSISTENCY_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STATUS_UPDATE_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_KEYS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERFACE_NOT_FOUND - interface not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TRANSFORMATION_ERROR - transformation error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GENERAL_ERROR - general error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MMPUR_SEND_WITH_PROXY 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_ns | TYPE /AIF/NS, " | |||
| lv_ximsgguid | TYPE SXMSMGUID, " | |||
| lv_error_string | TYPE STRING, " | |||
| lt_add_return_tab | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_persistency_error | TYPE BAPIRET2, " | |||
| lv_logical_port_name | TYPE PRX_LOGICAL_PORT_NAME, " | |||
| lv_iv_eoio | TYPE CHAR01, " | |||
| lv_iv_queue_id | TYPE PRX_SCNT, " | |||
| lv_ifname | TYPE /AIF/IFNAME, " | |||
| lv_ximsgguid_out | TYPE SXMSMGUID, " | |||
| lv_error_long_text | TYPE STRING, " | |||
| lv_status_update_failed | TYPE STRING, " | |||
| lv_ifversion | TYPE /AIF/IFVERSION, " | |||
| lv_sap_struct | TYPE MMPUR_CQTNCONFIRMATION_S4_MSG, " | |||
| lv_missing_keys | TYPE MMPUR_CQTNCONFIRMATION_S4_MSG, " | |||
| lv_appl_log_function | TYPE /AIF/IFACTION, " 'AIF_SEND_WITH_PROXY' | |||
| lv_interface_not_found | TYPE /AIF/IFACTION, " | |||
| lv_do_commit | TYPE CHAR01, " 'X' | |||
| lv_transformation_error | TYPE CHAR01, " | |||
| lv_general_error | TYPE CHAR01, " | |||
| lv_restart_msg_guid | TYPE SXMSMGUID, " | |||
| lv_msgguid | TYPE SXMSMGUID, " | |||
| lv_is_restart | TYPE CHAR01, " | |||
| lv_iv_persist_xml | TYPE CHAR01. " 'X' |
|   CALL FUNCTION 'MMPUR_SEND_WITH_PROXY' "RFC Send with Proxy |
| EXPORTING | ||
| NS | = lv_ns | |
| LOGICAL_PORT_NAME | = lv_logical_port_name | |
| IV_EOIO | = lv_iv_eoio | |
| IV_QUEUE_ID | = lv_iv_queue_id | |
| IFNAME | = lv_ifname | |
| IFVERSION | = lv_ifversion | |
| APPL_LOG_FUNCTION | = lv_appl_log_function | |
| DO_COMMIT | = lv_do_commit | |
| RESTART_MSG_GUID | = lv_restart_msg_guid | |
| MSGGUID | = lv_msgguid | |
| IS_RESTART | = lv_is_restart | |
| IV_PERSIST_XML | = lv_iv_persist_xml | |
| IMPORTING | ||
| XIMSGGUID | = lv_ximsgguid | |
| XIMSGGUID_OUT | = lv_ximsgguid_out | |
| CHANGING | ||
| ERROR_STRING | = lv_error_string | |
| ERROR_LONG_TEXT | = lv_error_long_text | |
| SAP_STRUCT | = lv_sap_struct | |
| TABLES | ||
| ADD_RETURN_TAB | = lt_add_return_tab | |
| EXCEPTIONS | ||
| PERSISTENCY_ERROR = 1 | ||
| STATUS_UPDATE_FAILED = 2 | ||
| MISSING_KEYS = 3 | ||
| INTERFACE_NOT_FOUND = 4 | ||
| TRANSFORMATION_ERROR = 5 | ||
| GENERAL_ERROR = 6 | ||
| . " MMPUR_SEND_WITH_PROXY | ||
ABAP code using 7.40 inline data declarations to call FM MMPUR_SEND_WITH_PROXY
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_appl_log_function) | = 'AIF_SEND_WITH_PROXY'. | |||
| DATA(ld_do_commit) | = 'X'. | |||
| DATA(ld_iv_persist_xml) | = 'X'. | |||
Search for further information about these or an SAP related objects