cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to process Fault Message (RFC-PI-SOAP)

maxim_molochko2
Explorer
0 Kudos

Hello

I made scenario SAP(abap proxy)-PI-Legacy system(WS SOAP).

I define outbound synchronous service interface for message from sap, second define inbound synchronous service interface for message to legacy system.

I define operation mapping for this interface. All work good.

Problem: time to time legacy system return error message

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

<errinfo>

<general>

<class name="CICOAlreadyCheckedOutInSameSession">

<error id="10105" name="CICOAlreadyCheckedOutInSameSession" uid="814e6cc1-c8cd-4880-8729-26bc2f883637" />

</class>

</general>

</errinfo>

In message monitoring i see message:

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

<!-- XML Validation Inbound Channel Response -->

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

<SAP:Category>Application</SAP:Category>

<SAP:Code area="UNKNOWN">APPLICATION_ERROR</SAP:Code>

<SAP:P1/>

<SAP:P2/>

<SAP:P3/>

<SAP:P4/>

<SAP:AdditionalText>application fault</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="">errinfo</SAP:ApplicationFaultMessage>

<SAP:Stack/>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

How to handle an error in the PI that would Abap Proxy everything worked?

Regads

Max

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member200962
Active Contributor
0 Kudos

When you define Out/ Inbound Service Interfaces you might have observed a section created for Fault message.....inlcude the relevant message there.

Create a Message mapping between the Fault message of Source and Target....in Operation Mapping you will see an additional section of Fault Mapping when you say read interfaces (so you will have Request, Response, Fault options in the dropdown). Include the above mapping program here.

So if there is any fault message populated by the system then this mapping will get executed.

How to handle an error in the PI that would Abap Proxy everything worked?

Confused about this statement of yours.....can you explain what you actually mean by the above.

Regards,

Abhishek.

maxim_molochko2
Explorer
0 Kudos

How define fault message type for my message?

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

<errinfo>

<general>

<class name="CICOAlreadyCheckedOutInSameSession">

<error id="10105" name="CICOAlreadyCheckedOutInSameSession" uid="814e6cc1-c8cd-4880-8729-26bc2f883637" />

</class>

</general>

</errinfo>

Fault message type contein mandatory standart data ExchangeFaultData and i can input additional data type.

But this message type not same that described above.

[Pictures with error|http://docs.google.com/Doc?docid=0AfRGxYH8QeFsZDU0cmI5Z18xNmNjd3Nzcmc0]

former_member187339
Active Contributor
0 Kudos

Hi Maxim,

You need to handle the fault messages too. also your proxy shoudl be able to take the fault message information to R#

Check these blogs

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0216641450DB0079090422750902016...

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0216641450DB0079090422750902016...

Regards

Suraj

former_member200962
Active Contributor
0 Kudos

You can define your own Fault Message structure with the required fields.....looking at your structure name , id , uid will be attributes.

Regards,

Abhishek.