Fault Message from Sender System to Receiver System

Hi
I have a synchronous scenario
<b>SAP R/3 --> RFC Adapter -> XI -> SOAP Adapter --> Web Service</b>.
When web service returns successful response, it gets mapped properly to an internal table of RFC. But, when web service returns fault message (as parameters passed to the web service are incorrect), RFC gives dump. Below message is shown in sxmb_moni.
<i><?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>XIAdapterFramework</SAP:Category>
  <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
  <SAP:P1 />
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.io.IOException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText>
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack />
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error></i>
<b>{</b> Sometime AdditionalText has different message, depends upon what parameters Sender system is providing <b>}</b>
Now I would like to provide this message back to SAP RFC. Even if I will create the Fault message type, how exactly I can map this " Exception message " with my fault message type.
I have checked weblog <a href="/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1 Message Types - A Demo</a> but this one talks more about proxy & Asynch scenario.
Can you pls. provide steps with which I can map exceptions message of WS to RFC.
Best Regards
- Lalit Chaudhary -

I got the <RFC>.exception structure from SAP Team.
And from my side I build the "xsd" file for following generic Error structure -->
<i><?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="PARSING">SOAP_EXCEPTION</SAP:Code>
  <SAP:P1 />
  <SAP:P2 />
  <SAP:P3 />
  <SAP:P4 />
  <SAP:AdditionalText><u>An error message</u></SAP:AdditionalText>
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack />
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error></i>
I import this xsd file ( as External Definitions ) and keep this in the Inbound Interface as Fault Message Type & mapped the contents of it with <i><RFC>.exception</i> structure.
Now when their is some Application error like Web-Service is down, we are not getting <b>DUMP</b> in SAP R/3 system but I mapped the "AdditionalText" field of xsd file with " <i>Attributes --> V1</i> " of <i><RFC>.exception</i> structure and on SAP R/3 system the field <i>message-V1</i> is empty which suggest nothing is coming in this field.
Then I even tried to map constant values <i><RFC>.exception</i> structure but in SAP R/3 nothing is coming. Can you suggest how actually SAP developers can capture these values or is their anything I am missing on XI side.
Best Regards
- Lalit Chaudhary -

