cancel
Showing results for 
Search instead for 
Did you mean: 

Message Listener configuration for receiveing control receipe from PI

Former Member
0 Kudos

Could any one advise me on

1) how should i configure my meesage listener to receive control receipe download message from PI (scenario ERP --> PI --> XMII)

2) I want to use the queue concept as i need to push the message to the queue and retrieve one by one for processing based on the massge status . Is the listener configuration to be different

3) Also i am thinking on doing unit test (with out PI sending messasge) by creating /posting message to the XMII queue using HTTP post transaction . I

Any help would be greatly appreciated

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1) how should i configure my meesage listener to receive control receipe download message from PI (scenario ERP --> PI --> XMII)

look at the following posts

How to Send IDocs from the SAP R/3 Enterprise to the SAP xMII 11.5 IDoc Listener

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/201769e0-3174-2910-e287-baa58d198246]

How to Send an IDoc from SAP ECC to the SAP MII 12.0 IDoc Listener

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50775783-6cb1-2b10-90b0-e6bc2c0b8563]

How to Send an IDoc from SAP ECC to the SAP MII IDoc Listener (MII 12.1 to ECC 6.0)

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a02bc706-15f2-2c10-1aab-a1927ada11f0]

How To Integrate SAP xMII with SAP ERP

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5115] [original link is broken] [original link is broken] [original link is broken];

2) I want to use the queue concept as i need to push the message to the queue and retrieve one by one for processing based on the massge status . Is the listener configuration to be different

For queing you can use BLS services there are some action blocks under message services and queueing

Regards,

Manoj Bilthare

Answers (2)

Answers (2)

Former Member
0 Kudos

Pretty much i understand the concept.Thanks for the support

Former Member
0 Kudos

Hi,

what MII version do you use?

Michael

Former Member
0 Kudos

Hi Michael,

I am using Version 12.1.5 Build(77) .

Our scenario is ERP --> PI --> MII. (control receipe download)

1) Control receipe dowload are received in the MessageListener of the MII . From here i need to push into the queue for processing and write into MII staging table for further processing .(sending into DCS)

As i have not used queue before , i need idea on how best it can be implemented .

2) For unit test purposes, I am planning to write HTTP post action to post the sample XML meesage to the Message listener and pocess from there . I manage to send some message to the listener and able to see in the message monitor .

now i need to know how to push this into queue and process one by one

Thanks

Former Member
0 Kudos

The MII Message listener is a queue. But when I understand you correctly, you do not want to process the messages immediately after arriving in the Listener.

Maybe the categorization of messages is an option for you (see [Sap Help: Processing Rule Editor - Category|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm]. You can enter a category for the control recipe messages. The messages will then be placed in the Listener queue. You can use the [Message Services|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm] actions to read the categorized messages and process them as you need.

In addition to Manoj, you may also use the [Queueing actions|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm] of MII, where you can queue xml contents.

Hope this helps.

Michael

Former Member
0 Kudos

Hi ,

Thanks. Let me get this correctly. I have configured meesageListener and currently it is populated with messages ( I can see thro message monitor). My understanding was, I need to write a Transaction to read this message and push into Queue for further processing .Later i will read from queue one by one and process it to write into the MII staging table .

My question is that if message listener is a queue and we can read queue with Message services action blocks what is the purpose of queuing actions blocks in the MII . Hopeing to get clarifications with any examples scneario

Former Member
0 Kudos

Hi,

you use the message listener to receive RFC, IDoc of Web Service messages. To process them, you create a Processing Rule which defines what transaction to call, if a certain combination of server / message type arrives. The Processing Rule calls the assigned transaction. The messages of a Processing Rule are processed sequentially. If many messages arrive in a short time, the first is processed, and the rest is queued. Thats the standard queueing mechanism of the listener.

The queueing actions can be used, if you want to build up your own queue for xml messages. Consider this: Your user processes some GUI screen, starting a transaction which needs some time to process. To avoid having the user look at the hourglass, you may queue the request in a customer queue and return the focus to the user. A scheduled job starts a transaction which checks if there are queued requests, and processes the request in the background.

Hope this helps.

Michael