Error in RFC Sender Scenario. CM_PRODUCT_SPECIFIC_ERROR

Hi,
     I try to do a RFC -> XI -> JDBC. When I execute the FM in my R/3 4.6C the following error show up:
"connection to partner broken" / "CPI-C error
CM_PRODUCT_SPECIFIC_ERROR".
An error occurred when executing a Remote Function Call.
"CPI-C error CM_PRODUCT_SPECIFIC_ERROR"
Status of connection.... "CODE=CM_PRODUCT_SPECIFIC_ERROR CM_NO_STATUS_RECEIVED
CM_NO_DATA_RECEIVED SAPCODE=223 CONV=66899296"
Internal error code.... "RFC_IO5"
There is an error in the communication system. To clarify
and resolve the error, contact your system administrator.
Last error logged in SAP kernel
Component............ "NI (network interface)"
Place................ "SAP-Gateway on host zulia / sapgw00"
Version.............. 34
Error code........... "-6"
Error text........... "connection to partner broken"
Description.......... "NiPRead"
System call.......... "recv"
Module............... "ninti.c"
Line................. 1130

Hi Udo,
   The RFC Sender Communication Channel is complete configure as well the SM59 destination.
When I active the RFC Destination trace, this is what appears:
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> OPEN
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> 71385358 (71385358)
   -{9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD}
