cancel
Showing results for 
Search instead for 
Did you mean: 

Message Interface <xxxx> references an RFC message and a non-RFC message

Former Member
0 Kudos

Hi all,

I have a synchronous scenario

SOAP --> XI --> RFC --> XI --> SOAP

I have no problems creating the request/response message mappings.

I want to create mappings for fault messages, so that when the RFC returns an error, XI can map it to the correct fault message and reply to the SOAP Client.

How do I create the fault message for the RFC and assign this fault message to the RFC Message Interface?

I tried the following:

1. Create Fault Message Type - FM_Outbound(for SOAP) and FM_Inbound (for RFC)

2. Assign FM_Inbound as Fault Message to the Message Interface of RFC (Sync-Inbound). The input and output message are imported from the RFC (Imported Objects)

3. Create Message Mapping for FM_Inbound to FM_Outbound.

4. Create Interface Mapping for request/response/fault mappings

5. Activate in IR. I encountered the following error when I activated the mappings:

<b> Message interface Message Interface MI_PatientDemographics_Inbound_Sync_ZBAPIPatientGetDetail | urn:dev1:fapl:oots:PatientDemographics references an RFC message and a non-RFC message</b>

Please help me understand what is the correct way of defining the RFC fault message in XI?

In my RFC import, I only saw a request & response object. There is no exception/fault message to import.

Please help.

Thanks.

Ron

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

><i>In my RFC import, I only saw a request & response object. There is no exception/fault message to import.</i>

Your RFC should have defined a Fault Message for it , and only then you can use the fault message. Look into the RFC and defined the fault message for the RFC and after this you can use the Fault Message Concept.

Without the RFC itself defining the fault message, you cannot achioeve this.

Regards

Bhavesh

Former Member
0 Kudos

Thanks Bhavesh for your helpful answer.

I have another question - How do I define the fault message in RFC?

I'm very new to SAP so please bear with me.

Thanks.

Ron

bhavesh_kantilal
Active Contributor
0 Kudos

Ron,

Am not sure either, but when the ABAP team is writing the RFC code, they will have the provision of creating a fault message as well.

Not sure of the exact implmementation.

People on ABAP forums can help better.

Regards

Bhavesh