on 05-08-2010 5:17 PM
I have a corporate MII server that is receiving Process Order IDOCs from ECC. We have an MII server at each plant as well. What I would like to do is have the corporate MII server read the IDOC message to determine which plant should get the process order. Then forward that message to the appropriate MII plant server. I'm having trouble figuring out how to do that. Any ideas?
Michael Penrow
Hi.
You should be able to make a transaction, and based on some content post the XML to local MessageListerner via the following URL and post action block.
The Name=?? determines the messagename and thereby the kind of local processing needed. By doing this, you are only able to post XMLs to the messagelistener called XMIIMessageListener, byt you can differentiate them afterwards by the name.
.BR
Poul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Michael,
In order to determine the plant, you will need to read the IDoc and look for the field WERKS which contains the Plant number/name. You can then forward it on to the correct plant MII instance.
You can send it a couple different ways. You could simply forward it as is to the plant and recieve it using the Message Listener. Or you could parse the IDoc at the corporate server and then send just the required information to the plant via VirtualXacuteConnector. You could also send the IDocs directly to the local plant by setting up IDoc Listeners for each and every plant. Depending upon your particular configuration, you could set up Change Pointers to trigger delivery.
Hope this helps,
Mike
Thanks for your help everyone. I have decided to use the Http Post action block to post the messages to the plant servers.
I have the following configuration in my http post action block:
ContentType = text/xml
Credential Alias = an xmii user.
In the links I have set the following:
ContentType = "text/xml"
PostData = My transaction variable with the IDOC message.
When I try that I am getting the following error message:
You do not have permission to access service WSMessageListener
I am using a credential alias that has permission on the plant server. The action block returns success and an HTML status of OK. Did I miss something?
Michael Penrow
Hi.
A default MII user with role SAP_XMII_User needs to have permission to action : XMII_MessageListenerService.
Either you need to make a new role in the user administration and assign this to your MII user, or you need to add this action to the role :SAP_XMII_User
BR
Poul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
7 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.