cancel
Showing results for 
Search instead for 
Did you mean: 

MII_TRANS_PLUGIN how to specify parameters

0 Kudos

Hi,

I implement an MII_TRANS_PLUGIN into a POD. This activity calls a MII transaction and the transaction will be called.

At the next step I want to specify parameters like the started sfc or the operation, but I don't know how to implement this.

Can somebody help me?

regards

Ronny

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Ronny,

As I can see in the attachment for SAP Note 1908404, parameter assignment should be done as follows:

Configure Service API Extension

  1. Open the Service Extension
    Maintenance activity in SAP ME.
  2. Search for the target service method to be extended.  Use the PAPI reference as a guide.
  3. Select the method in the search results.
  4. Click the New Extension button.
  5. Select the Execution Point.
  6. Enter a name for the extension.
  7. Enter “MII_TRANS_EXT” for the extension activity.
  8. Click the Options tab and enter the name of the transaction created
    above in the TRANSACTION_NAME field.
  9. Enter any parameters to be passed to the SAP MII transaction in the PARAMETERS field as follows. Each parameter assignment must be separated by a semicolon: material_name=M1;material_version=A
  10. Save the extension.

Configure Hook Extension

  1. Open the maintenance activity for the hook point to be extended.  For
    example, use Operation Maintenance for PRE_START and POST_START hooks.
  2. Specify MII_TRANS_EXT as the hook activity.
  3. Specify the SAP MII transaction name as well as input parameters in the User Argument field as follows.  Each parameter assignment must be separated by a semicolon.

transactionName=SAPMEServiceExt/PreStartHook_CreateSFC;material_name=M1;material_version=A

Regards,

Sergiy

0 Kudos

Hi Serliy,

1. I made the following Extend:

Modul:com.sap.me.production

Service:SfcStartService

Methode:start Ausführungszeitpunkt:POST

Aktivität:MII_TRANS_EXT

2. in operation maintenance I added the activity hook.

I get the following exception in the logviewer by starting a sfc number:

com.sap.me.frame.domain.BusinessRuntimeException: java.lang.ClassNotFoundException: com.sap.me.com.sap.me.production.CreateAndStartSfcRequest

The papi service is configured.

Thank you.

regards

Ronny

0 Kudos

Hi!

Now we use the SAP ME 15 version and the activity MII_TRANS_EXT works fine.

best regards

Ronny

Answers (0)