cancel
Showing results for 
Search instead for 
Did you mean: 

Sending messages from PI to MII

0 Kudos

Scenario:

SAP -> PI -> MII

Requirement: Need to get Production Orders data from ECC to PI to MII.

Questions:

1) After downloading the orders from ECC to PI, How PI can send the data to MII --- In this case I don't have any input parameters from MII to PI to fetch orders from ECC. Just need to fetch all the orders till date.

2) If I want to do Order confirmations from MII using PI -- How can I create a request for PI with all my input parameters.

Please help me, How I can configure "XMIIMESSAGELISTENER" in MII (Do I have to configure this to get Messages from PI ? )

Thanks in Advance.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

There's no real need to configure the XMIIMESSAGELISTENER component but rather the message processing rules that are hadling the XML messages received by the listener.  The reason why I say that is because the XMIIMESSAGELISTENER is always waiting for an incoming message on the standard HTTP(S) port of the MII server, just a matter of calling the service as defined here:

http://help.sap.com/saphelp_mii140sp01/helpdata/en/4c/7258d9e631469ee10000000a15822d/content.htm

In order for the XMIIMESSAGELISTENER to properly identify the message name so that the proper Processing Rule can be applied you need to either specify the "MessageName" URL parameter.  The other option is to define a XSD Schema and specify the XPath to the name if the document has the name contained inside of the XML defiinition.

On the PI side you configure an HTTP Endpoint and be sure to include "&session=false" in the URL as a parameter so that HTTP sessions are not created each time PI sends a message to MII.

Hope this helps,

Sam

PS: The help link above is for MII 14.0 (Currently in Ramp-Up) but the feature exists in 12.2 but it does not have the EO and EOIO processing as previous releases processed messages based on when they were received.  I believe that PI can control the serialization of messages to MII so that this isn't an issue.

Answers (3)

Answers (3)

0 Kudos

Ok, sorry I missed the second part of your question which is confirmations back to SAP PI from MII.  The way this is achieved is inside of the MII Logic engine there are actions specifically designed to integrated with XI/PI: XI -> HTTP XI will probably be the best one to you in your case (I didn't see you mention and WSDL interfaces) but either one will work as they both use HTTP(S).


Sam

Former Member
0 Kudos

Hi Rakesh,

1) You can simply call PI Web Service Call to download orders from ECC/PI to MII.

2) For this too, you can go the same way ...

agentry_src
Active Contributor
0 Kudos

Hi Rakesh,

I guess the first question is which version of MII (and NW) are you using.  Second question is why do you need PI in your application.  Have you thought about using IDocs for the download of the orders to MII and JCo-BAPI calls for the confirmations?

Regards, Mike

Former Member
0 Kudos

Hi Mike,

In MII, we can have approach like SAP MII-ECC or SAP MII-PI-ECC. In case, PI is just transferring the data between SAP ECC-MII .. i believe its better to go with direct approach MII-ECC without PI.

If PI is not transaforming anything, then it just becomes a monitoring platform and an additional layer of communication in between when we can eliminate the same.

Would it be advisable to have SAP MII-ECC landscape.

Please share your thoughts.

Thanks

Ruchir

agentry_src
Active Contributor
0 Kudos

Hi Ruchir,

My usual answer is that it depends upon the customer and their desires/needs.  If the customer already has the infrastructure in place AND desires to use PI for its guaranteed delivery feature, then use PI in the middle. 

Otherwise, you are adding another layer of complexity to the system as well as additional maintenance and I would recommend against using PI.  BAPI calls and IDoc Listeners work pretty well with less overhead.  Confirmations for production orders are not truly confirmed anyway, only delivered for queuing for future processing.  So even guaranteed delivery can be problematic in that case.

Regards, Mike

0 Kudos

Hi Mike,

We are using MII 12.2 version. PI in between ECC and MII is customer desire. As such we are getting production orders information through IDOCs and doing order confirmations using JCo calls from MII - ECC.

As per the customer request we need to do Order download/Confirmations through PI. PI already placed in the infrastructure and also getting information from ECC. Can you please suggest the configuration required to achieve the communication between PI and MII.

Thanks In Advance

Former Member
0 Kudos

Thanks for sharing your thoughts, Mike!