cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Sender adapter - Sender agreement not found Error

Former Member
0 Kudos

Hi ,

I am getting this error when i send an RFC request to XI from SAP.

Exception thrown [Fri Aug 05 10:10:35,624]:Exception thrown by application running in JCo Server

com.sap.aii.af.rfc.afcommunication.RfcAFWException: senderAgreement not found: lookup of binding via CPA-cache failed for AdapterType RFC, dapterNS http://sap.com/xi/XI/System, direction INBOUND, fromParty '', fomService 'HORIZONISU', toParty '', toServ

#at com.sap.aii.af.rfc.afcommunication.Message.getEmptyMsMessage(Message.java:345)

#at com.sap.aii.af.rfc.afcommunication.Message.buildMsMessage(Message.java:215)

#at com.sap.aii.af.rfc.afcommunication.ToAdapterFramework.sendSynchronous(ToAdapterFramework.java:341)

#at com.sap.aii.af.rfc.core.server.RfcServer.handleRequest(RfcServer.java:525)

#at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java(Compiled Code))

#at com.sap.mw.jco.MiddlewareJRfc$Server.dispatchRequest(MiddlewareJRfc.java(Compiled Code))

#at com.sap.mw.jco.MiddlewareJRfc$Server.listen(MiddlewareJRfc.java(Compiled Code))

#at com.sap.mw.jco.JCO$Server.listen(JCO.java:6926)

I have configured a sender RFC adapter in XI with a specific "program id". This RFC adapter is available under a Business System of type WebAS ABAP in integration directory.

I have created an RFC in my SAP system (it just has IMPORT & EXPORT parameters, no SrcCode), i also have an RFC destination of type T in SAP which has the program id specified in my RFC adapter config. The application host & gateway in this RFC destination point to itself(points the same SAP system where the RFC destination is created)

Now i trigger the RFC from an other function module with destination parameter pointing to the RFC destination of type T created in SAP.

Is the above config ok ? If not what do i need to check , pointers pls. I get a dump in SAP when i execute the function module calling the RFC , and i see the above stacktrace in XI log.

Thanks

Saravana

Accepted Solutions (0)

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Saravana,

1. have you created a senderAgreement for your scenario? (senderAgreement not found)?

2. do you commit your RFC call with commit work? ( just to make sure )

3. is your RFC dest working? when you test it in SM59?

Regards,

michal

Former Member
0 Kudos

Just an addition, i have configured a sender agreement in directory with sender service as SAP business system , sender interface as the outbound synchronous interface that i created with RFC request & response structures.