Similar Messages

  • Sender system and Receiver system

    Hi,
    I have installed xi on on the server name is XI1 and there is two client 001 and 300. i have created xisuper user on 001. Pls tell me which is sender system or receiver system and xi system.
    Please give me some secnario
    Thannks

    Hi,
    you can Use Either (001 or 300 )one of the client for XI Perspective.
    And you can send the data through this Client in Xi to any Application
    Example:
    if you want to send the data from FTP Server to SAP R/3 (100 Client)means
    Here You can use either 001 or 300 client of XI as Middleware to send the data to SAP R/3
    in this case
    Your sender is the FTP Server(File Adapter)--XI is the Middleware--SAP R/3(100 Client) is the Receiver
    Regards
    Seshagiri

  • ErrorCode in fault message from Webservice

    I have a sync scenario: R3 <> XI <> WS.
    Sometime the request is wrong, then WS sends back fault message. All these fault messages are captured by system under cx_ai_system_fault exception, while I want to see the errorcode from the WS.
    Is there any idea how to get this errorcode, or how to map the fault message (from WS) to any structure in R3?
    Thanks

    I mapped it but it didn't work. Still returned cx_ai_system_fault exception. There is nothing in the custom exception structure.
    Have you ever tried it successfully? Did you do mapping from fault message (WS) --> exception structure (R3)? What kind of mapping did you use? How do you define custom exception structure?

  • Propagate fault message from ABAP server proxy to XI

    Hello
    My scenario is asynch HTTP -> async ABAP server proxy.
    I have searched a forum but I didn't find the ansver on my question:
    Is it possible to propagate a fault message from SAP system to XI in case of asyncronous ABAP Proxy in order to see in SXMB_MONI of XI?
    I see errors only on SAP side but this solution doesn't satisfied me I want to see all errors in one place.

    Hi,
    Have u used commit work at the end of the code.
    Can you please tell me what all configuration u have done.
    U have referred the ABAP Proxy configuration:
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Refer the below log for Client Proxy -
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Chirag

  • Change mail message from sender before forwaring message

    How can I change/adapt the orignal message from sender before replying or forwarding

    In what way, like edit the original message?
    You cannot, from within the native software.
    You'll need a third party application such as ForwardWithEdit to do so, and that can be found in the Fixmo Tools application... for one place.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Sending back fault message from receiver to the sender

    Hi,
    Can somebody explain me, how to capture fault message generated by the receiver system back to the sender system?
    I have a synchronous scenario, RFC -> XI -> Web Service.
    When web service returns successful response, it gets mapped properly to an internal table of RFC. But, when web service returns fault message (as parameters passed to the web service are incorrect), RFC gives dump. Below message is shown in sxmb_moni.
    <?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="PARSING">ADAPTER.SOAP_EXCEPTION</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>soap fault: com.ucas.hei.link.exception.WSException: Data access error: Incorrect userId/password. at com.ucas.hei.link.xml.ReferenceData.getRefInstUcas(ReferenceData.java:2338)</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Has anybody worked with this type of scenario? Please help me.
    Thanks & Regards,
    -Smita

    Hi Smitha,
    if you are calling a webserive from XI and the websevice call results in a soap exception, as of SP13 i am sure there is no way to capture this exception.
    Work around approach would be to define exceptions for your sender RFC and hence when an exception is raised in XI, sender RFC will not dump instead you would have the defined exception caught.
    CALL FUNCTION 'XYZ'
         EXPORTING
         IMPORTING
         EXCEPTIONS
           OTHERS          = 1.
    cheers,
    Naveen

  • Capturing the Response message and sending to two diffrent systems

    Hi Experts,
    My Scenario is -
    Legacy->PI-> SOAP
    Legacy System Supports SOAP call  and sync calls.  Now my requirement is how can I send the response received from the target SOAP system to the actual sender as well as to another ECC system?
    In this case ECC will not trigger any request message, it will only receive the response message from SOAP system.
    P.S -- how to
    Thanks
    Sugata

    Hi,
    Another way, but a bit more resource intensive, is to use ccBPM, use an sync/async bridge and route the response message back to the caller but also send it to an extra receiver.
    Regards,
    Horia

  • Send Fault message from SAP XI

    I have scenario: get async file from FTP. Starting BPM. From BPM I send message to SOAP service(sync). Where I recieve Fault Message. In BPM I have exception handler.
    Could any body tell how send parced Fault message to FTP.
    As I understand we need mapping somthing like "Fault message type" to "Inbound message type"

    Hi Anton,
    Its not possible to catch the data of fault message in BPM with the standard design.Since you can't make an abstract interface of the fault message.
    The option available is to parse the XML in the fault message mapping and do a call using UDF's (RFC, SOAP, JDBC calls are supported).
    cheers
    Sunil.

  • Fault message in sender SOAP scenario

    Hi mates,
    I've a o/b synch MI which is exposed as a web service. I've specified the fault message with faultcode, faultstring, faultactor and detail. I've a BPM as the receiver for this synch infterface. This BPM implements synch-asynch bridge.
    Now the question is...How can I specify that a particular fault message needs to be returned to the SOAP caller. I can send the response for the SOAP caller using the send step with mode 'Closes S/A bridge'.
    I appreciate you inputs.
    thx in adv
    praveen

    Moorthy,
    I've the FM in my BPM. But...how can I append this to Response message as these have two different MTs?
    Do you mean to say my response message should have a node for fault message data?
    I'm trying to implement sth like in this blog <a href="/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client">Propagation of meaningful error information to SOAP Client</a>
    To achieve FM in SOAP scenario, should I be using <b>only</b> a non-BPM receiver like a R/3 system using FM with exception as the receiver? Can this be not possible if I use BPM as receiver?
    thx in adv
    praveen

  • SMS Messages--can send but not receive--why?

    I can send SMS messages from my desktop or laptop through the Skype webpage, but if someone tries to respond, they get an error message that says, "failed message".  Why can I not receive SMS messages back to my Skype account online?

    OK, so who is paying for it?
    I would make sure that you have the personal BIS account enabled on your carrier account.
    Look at Options > Security > Information. What is listed there? See the RIM Knowledge Base article here for information on how to remove an IT Policy. See the Method Three in the link: KB14202 How to remove an IT policy from a BlackBerry smartphone
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Custom fault message from OSB is not throw in BPEL

    Hi,
    I have created a custom fault error in OSB which is sent to BPEL.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    If my namespace in FAULT tag is "http://schemas.xmlsoap.org/soap/envelope/",
    message is understood as fault IN BPEL. But if I change namespace, BPEL understands as reply message.
    How can I use my custom fault message with different namespace as http://schemas.xmlsoap.org/soap/envelope/ ?
    Regards,

    SOAP Fault has a defined structure and defined namespaces. It does provide a placeholder for custom data though. Just like you can not change the namespace of Envelope of Body, similarly you cant change the namespace of Fault(if you want it to be recognized by the client apps). Any custom data you want to send in the SOAP Fault needs to be set as a child of 'detail' element of SOAP Fault. This custom data can have any namespace you wish. This Custom XML will be the element you define as Fault element in your WSDL
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault>
    <faultcode>env:Client</faultcode>
    <faultstring>some error string</faultstring>
    <faultactor>somedata</faultactor>
    <detail>
    {here you can put your custom XML content in any namespace which you have defined in the WSDL}
    </detail>
    </env:Fault>
    </env:Body>
    </env:Envelope>

  • Find Distribution percentage from Sender Cost to Receiving Cost

    Hi All,
    How can I find the percentage of distribution from sender cost center to receiving cost center in SAP.
    Kindly suggest.

    Hi,
    Check your distribution cycle: KSV3
    Under Segment header screen:
    Receiver tracing factor.
    Receiver Rule: Variable Proportions/ Fixed Proportions...etc.
    Other wise:
    Perform the distribution cycle with test run, KSV5
    Double Click on senders/ Receivers...you will come to know the  base for distribution.
    Regards,
    Pavan Kumar Arvapally

  • Messages from sender being overwritten by another in my inbox- why?

    I am missing messages from senders because they are being overwritten by messages from another sender when they get to my inbox. The original sender is listed in the header as "From", but the rest of the info in the header is for the other sender. Both senders are expected (both are newsletters). This happens randomly and has been happening for a couple months. Any ideas on what is happening?
    Update: This is continuing to happen as of today ( 19-Nov-2014). One message was downloaded and filtered to one of my local folders correctly, but then it also overwrote another message currently downloaded in my inbox, but left the Thunderbird inbox 'from' and 'subject' fields intact indicating the sender of the message that it overwrote in my inbox. But when I open it, I get the same newsletter that was filtered to the folder (in the same download batch) as the newsletter that opens in my inbox with the sender/subject of the other newsletter. This is very frustrating... I'm considering alternative to Thunderbird.

    Hi,
    I'm with Russ. This sounds ugly and I've never seen it before. However, there is another interesting thing that happened to someone else in 9.0.4 version recently where the workbook was owned by one owner, shared to another, a modification made to the workbook by the shared to userid. The original workbook accepted the change. It sounds like this was caused by IDENTIFIER issues. Could it be possible, (improbable I think), that the IDENTIFIER on each worksheet is the same? I don't know how this could happen but I bet a million dollars once (that I don't have) that the workbook situation couldn't happen. To check this, right click on each worksheet name and checkout the IDENTIFIER. I also think you should log a SR. It would be nice if you would post the resolution here once one is found.
    The workbook issue has been logged as bug 7565438 . (problem identified by stephen lee)
    Thanks for sharing an interesting issue!
    Nancy

  • HT204053 how do we stop Messages from sending to 2 phones

    I am having diffuctly trying to figure out why me and my daughter are sharing same message
    I send a text and then it sends to her phone as well and sends back to my phone

    Welcome to the Apple Community.
    it can be resolved by making sure you each have different information in settings > messages > send and receive, however you would be much better each having your own iCloud account.

  • Resubmitting the fault messages from ESB Portal

    Hi,
    We are facing some changes in Resubmission process in ESB Portal.
    When we try to resubmit the fault message in ESB Portal we are getting the error and there is nothing available in the event viewer
    The resubmission failed: 500 - InternalServerError
    We already try so many prospect as we find in the Google.
    Thanks,
    Oyash

    Hi Oyash,
    You need to debug it further by opening the portal solution and attaching to IIS.
    Few checkpoints:
    #1. Ensure that Application pool associated with your Application
    in IIS is V4.0 instead of V2.0. Do reset the IIS before testing again.
    Refer: ESB
    portal resubmission error
    #2. You got to checkout this thread wherein Sravanthi faced same issue and got it fixed. Refer: Resubmission
    failed 500 internal server error.
    Rachit
    Please mark as answer or vote as helpful if my reply does

Maybe you are looking for