none
ErrorCode=RFC_EXCEPTION and SapErrorMessage=ERROR while executing a BAPI RRS feed

  • Question

  • Hi,

    The connection string is sap://CLIENT=044;LANG=EN;@A/sapsrv/00?RfcSdkTrace=True&AbapDebug=False for invoking a BAPI and an RFC using BizTalk SAP Adapter. 

    is my connection uri is of correct format?

    When I invoke BAPI/RFC CCAP_ECN_MAINTAIN, I get the following error message in BizTalk.

    am I missing anything and are any adapter settings I need to be aware of.

    Event Type: Error
    Event Source: BizTalk Server 2009
    Event Category: (1)
    Event ID: 5754
    Date:  5/12/2010
    Time:  2:25:05 PM
    User:  N/A
    Computer: Description:
    A message sent to adapter "WCF-Custom" on send port "SP_SAP_CCAP_ECN_CREATE" with URI "sap://CLIENT=800;LANG=EN;@A/sapsrv/00?RfcSdkTrace=True&AbapDebug=False" is suspended.
     Error details: Microsoft.Adapters.SAP.RFCException: Details: ErrorCode=RFC_EXCEPTION. ErrorGroup=RFC_ERROR_APPLICATION_EXCEPTION. SapErrorMessage=ERROR.  AdapterErrorMessage=Error returned by RfcCallReceiveEx while calling RFC: CCAP_ECN_MAINTAIN..

    Server stack trace:
       at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
       at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)

    Exception rethrown at [0]:
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)
     MessageId:  {A4DA2DD5-47DB-4005-9DF5-07A91A29E25F}
     InstanceID: {DE62B48D-9F95-4BEC-ACDB-26E0E7493410}


    Ashith Raj
    Wednesday, May 12, 2010 7:39 PM

Answers

  • Please make sure that the SAP  username being used has the necessary permissions for executing the given RFC.
    • Marked as answer by Ashi Monday, May 17, 2010 7:57 PM
    Thursday, May 13, 2010 11:02 AM