Show TOC

Example documentationExample: Writing, Configuring, and Executing a POD Plug-In Extension

 

Prerequisites

You have working knowledge about SAP ME API and SAP MII Workbench.

You have downloaded the examples that are attached to SAP Note 1908404Information published on SAP site and imported SAPMEPLUGIN/CREATESFC to SAP MII Workbench. You can copy and use this extension as a template.

Writing a POD Plug-In Extension

Follow the process for Writing a Service API Extension described in Example: Writing, Configuring, and Executing a Service API Extension.

The input_xml property must be set based on the MIIProductionContext DTO.

The output_xml property is not supported for plug-in extensions.

Add a transaction property with the name output_message and data type string and select the Output Parameter checkbox. You can enter a message to be displayed in the POD as the output_message property value. The parent transaction folder name and the transaction name must be in upper case.

Configuring the POD Plug-In Extension
  1. In SAP ME, in Activity Maintenance, retrieve the template activity MII_TRANS_PLUGIN.

  2. Change the activity name and save it as a new activity.

  3. On the Rules tab page, enter valid values for TRANSACTION_NAME and PARAMETERS. Each parameter assignment must be separated by a semicolon. For more information, see SAP MII Transaction Plug-In.

  4. In POD Maintenance, and configure a button on the POD that references the new activity created in step 2.

Executing the POD Plug-In Extension

The extension can be executed in the same manner as standard POD plug-ins by clicking the configured button in the POD.

The SAP ME user that is executing the transaction must have a role (for example, SAP_XMII_USER) that is authorized to read the SAP MII transaction.