cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Synchronous : SYNCHONOUS_MESSAGE Error

Syed1234
Explorer
0 Kudos

Hi All,

I am facing the following errror when initiating RFC synchronous call to ccBPM.

RFC (synchronous) -> ccBPM

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!--  Call Adapter

  -->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

  <SAP:Category>XIAdapter</SAP:Category>

  <SAP:Code area="BPE_ADAPTER">SYNCHONOUS_MESSAGE</SAP:Code>

  <SAP:P1 />

  <SAP:P2 />

  <SAP:P3 />

  <SAP:P4 />

  <SAP:AdditionalText />

  <SAP:ApplicationFaultMessage namespace="" />

  <SAP:Stack>The process does not support the given synchronous interface or does not support synchronous messages Exception CX_WAPI_DEF_PROPERTY_NOT_FOUND occurred (program: SAPMHTTP, include: , line: 0).</SAP:Stack>

  <SAP:Retry>N</SAP:Retry>

  </SAP:Error>

When RFC is called as Asynchronous from ABAP program, then the whole process runs succesfully.
But I want to get the response back to calling RFC.
Question -) Is synchronous RFC supported for ccBPM?

Accepted Solutions (0)

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

Yeah, but you have to configure a corresponding receiver step, opening a bridge..

/Udo

Syed1234
Explorer
0 Kudos

yeah, alrdy done that... open a bridge using sync interface...

more to add on... in Sender agreement if I use synch-outbound interface for RFC (rfc req-res messages) created myself to get the request from ERP system and to inititate ccBPM bridge process then the syn-outboung interfce is not able to receive request and following error comes in very first step

Error in processing caused by: com.sap.aii.af.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

If i use directly the RFC interface name with "urn:sap-com:document:sap:rfc:functions" namespace in Sender Agreement, then synchornous behavior is lost and error becomes the one pasted in my first post.

udo_martens
Active Contributor
0 Kudos

Hi,

you need to send the FM synchronous in ERP (do not put "IN BACKGROUND TASK")

you define a sender agreement for the imported FM at IB Directory

you setup a synchronous ABSTRACT interface for BPM, it is refering the FM

you use that if in Receiver Determination

you define a mapping between the interfaces (1:1) and refer it in If Det

no receiver agreement

you define a asynchr abstr if - referring FM request type, which you use as container for receiving the request

/Udo

Syed1234
Explorer
0 Kudos

Hi Udo,

Thanks for your response.

As you remarked,

you need to send the FM synchronous in ERP (do not put "IN BACKGROUND TASK")

alrdy done that

you define a sender agreement for the imported FM at IB Directory

When imported FM is used in sender agreement then synchronous behavior is lost. Following error is coming

<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">

  <SAP:Category>XIAdapter</SAP:Category>

  <SAP:Code area="BPE_ADAPTER">SYNCHONOUS_MESSAGE</SAP:Code>

  <SAP:P1 />

  <SAP:P2 />

  <SAP:P3 />

  <SAP:P4 />

  <SAP:AdditionalText />

  <SAP:ApplicationFaultMessage namespace="" />

  <SAP:Stack>The process does not support the given synchronous interface or does not support synchronous messages Exception CX_WAPI_DEF_PROPERTY_NOT_FOUND occurred (program: SAPMHTTP, include: , line: 0).</SAP:Stack>

But when I use my own created Sync-outbound Interface where imported FM req and res message is used in its messages then PI server is not able to receive request from ECC system.

So here the crux of the problem is.

Any idea how to resolve this?

Syed1234
Explorer
0 Kudos

Okay. Issue is solved. There wasmy mistake that some old configuration was used in receiver side.

Thanks Udo, your reply was exactly that I had been implementing.