Instrument:  RfcCallNew send the uuid to the partner {9B7BBA2C-FD5D-4C89-A492-9F
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> WRITE (71385358)
   -{9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD}
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> FLUSH(WRITE) (71385358)
   -{9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD}
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> FLUSH(WRITE) (71385358)
   -{9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD}
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> WAIT (71385358)
   -{9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD}
======> CPIC-CALL: 'ThSAPCMRCV'
Ha sido cancelada la conexión con un programa CPI-C -> Falló lectura
ABAP Programm: YPRUEBA_XI (Transaction: SE38)
Called function module: ZIG_DATOS_SAP_BDI
User: 11393759 (Client: 210)
Destination: XI_RFC (handle: 1, convid , {9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD})
Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 2943
CPIC-CALL: 'ThSAPCMRCV'
Ha sido cancelada la conexión con un programa CPI-C -> Falló lectura
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> WAIT IGNORED (71385358)
   -{9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD}
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> READ (71385358)
   -{9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD}
>>>> [1] XI_RFC       : TCP  %%RFCSERVER%% >>> FREE-Message (71385358)
   -{9B7BBA2C-FD5D-4C89-A492-9F1982E8E9DD}
Regards,
Luis Diego

Similar Messages

  • Error RFC sender scenario :JCO.Server could not find server function

    Hi ,
    The scenario which am working is as follows:
    I already have a report in R/3 that calls a Bapi which is in CRM system, now I want to make this point-point connection through XI(RFC sender-XI-RFC Reciever) with out changing the report (only changing the RFC destination).
    I have imported the bapi from CRM to XI , changed the rfc destination(to tcp/ip) that existed in R/3 to point to XI(test connection is working fine) and also created the RFC sender adapter .
    Now on executing the report am getting the following error.
    “JCO.Server could not find server function” 
    Please, let me know where I went wrong.
    Should the function module exists on the XI server. If the functional module is not there then I am getting the  error if the function module is there in XI then every thing is working fine.

    Hi Michal ,
    Now my scenario is working . The error <b>"JCO.Server counld not find server function"</b>  got fixed by giving the system details that contain the RFC in the adapter metadata parameters in the channel configuration.
    Thanks & Regards,
    Srikanth.

  • Random error IN RFC sender channel

    Hi all,
             Please note that in two different scenarios Same busness system is used but different Sender RFC channels and different Functional modules. In spite of this a random error is occuring. At times scenario works fine and some times it gives error.
    "Wrong Sender Agreement:The Sender agreement doe
    ot have channel Func_sender_cc"
    No error report in SXMP_MONI.
    Any clue please.
    Regards
    venkat

    Hi,
    Now it is clear very much there is no need of registaring programID specifically any where. Any programID first mentioned in Comunication channel and actived and then defined rfc destination using SM59 with same programID gives successfull test result.
    Also for different RFC senders Different ProgramID shall be used to avoid the type errors faced by me.
    Hope this helps all
    cheers
    Venkat

  • Error in RFC Sender Adapter

    Hello Experts,
    Right now i m working on the scenario SRM -> XI -> 3rd party system.
    Here i want to send data from SRM to XI, and for that i m using Sender RFC Adapter.
    I have configured RFC Sender channel in XI and created RFC Destination into the SRM system, and when i m trying to test the RFC Destination at that time it is giving me error saying that "program POACK_GEE not registered".
    Can anyone help me out in this issue... its very urgent...
    so waiting for your replies...
    Thank you very much,
    hetal

    Hi Michal,
    I already had a look into that... but i didnt find the solution
    The error coming is like this....
    ERROR                program POACK_GEE not registered
    LOCATION             SAP-Gateway on host <host name> / <service name>
    DETAIL               TP POACK_GEE not registered
    COMPONENT            SAP-Gateway
    COUNTER              1270
    MODULE               gwr3cpic.c
    LINE                 1609
    RETURN CODE          679
    SUBRC                    0
    RELEASE              640
    TIME                 Mon May  7 16:45:48 2007
    VERSION              2
    I have followed all the steps then also i dont know y it is not working...

  • Error in RFC Sender

    Hi,
    We are implementing a BAPI to send data to PI. We have created the following
    IN R\3
    In SM59 create a new RFC connection type T (TCP/IP).
    Technical settings:
    Activation type: registered server program
    PROGRAM_ID: test_program_id
    Gateway options:
    GAteway host: Host of your R\3 system
    Gateway service: Gateway of your R\3 system
    In XI
    In your RFC Sender Communication Channel:
    RFC Server Parameter:
    Application Server: Host of your R\3 system
    Application Server Service: Gateway of your R\3 system
    PROGRAM ID: test_program_id
    RFC Metadata Repository parameter
    Message Serer: Your R/3 host.
    Message Server Service...
    SystemmID...
    Use a user with authorization to do RFC calls.
    Client...
    Language...
    After we finish setting up your CC, save and Activate.
    Now check the RFC in R/3
    When we run the program in SAP( which contains the BAPI ) for the first time, it runs & send the data but for next run it gives error in SAP side(SM58) :  Commit fault: com.sap.aii.adapter.rfc.afcommunicat ion.RfcChannelMismatchE
    Message no. SR053
    Can any one help us to solve the RFC connection issue
    Thanks

    make sure your program id is unique.try changing it.
    Ref:
    RFC adapter - /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    trouble shooting rfc/soap -
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

  • RFC 2 File Error in RFC sender: java.lang.ArrayIndexOutOfBoundsException

    Hello,
    I'm sending data asynchronously from R3 to a file through XI, I've got the RFC destination (in R3) and sender RFC channel (in XI) configured and tested. Working fine.
    Then in my report I've got the following code that sends 1 string and 4 internal tables 2 to XI:
      CALL FUNCTION 'Z_RFC_ENVIAR_DATOS_PSP'
        IN BACKGROUND TASK DESTINATION 'SAP_2_XI'
        EXPORTING
          RUTA                       = p_ruta
        TABLES
          IT_DEMANDA           = p_gt_demanda
          IT_STOCKS              = lt_stocks
          IT_CUARENTENAS   = lt_cuarent
          IT_COMPRAS           = lt_repartos.
      COMMIT WORK.
    I've done that king of connection several times and allways worked but now I've got that error in the communication channel monitoring at RWB:
    Error in processing caused by: java.lang.ArrayIndexOutOfBoundsException
    And no message is created in XI. What can it be?
    Thanks for your help

    Hi Chen Lin,
    The problem is with the adapter but no message is generated yet in XI, so I don't have XML yet.
    The RFC sends the data to XI through the RFC destination and at this point something is wrong because that error is produced. The error is visible in both sides, In transaction SM58 at R3 I can see the error that tRFC hasn't been precessed because the ArrayIndexOutOfBoundsException.
    But if I go to communication channel monitoring I can see the same error too, so that confirms that the communication between R3 and XI works fine but something is wrong and the error don't give me more details

  • Errors in RFC sender Adapter

    Hi Guys,
    I am configuring a RFC sender Adapter in a newly installed system.
    I configured the adapter as per the parematers given in SAP help in the exact way and started getting the error
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: senderAgreement not found: lookup of binding via CPA-cache failed for AdapterType RFC, AdapterNS http://sap.com/xi/XI/System, direction INBOUND, fromParty '*', fromService 'RD1CLNT020', toParty '', toService '', interface 'Z_TEST', NS 'urn:sap-com:document:sap:rfc:functions' for channel 'RD1CLNT020_IN' (channelId 897afca12ee93b86a5bfcd738c037099)
    If I go into SXI_CACHE of the PI system I can see the entry.
    My gut feeling is that the adapter is not fetching the metadata properely.
    Because I switched the metadata loging from the ECC system to PI system and I got the error
    JCO.Server could not find server function 'Z_TEST'
    I think in the basis setup we have missed something The version on which we are working is the Latest PI 7.1
    If somebody has a document at the the config for JCO or a solution for this problem will be much appreciated.
    Thanks & Regards
    Gagan Kasana

    Hi,
    there is no magic with this error - it's a common one
    1. my blog - RFC sedenr adapter config -
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    then is still does not work:
    2.check out OSS note  730870 - FAQ RFC Adapter
    "Question 19:
    While sending a RFC call to the RFC Adapter I get a error message like "com.sap.aii.af.rfc.afcommunication.RfcAFWException: lookup of binding via CPA-cache failed..." or "com.sap.aii.af.rfc.afcommunication.RfcAFWException: senderAgreement not found: lookup of binding via CPA-cache failed...". What is missing?"
    and you have it working
    please let me know if this helped
    Regards,
    Michal Krawczyk

  • Malformed XML payload on RFC sender scenario

    Hi all,
    I'm trying to send data from RFC to XI but I got follow error in SXMB_MONI:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Request Message Mapping  -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_mm_ZFI_RFC_CADASTRO_FORNECEDOR_To_~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping
    com/sap/xi/tf/_mm_ZFI_RFC_CADASTRO_FORNECEDOR_To_~: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    When open XML payload the structure and fields are ok but data on these fields is not, some data from one field is concatenate on another field and other case data is in different field. For example on field KUNNR, data sent by RFC on R/3 is '1000000386' But on PI the XML looks like that:
    <?xml version="1.0" encoding="UTF-8" ?>
    <rfc:ZFI_RFC_CADASTRO_FORNECEDOR xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    <T_LFA1>
      <item>
        <LIFNR>0000386</LIFNR>
    And in some fields that expect telephone number, on XML is like that:
    <TELFX>        & #00;& #00;& #00;& #00;& #00;& #00;& #00;& #12;</TELFX>
    (I HAVE TO INSERT SPACE BETWEEN  & and #00; )
    These codes generate the error com.sap.engine.lib.xml.parser.Parser~ on mapping program.
    I've tried to re-import RFC and full cache refresh but I think that error is on JCO on java stack when converting RFC call to XML. I've looked for some RFC Adapter and JCO configuration on Visual Administrator but everything looks ok.
    My system is:
    SAP PI 7.0 SP13
    SAP ECC 6.0
    Any idea how to solve this issue?
    Thanks!
    Edited by: Daniel Torres on Nov 5, 2008 2:12 PM

    Hi,
    As you can see mapping is because of Mapping , Exception During Execute come because of mapping error. So if you doing some graphical mapping there as you said you are concatenating some values passed from SAP R/3 in mapping , check it. Rather you can also check your mapping is right ot wrong using Test tab in mapping editor. also you can use Interface mapping for testing your whole scenario, i will prefer Interface Mapping thing to test my scenario as it will tell you if your requeswt mapping is correct or response message is correct.
    Lets check there and you will see exact problem of mapping.
    Regards
    Aashish Sinha

  • Error in SOAP sender scenario

    Hi All,
       I am getting the following error when i execute a sender SOAP scenario from XMP Spy.
      Scenario : SOAP --> XI --> RFC
    I am getting the following error when i try to send request from XML Spy.
    Error in XMl Spy:
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>Server Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context>XIAdapter</context>
                   <code>ADAPTER.JAVA_EXCEPTION</code>
                   <text>com.sap.aii.af.mp.module.ModuleException: *adapter inactive*
         at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:703)
         at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl0_3.process(ModuleLocalLocalObjectImpl0_3.java:103)
         at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:292)
         at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0.process(ModuleProcessorLocalLocalObjectImpl0_0.java:103)
         at com.sap.aii.af.mp.soap.web.MessageServlet.callModuleProcessor(MessageServlet.java:174)
         at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:436)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)</text>
                </s:SystemError>
             </detail>
          </SOAP:Fault>
       </SOAP:Body>
    </SOAP:Envelope>
    When i go to RWB-- > communication channel monitoring i see the channel status as "Started but Inactive" and when i go to Cluster node tab--> Cluster Node Details for Channel Unifier i see the following two entries every single time i try to send a message
      14/10/10 05:35:10   error occured
      14/10/10 05:35:10   request received
    Please help to figure out what could be wrong.

    open the SOAP Sender channel in Integration directory and change the status to active and then activate. Try resending SOAP message from XML spy

  • Could not execute the RFC sender scenario

    Hi,
    My Scenario is RFC to File asynchoronous.
    RFC is in XI box and I want the file to created on the XI box only.
    I have created an RFC destination using Sm59 transaction on XI box. Following are the details
    RFC Destination --> SAP_TO_XI
    Connection Type --> T
    Program ID --> PRG_ID
    Activation Type --> Registered Server Program
    Gateway Host --> SAPXIS01
    Gateway Service --> sapgw00
    I have created the Sender CC with the above gateway host, service and the program id.
    I want to execute the scenario on SAP XI by executing the RFC on XI box through a report.
    The following is the statement used in the report to execute the RFC
    Data: LS_CTRY_DTLS TYPE Z_TEST_TABLE.
    CALL FUNCTION 'Z_TEST'
    DESTINATION 'SAP_TO_XI'
    IN BACKGROUND TASK
    TABLES
    LT_CTRY_DLTS = LT_CTRY_DTLS
    EXCEPTIONS
    COMMUNICATION_FAILURE = 1
    SYSTEM_FAILUE = 2.
    COMMIT WORK.
    The function module is not giving any error and at the same time, no messages are shown in SXMB_MONI transaction. Can you please let me know the reason for this.
    Thanks
    Priya

    Hi Madhav,
    Thanks for answering. I have done as you have said. The connection is working properly. I am getting the following message when I clicked on the Test Connection button.
    Connection type:    TCP/IP connection
    Logon:                      4  msec
       0  KB:                    1  msec
      10  KB:                    3  msec
      20  KB:                    4  msec
      30  KB:                    5  msec
    But, still I am not able to see the messages through SXMB_MONI

  • Getting error in RFC sender adapter

    Hi all,
    Am doing the rfc to file scenario. I executed rfc, when i checked SXMB_MONI sent messages from R/3 were not found.So when i checked communication channel monitoring "com.sap.aii.af.rfc.afcommunication.RfcAFException: Service: D47_333 not found in CPACache"  am getting this error.
    I refreshed cache, even i checked in RWB everywhere the status is green.
    Can anyone tell how to solve this.
    Thanks in advance,
    Sakthi

    Hi Sakthi,
    Refer to the following notes
    SAP Note 730870
    SAP Note 775765
    Also check
    RFC Error in SM58 Commit fault
    RFC Error in SM58 Commit fault com.sap.aii.af.rfc.afcommunication
    Regards,
    Prateek

  • RFC Sender

    Hi all,
    Hi have defined a RFC Sender scenario. I think all in Design and Configuration time is OK.
    But I can't define the TCP-IP destination in SM59...What's about Program ID in definition of destination? How I register the Program ID?
    Thanks in advance,
    Regards.

    hi,
    >>>The commit work must go after de call function, isn't it?
    yes
    >>>>Another silly question: the rfc must exits in XI server?
    only in the repository - you import it into the repository
    >>>>No XML traffic in SXMB_MONI, no file written...
    check TCODE - SM58 on the r/3 if there are any errors over there
    BTW
    is the RFC connection to XI working in SM59?
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • R/3 to PI using RFC Sender Adaptor as Asynchronous scenario

    Hello Folks,
              RFC Adp.           SOAP Adp.
    ECC-->XI--
    >ARIBA
    I am new to PI and doing a scenario mention above. we are using RFC sender adaptor to send the data to XI in asynchronous process.
    I have config the Sender comm. channel as below.
    Appl.  Server(Gateway):  My Ecc Server host name
    Appl. Server Service (Gateway) : My Ecc server
    Program Id : XYZ.
    Note : while creating the the Service interface and Message mapping and Operation mapping I am using the RFCname.respone message type is that ok in asynchronous process?
    And then I went to ECC in Tcode SM59 and created a RFC destination of type TCP/IP
    and put the same information as given above and test the connection which is working fine.
    I have created a FM at ECC end make it remote enabled. and calling the FM in back ground task using destination in a Work flow code.
    When I run the Work flow code It ran successfully but i went to XI side there is no msg in the SXMB_MONI.
    Then i went to the component monitoring->Adatptor engine>Comm. channnel Monitoring and found that under my RFC sender comm. channel there is an error msg saying
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: senderAgreement not found: lookup of binding via CPA-cache failed for AdapterType RFC, AdapterNS http://sap.com/xi/XI/System, direction INBOUND, fromParty '', fromService 'BS_ECC', toParty '', toService '', interface 'YFPS_MM_I_0242_PO_APPROVAL_OUT', NS 'urn:sap-com:document:sap:rfc:functions' for channel 'CC_0242_PO_Approval_RFC_Sender' (channelId 19585252a58335ee871e4c3a771b027f)
    Where as i have checked that in the sxi_cache t-code there is a sender agreement for my scenario under the sender agreement tab.
    Please Help me in this to resolve the above error. I am totally stuck at this point.I would really appreciate a quick answer.

    Appl. Server Service (Gateway) : My Ecc server
    Confused with this statement.....
    it should have the format sapgwXX ....
    XX is the system number which comes from the j2ee port mentioned in the XI homepage URL
    http://<hostName>:5XX00:rep/start/index.jsp
    How to configure sender RFC adapter...check this blog:
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1438
    Error in processing caused by: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException:
    senderAgreement not found:
    Sender Agreement is Expected in this communication which does not seem to be present in ID....create sender agreement using the RFC communication channel....
    Regards,
    Abhishek.
    Edited by: abhishek salvi on May 2, 2009 1:24 AM

  • RFC Sender adapter - Sender agreement not found Error

    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

    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

  • Error when executing multiple scenarios with same ProgramID for RFC-JDBC

    Hi,
    I am working on the RFC-JDBC scenario.
    I see the following error in the dev_jrfc.trc file when I try to execute multiple scenarios which are using same program id (different communication channels).
    RfcException:
        message: Commit fault: com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchException: Wrong Sender Agreement:The Sender agreement does not have channel CC_SAP_XXXXX configured for the functionmodule Z_XXXXX_SO_CREATE_CHANGE
        Return code: RFC_CLOSED(6)
        error group: 108
        key: RFC_ERROR_INTERNAL
    Can one program id be used for multiple scenarios? Or do we need to create a new ProgramId for each scenario.
    Any response will be highly appreciated.
    Thanks
    Shyam

    Hello Shyam,
    >>>>>>>>Do you think that I still need to create a new Program Id for each of these processes.
    You should not use same program ID for different RFC adapters. It is recommended by SAP (check FAQ's on RFC).
    Although technically you can use but it gives you unpredictable behaviour based on connection pool.

Maybe you are looking for