on 2012 Oct 30 11:55 AM
Hi All,
Our requirement is, while executing an RFC/BAPI, some message should trigger to MII and MII message listener should capture that message. And we will execute some transaction soon after receiving that message in MII.
For this, we configured RFC destination in SAP system using SM59 transaction and connection test is successful.
And we created Message Processing Rule in MII side.
Now we are trying to execute an RFC using,
CALL FUNCTION <function module name> IN BACKGROUND TASK DESTINATION <our RFC destination name>
but we are not getting any messages in MII message listener and also RFC is not updating anything in SAP side. Is there any other configuration needs to be done for our requirement?
Kindly give me some inputs to achieve our requirement.
Regards,
Aravinth
Request clarification before answering.
Hi All,
please give me some inputs to resolve this.
Regards,
Aravinth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aravinth,
What version of MII are you using? Depending upon the version, there are probably some more steps to registering the ProgramID required on both ends of the message transfer. Depending upon what version of MII/NW you are using, the configuration is done differently.
The most common use of the MII Listeners is for receiving IDocs, (LOIPRO, MATMAS, etc.), RFC type documents (Control Recipes typically), and web service calls. Depending upon your MII version, you may be limited strictly to IDocs.
Regards, Mike
Regards, Mike
Hi Mike.
We are facing the same problem that Aravinth.
In our case we are using SAP MII 12.1.10.
We have already a XMIIIDOC01 listener working just fine and we need to configure the XMIIRFC01. We followed the same step descrbed for XMIIIDOC01 but it keeps showing the message:
com.sap.conn.jco.JCoException: (104) RFC_ERROR_SYSTEM_FAILURE: no Beans listening for name ZRFC_XXXX registered for XMIIRFC01 on system SERVERXX_MID_00
together with this message we got the following message as well
[JRA]ReaderManaged_Application_Thread_22, onRollback(), no bean for given tid=0A010033133850915E220598
Any tip?
Regards
Italo Stefani
Vetta Group
Hi Italo,
The configuration of the RFC Listener is a little different and mostly simpler than the IDoc Listener. I have some written instructions around somewhere on configuring the RFC Listener and will see if I can find them for you and Aravinth's use. It will probably be sometime tomorrow before I get a chance to dig them up.
Regards, Mike
Hi Mike,
Our MII version is 12.2 and NW version is 7.1
I will brief you my requirement one more time. If I execute my RFC in ECC, I should get some message in message listener of MII and based on message processing rule, I will be executing some transaction in MII.
For this, we have created one RFC destination "XMIIRFC02" with connection type T and program ID is also "XMIIRFC02". So, this program ID we registered in NW. Then we created message processing rule in MII.
In ECC, I am calling my RFC with
CALL FUNCTION <function module name> IN BACKGROUND TASK DESTINATION 'XMIIRFC02'
But our RFC is not updating any values in SAP and we are not receiving message in message listener of MII.
If I remove that DESTINATION addition in my coding, my RFC is working fine.
CALL FUNCTION <function module name> IN BACKGROUND TASK
please help me to achieve this requirement.
Thanks,
Aravinth
Hi Aravinth,
Haven't found the document yet, but I can start with asking what you did with the ProgramID in both ERP and NW for configuring the RFC Listener. Remember you can't use the same ProgramID in more than one place (it is a one to one relationship between MII and ERP). A common problem is reusing the ProgramID for both IDoc Listener and RFC Listener or using the same ProgramID on multiple MII instances. The ProgramID should be added to the definition of the RFC Listener in NW as well as in the configuration of the Logical System in ERP. Do not change the binding (leave it as the default).
Regards, Mike
Hi Aravinth,
Here is what I found in my notes for setting up the ERP side:
On the MII side:
Important Comment Number 1:
I will admit to a lot less experience with RFC Listeners than IDoc Listeners, but the basic processes are very similar. One thing is that you do not use the ProgramID in multiple places on either ERP or MII. The common result is seeing some of your documents showing up and some disappearing.
Important Comment Number 2:
NW self-registers the ProgramID when you complete the MII operations above. If you manually register your ProgramID with NW, it will now reside in two locations in NW - see Important Comment Number 1.
Hope this helps! Sorry about the delay. Coworkers dragged me out to a really good steak restaurant and forced much food and drink upon my helpless carcass.
Regards, Mike
Message was edited by: Michael Appleby
Hi Mike,
I have created another thread to discuss about my problem (similar to this).
The thread is
http://scn.sap.com/thread/3264604
I have created a new one to not interfere in Aravinth Ananthan problem.
PS: Was it a brazilian steak house style?? Usually it takes couple weeks to come back to life!!
Thanks!!
Italo Stefani
Thanks Mike.
I just solved the problem! We had couple issues.
1) I restarted both tc~sapjra~temp and xapps~xmii~ear application and the messages started to be sent correctly.
2) I am not sure if the restart is really necessary, I was convinced it was until I found a duplicated configuration. Someone configured the XMIIRFC01 and XMIIRFC10 and I did not see. So, after the application restart all messages had been received by XMIIRFC10 Listener, whatever was the destination in the SAP ECC. So, I left only the XMIIRFC01 listener working and the messages are ok now.
Thank you very much for your help. The steps were very helpful!!
Italo Stefani
Vetta Group
Aravinth, What was that connection type 'H' or 'T' in SM59 ?
And where are you trying to execute this "
CALL FUNCTION <function module name> IN BACKGROUND TASK DESTINATION <our RFC destination name>", I mean MII or ECC?
Thanks
Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From what i remember when i usedRFC destination long time back to call RFC from another ECC system. It was H type.
And conceptually, If you are calling this statement,
CALL FUNCTION <function module name> IN BACKGROUND TASK DESTINATION <our RFC destination name> in ECC,
RFC destination of H type looks to execute FM in the destination system but i excepts same function module to be present in source system too.
But any way, I never understood what those RFC listeners in MII are for? There is not public documentation available other few questions in SDN what they are for.
Thanks
Hari
User | Count |
---|---|
11 | |
2 | |
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.