RFC - JDBC fault message

Hello All,
Probably this has been discussed before, but i am unable to find a direct solution till now.
I have a synchronous RFC to JDBC scenario, where data is inserted from R/3 to JDBC and JDBC returns with the count of records it inserted in oracle. everything is working fine.
But in case when there is an error in insert, short dump occurs in R/3. i can see the response message has the error that some fields are null and so the insertion failed.
My question is, how to capture this fault and get a exception equivalent in my RFC, so for further processing it can simply be check against SY-SUBRC.
I would appreciate any pointers or help on this.
Regards,
Kinshuk

Hi Kinshuk,
one month ago I implemented also synch JDBC scenario but with call from client proxy (ABAP Proxy <->JDBC). First you ca try is to implement exception in your RFC and then update the metadata in IR. Assign also Fault Message to Inbound JDBC Message Interface and create mapping between RFC exception message and Fault Message.
If it will not help you, try to change your implementation to ABAP Proxy if possible. With Proxy you can use ABAP statement  "TRY/CATCH" and catch system error as I do in my implementation.
As far as I know, JDBC adapter does not support Fault Messages. But I never had system with latest SP. For examply in this 1492453 note you can see, that the detail text message of exception in Adapter was not transfered to IS (sxi_monitor) in SP bellow 12. With proxy you should have access to that exception and it might be possible get the "detail text" from exception object.
On my current project I'm still waiting for SP so in my implementation I can catch Proxy exception but I'm not able to tell user what exactly happend. He has to check Comm.Channel monitoring for more info.
If you have SP12 or higher you should be able not only catch system exception but also to get the detail error text from JDBC Adapter back to your proxy implementation.
Martin

Similar Messages

  • SOAP to RFC using fault message

    Hi All,
    I get a request from Web-service by using the SOAP adapter and pass the same to the SAP ECC for geting the response. I do not need a message mapping as i am passing the same data to SAP ECC. I need to track the errors in fault messages.
    Q1. Can i use the fault message handling without using the message mapping.
    Q2. If web-service is down and i can't send the response back then do i need to using the fault messageing concept or is there any other way i can get the details back in XI.
    If we can use the fault message without using message mapping concept, can someone help me out.
    Thanks,
    JGD

    You are using SOAP sender and Proxy receiver synchronous
    >>Q1. Can i use the fault message handling without using the message mapping.
    Request mapping, Response mapping and fault message mapping - all these three constitutes message mapping.
    >>Q2. If web-service is down and i can't send the response back then do i need to using the fault messageing concept or is there any other way i can get the details back in XI.
    If the webservice is down , you dont get message, then you dont need fault message.  Fault message is used only for business exceptions and more. If your ECC is down due to some exceptions or errors, you can trace those messages in  proxy coding and pass  it up to soap as fault message as response.
    In this case, you dont need at all.

  • BPM synchronous send step - Fault message extraction

    Hello Experts,
    I am developing a BPM with Asynch RFC -> synch Webservice -> Asynch RFC scenario.
    I have defined fault message in the synchronous interface used in the send step for web service, and also defined
    exception branch where an alert is thrown.
    In the alert, i want to send the fault text from the fault message. How can i do that??
    Thanks

    Hi Mona,
    SOAP adapter doesnt support fault messages.
    check stephan's reply @ How catch the SOAP Fault Message ?
    > SOAP adapter does not support fault message.
    > Any fault is treated as error.
    > fault messages are only supported for XI messages (ABAP or Java proxies) and RFCs.
    Fault message handling is not possible inside BPM.

  • Fault Message Types

    Hi experts
    i have a following scenario. the scenario is SOAP to XI to ECC, and from XI to ECC RFC's are being used. i have doubt about the fault message types?
    what are fault message types and why should they be created???
    for the above required scenario does"fault message types are to be created or not" plz let me know.
    Thanx in advance

    Hi,
    >>ii have doubt about the fault message types? what are fault message types and why should they be created???
    According to help.sap.com http://help.sap.com/saphelp_nwpi71/helpdata/EN/dd/b7623c6369f454e10000000a114084/content.htm
    Fault message types are designed for application-specific errors that occur at the provider (inbound side) and that are reported back to the sender or persisted in monitoring.
    1) In the synchronous case, when an application-specific error occurs on the inbound side, instead of sending a response message back to the sender, the application can send a fault message to handle the error.
    2) The fault message of the application for an asynchronous ABAP server proxy is persisted for monitoring. In the case asynchronous of Java server proxies, the fault message is part of a negative application acknowledgment (see Acknowledgments).
    >>for the above required scenario does"fault message types are to be created or not" plz let me know.
    You can send the exception of RFC in Fault message type. (Provided the RFC raises an exception)
    Regards
    Suraj

  • Fault Message returning to RFC

    Hi all,
    follow below my scenario:
    R3 <-RFC-> XI <-JDBC-> ORACLE
    My interface INSERT data into ORACLE.
    I need to get the fault message of JDBC and return to RFC.response.
    I made the FAULT MESSAGE TYPE and adjust my Message interface to Synchronous with mey fault message, I also made the Message mapping of Fault Message Type to RFC.response, but I don't know how to configure my interface determinantion to mapping the fault message to return.
    Could anyone help-me about this problem.
    Thanks,
    Regis Ferrato

    Hi Ferrato,
    Check this links
    <b>http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    </b>
    <b>Alert monitoring and fault message types
    May be helpful for u...
    Regards,
    Sridhar
    Message was edited by: sridhar reddy kondam

  • Handling Fault Messages for JDBC Receiver (Syn Inbound)

    Dear Freinds,
    Can we handle fault messages for JDBC Receiver which is synchronous.
    OB Proxy Syn  <>  IB JDBC Syn
    1. How to handle the same ? Please give some examples.
    2. Should we use Stored Procedures at Oracle side to handle the fault messages and send back as response to the Proxy Response. Will it work.
    Thanks & Regards
    K.Ramesh

    Dear Friend,
    I have 2 interfaces where Proxy is OB & JDBC is IB. In the first interface both sender and Receiver are synchronous and in the second one it is Async.
    In the first interface i have to send one field from R/3 table along with Native SQL query string to XI and the response of the SELECT query is sent back to the sender.
    Assume if no fields are selected based on the field sent then proper error message has to be sent instead of the response message.
    In the second interface i will be using UPDATE query at Asyn JDBC receiver.
    How to do this if you are having JDBC Receiver.
    I saw in many blogs where they had mentioned that we cannot handle fault messages in the Receiver JDBC.
    KIindly explain.
    Thanks
    K.Ramesh

  • Passing JDBC adapter error message back to SOAP fault message

    I have a JDBC adapter that is returning an error in the response message:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SAPINS' (structure 'StatementName1'): java.sql.SQLException: ORA-01843: not a valid month ORA-06512: at "SAP.SAPINS", line 129 ORA-06512: at line 1</SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I would like to pass the error message back to the fault section of a SOAP adapter.
    Is there an easy way to do this using fault messages, or is there some other way to do this?
    BR,
    Tony.

    HI,
    DId you install JDBC driver ?
    If not check this guide-https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Thread-
    Legacy_XI_MySQL
    Regards,
    Moorthy

  • ** Fault Message will support in JDBC Sender Adapter ?

    Hi friends,
    Will Fault message be supported when JDBC is receiver ? If it is, how do we raise exception, when any error comes in JDBC side ?
    Kind Regards,
    Jeg P.

    HI,
    This is not possible. Fault message types are only supported for ABAP/Java Proxies. The JDBC adapter does not provide fault messages.
    You should avoid synchronous database insert as your sender program will dump, when a runtime error occurs in XI.
    Refer similar discussion and solution
    Treatement of Fault Messages in Synchronous Scenarios?!
    Check this links
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Alert monitoring and fault message types
    Thanks
    swarup

  • RFC to SOAP fault message not catched

    Hi All
    I have a scenario where RFC is being send from ECC system I then call a web service, The webservice returns me a fault error messages when for example the order on the webservice system does not exist.
    I created a exception in the RFC and created the mapping for the fault message.
    When call ing the webservice I get error in comunication chanell:
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    I have tried adding:
    XMBWS.NoSOAPIgnoreStatusCode    =     true
    In the modules tab but still not getting soap fault.
    below is response from webservice if I use other soap client:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
       <soap:Body>
          <soap:Fault>
             <faultcode>soap:Client</faultcode>
             <faultstring>Unmarshalling Error: cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'nonEmptyExternalReference'.</faultstring>
          </soap:Fault>
       </soap:Body>
    </soap:Envelope>

    Hi,
    I don't think so you can catch 500 internal server errors using falut messages.
    Your target system has to capable of sending error messages in valid XML format then only you can catch them.coming too fault message concept we will implement in ABAP server proxies scenarios where we have a opportunity to catch errors in send as response. but i doubt in SOAP receiver scenarios.
    Regards,
    Raj

  • How to create Fault Message Type when developing RFC (se37)

    Hi,
    I am working on importing a RFC into XI but am seeing only the Request and Response message structures. The Fault Message structure is blank. I need this to trap .Exception errors like when the connection to partner is broken etc. which look like system errors but they appear in XI as Application errors and the RFC_Name.Exception message is sent back to XI.
    Question is: what needs to be done in the RFC so that when I import into XI, I get the Fault Message structure as well.
    Thanks in advance
    ram

    Hello Ram,
    You can look into this post as to how to handle [RFC exceptions|RFC Destination Catch Exceptions;.
    Hope this is of some help.
    BR,
    Suhas

  • Define fault message type for RFC

    Hi,
    How can I define the fault message type for RFC so that when I import RFC from another server to XI, I can view this Fault type.
    So far I could only see Request and Response type .
    Thanks

    Hi Rokie,
    Acc. to me by default we are having only request and response mesages for RFC and in case some exception/fault is there the RFC will through this in the response under the Return parameter having msg,id number as sub fields which you can map to fault message type.
    Sachin

  • Fault Messages (RFC)

    Hi experts,
    If my RFC function haven't defined exeptions, can i using fault message?,      
    very thanks,
    regards,

    Hi Silvia
    Did you tested the payload executing at R/3. if the RFC is providing the expected results. If not then you need to debug the FM with the payload at R/3.
    Its always a good practice to have exception raise by FM. make life easier
    Thanks
    Gaurav

  • RFC - why is my Fault message tab blank???

    Hi,
    I'm trying to perform a mapping of a Fault message for my RFC to a structure, however after importing the RFC when I switch to the tab for the Fault page, there is no structure defined. My RFC is defined as throwing exceptions. Could you please explain how I get to see the Fault message structure showing in the imported RFC?
    Thanks
    Brian

    Hi,
    In the Integration Builder, double-click on the RFC you have imported (under Imported Objects). You will start in the Structure tab.
    At the top of the Structure tab page is a Message Type combobox. Use that to switch between Request, Response and Fault.
    In my case the Fault Message Type is blank.
    The RFC does raise exceptions which are configured in the appropriate section using tx SE37 (Function Builder)
    Regards
    Brian

  • 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 mapping

    Hello,
    I have following scenario.
    Synch, RFC Sender -
    > XI----
    >JDBC receiver.
    Also I have defined Fault message data type, message type and also createed Message Interface in which I specified Fault Message type. Now my question is.
    When an error occurs I want to get error message to be captured in fault message and map the fault message elements to RFC ---> Rerutn item elements. I was wondering how would I accomplish this?
    Thank you,
    Balaji

    For sender RFC:
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/frameset.htm
    You must to create a in sm59 in R/3 and XI an R3 conection.
    You can see this very interesting blog: /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    Regards.

Maybe you are looking for

  • Where Can I Get A Windows 7 Logo For My T500?

    Hello, I just got my T500 with Vista. I'm anxiously awaiting my W7 upgrade. Where can I get the Windows 7 logo / sticker to replace the Vista one? Thanks. Bob Helms

  • Error while Connecting to SQL

    Hello Experts, I have installed desktop version of Lumira and have SQL instance on same laptop. I am trying to create connection from Lumira to SQL and getting below error I can login to SQL via TCP/IP and have disabled firewall but the connection is

  • Converting brushes from photoshop cc to photoshop cs5

    Was unable to bring my abr brushes from CC to my computer at work which is photoshop cs5, says they are not compatible. Is ther a way to make them compatible?

  • Optical Drive can't find Adobe Creative Suite 6 disc

    As written in the topic, my optical drive can't seem to find my Creative Suite 6 Master Collection disc. (I am using Windows 7 Ultimate) Every other disc I tried from BD to DVD-ROM or even CD-ROM worked perfectly fine. The disc itself is in a good co

  • JSP Single Page Table Edits

    I am working on a project in which the client wants to make changes to an HTML table of values without going back and forth to an edit page (as provided by the wizard). So in my case I would present a list of items to update in an HTML TABLE, which i