Error handling using fault message type in outbound synchronous ABAP proxy

Hi,
We've a scenario, outbound synchronous ABAP proxy to synchronous SOAP receiver. The requirement is to send multiple records in a single rquest and get response for all the records sent (in the same response message).
Say if I send 10 records from ECC, I should get 10 records as response from SOAP to ECC. But the problem here is, there could be some invalid requests, for which an invalid error status code should be sent as part of response.
Source Structure
Req_Proxy
    req (0..unbounded, string)
Response Structure
Resp_SOAP
  Resp (0..Unbounded)
       respString (0..1, String) (carries the actaul response message)
      status code (0..1, String) (carries the status of the response, for ex, 001 (successful), 002 (error))
And now we are planning to make use of Fault Message Type, to track the errors from SOAP (status code 002). But, we are not sure on how to track this for all the requested records. Is it possible to track the errors for all the requested records in a singe call using fault message type? For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8 for valid and 2 for invalid accordingly.
Please calrify.
Thanks.
Rohit

For eg if 8 records are successful and 2 are invalid, then we should get 10 records in response 8
for valid and 2 for invalid accordingly.
Check if you can modify the WSDL structure to include an error node that would get populated incase of invalid entries....this would mean that you get the success and failure details in the single message....also at the proxy-end make the necessary change in your DT.....may be then you do not need to use the fault message...
Regards,
Abhishek.

Similar Messages

  • ABAP provider proxy error using Fault Message Type

    Hello experts,
    I'm using a provider ABAP proxy with a fault message type in the inbound service interface.
    In the ABAP code on the backend system, I need to fill a database table.
    in case the record exist --> fault + message back to SAP PI to be alerted.
    I do this with a RAISE EXCEPTION TYPE.
    I generated all necessary proxies.
    The error I got on the backend system (SXMB_MONI) is this:
    Application Error - Call Inbound Proxy
    SAP:Category>Application</SAP:Category>
      <SAP:Code area="ABAP">APPLICATION_ERROR</SAP:Code>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="xxxxx">FMT_xxxxxx</SAP:ApplicationFaultMessage>
      <SAP:Stack>The application triggered an exception</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
    Can it be that I need to use something else instead of the RAISE EXCEPTION TYPE. to get something back to SAP PI?
    Now the error is logged in SXMB_MONI on the backend system.
    Please advice.
    Thanks a lot
    Dimitri

    Hi Dimitri,
    Check out these links -
    1. /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
    2. http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
    Regards,
    Sunil Chandra

  • Inactivation error in Declaring Fault Message type.

    Hi all,
      when iam trying to create a message type with refering to data type "ExchangeFaultdata" , and when iam activating the corresponding message interface it says the the Message type that iam using is reffering to a inactive message type.
    i tried even activating it , but still it doesnt work.
    what could be the reasons?.
    Thanks in Advance.
    Kishore Kumar Yerra.

    Hi All,
         i did a small mistake , it troubled .
      Actually my intention was to create a message type referring to a ExchangeFaultdata Type , so i created a normal message type , what actually i was supposed to do is create a Fault Message type.
    This was the issue why i was getting errors. now the problem is solved
    Regards,
    Kishore Kumar Yerra.

  • Using Fault Message Type in BPM

    Hi,
    In my BPM Scenario, I am using a synchronous send step in which I am using a fault message type.For giving the container for the fault message in the Properties area of the send step, I want to define a container corresponding to the Fault message Type I have already defined.How can I achieve this since it is not possible by defining an Abstract Interface? Can someone please explain how to do this?
    Thanks and Regards,
    Soumya.

    Hi Soumya,
    Here are the links for two threads. one has discussed fault mssage type in bpm and the other the general application of a fault message type.
    thread1:- Alert monitoring and fault message types
    thread2:- fault message in BPM process
    Regards,
    Sushumna

  • Exception handling with fault message type not working

    Hi,
    I have a sync proxy to proxy scenario and I have created a fault MT and specified in the outbound and Inbound service interface...
    *In Inbound proxy I have the following code--*......
    RAISE EXCEPTION TYPE z_cx_test_fault
    EXPORTING
    standard = l_standard_data.
    In the sender side abap code which calls the outbound proxy I have the follwing code -
    CATCH cx_ai_system_fault INTO lo_cx_ai_system_fault.
    txt = lo_cx_ai_system_fault->get_text( ).
    WRITE txt.
    CATCH z_cx_test_fault INTO lo_cx_test_fault.
    txt = lo_cx_standard_message_fault->get_text( ).
    WRITE txt.
    CATCH cx_ai_application_fault INTO lo_cx_ai_application_fault.
    txt = lo_cx_ai_application_fault->get_text( ).
    WRITE txt.
    when i test the inbound proxy separately I get the custom fault message properly...
    however when i run the proxy to proxy sync scenario and the custom exceptionz_cx_test_fault  is raised inside the receiver proxy .......control goes to CATCH cx_ai_application_fault    and not CATCH  z_cx_test_fault .
    I understand that cx_ai_application_fault is the super class of all the exception class but why does control go to its exception handling when a custom exception is raised...
    Edited by: hema T on Feb 26, 2012 1:16 PM
    Edited by: hema T on Feb 26, 2012 1:17 PM

    Hi
    I tried changing the sequence also but it did not work...
    I can see an appropriate response coming from the receiver in SXMB_MONI of PI...this response has the "fault response "
    "fault detail" data that I want.....however when the control goes to the sender why does it go to CATCH CX_AI_APPLICATION_FAULT and not not my CATCH z_cx_test_fault .
    My observation - If I change the scenario to SOAP to Proxy sync..then the sender SOAP client gets the appropriate custom fault message back.
    Edited by: hema T on Feb 27, 2012 1:17 PM
    Edited by: hema T on Feb 27, 2012 1:17 PM

  • Fault message type using in File to IDoc Scenario

    Hi,
    I have successfully configured File to IDoc scenario. Now I am thinking to add some flavour to it by using Fault message type.
    Can I use fault message type without using any proxies?
    Can some body help in giving an answer to my question and provide some weblogs to achieve the configuration?
    Thanks in advance.
    Suraj Kumar

    Hi Suraj,
    With IDOCs, you cannot set up fault messages as it is async mode communication. There is not control which waits for the processing of the message/application errors as you have it in case of synch mode.
    But, you can set up acknowledgement using ALEAUD. Check this for more /people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc
    praveen

  • Types of fault message types

    Can someone tell me the different types of fault message types available in XI?

    Hi,
    Fault Message Types
    are used only for returining messages form the inobund side (application)
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/b7623c6369f454e10000000a114084/content.htm
    if you want to create error handling for a mapping
    you can use transformation step (in a BPM)
    add a block and catch the mapping error inside this block
    (and for instance send a file from this exception branch
    Refernces Fault message types for the Exception handling .
    Fault message types corresponding to the standard SOAP Fault type can be included (execepted in the outbound Asynchronous case)
    A fault message is a message that describes an application-specific error situation.
    Fault message types are designed for application-specific errors that occur on the inbound side and that are reported back to the sender or persisted in monitoring.
    · 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.
    · 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 acknowledgement (see Acknowledgments).
    Application-specific means that the application on the inbound side triggers the error itself because, for example, the request message did not contain sufficient information.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
    Please see the below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee5bc490-0201-0010-e9b5-a258cf083bca
    /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
    /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
    Thanks
    Swarup
    Edited by: Swarup Sawant on Mar 28, 2008 3:05 PM

  • Regarding mandatory fields, Context Objects and Fault Message Types

    Hi All,
    1) I am creating a structure with fields "Name", "Street" and "City". While creation i want to make "Name" fields as mandatory. Is it possible. If so how to achieve this.
    2) What is the purpose of Context Object and in which situation we will use this.
    3) What is the purpose of Fault Message Types and in which situation we will use this.
    4) I am doing file to file scenario, at sender side i have set the adapter as file and transport protocol as "FTP" . It is asking for "Server", "PORT" and "Login Details". What is this FTP, for this do i need to take any login details. I am totally not aware of FTP, could please explain more about this.
    Kindly look into the above points and respond point by point.
    Thanks in advance.
    Regards,
    Prem.S

    Hi prem,
    <b>1) I am creating a structure with fields "Name", "Street" and "City". While creation i want to make "Name" fields as mandatory. Is it possible. If so how to achieve this.</b>
    give occurence 1..unbounded. for the field name.
    <b>2) What is the purpose of Context Object and in which situation we will use this.</b>
    If u have multiple receiver system then to determine the reciever u can use context object.....
    the alternative of context objetc is X-Path...
    Check out these
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
    /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
    Here is a scenario where context objects were used for BPM
    Technical Context Object in ccBPM
    Get the details here:
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
    Technical Context Objects :
    http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm
    A list of the Technical Context Objects names can be found here:
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
    Difference between context object and x-path:
    diff between context object and x path
    <b>3) What is the purpose of Fault Message Types and in which situation we will use this</b>
    whenever u want to catch some exception u can use fault message types.Just for a example u r sending some data to SAP system.But due to some reason the R/3 system is down.so in this case if u have implemented fault message ..u can get a error message specifying r/3 is down....
    Fault message implementation.
    /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
    How to Guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
    <b>4) I am doing file to file scenario, at sender side i have set the adapter as file and transport protocol as "FTP" . It is asking for "Server", "PORT" and "Login Details". What is this FTP, for this do i need to take any login details. I am totally not aware of FTP, could please explain more about this.</b>
    there are two transport protocol for File adapter
    1)FTP(File transfer protocol)
    to know abt FTP check here
    http://help.sap.com/saphelp_nw04/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/content.htm
    2)NFS(Network File System)
    in server :Enter the host name or IP address of the FTP server.
    in PORT:Specify the port number of the FTP server.
                 The default is the standard port for the FTP server (21)
    check here
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Regards
    BILL
    <b>***reward with points if ity helps u!!</b>

  • Alert and Fault Message type Usage

    Hi All,
    I struck to the use of Alert and Fault message type.
    (a) Can we use Alert in scenarios without BPM ? If yes where can we use?
    (b) Can we use Fault Message Type in scenarios except Proxy ? If yes, how?
    Kindly suggest me .
    Thanks
    Anup

    Hi Rabi,
    In order to use Alert for your File to File scenario, you need to setup Alert Configuration.
    To configure alerts, you need to create the following:
    1. Alert Categories in tcode ALRTCATDEF
        - Here you need to define the alert message that will be sent once error occured and alert has been triggered. You would need to define here the recipients who will receive email notifications about the error message.
    2. Alert Rules in Runtime Workbench
    - Here you need to define which alert category you would use based on the rules you set. You can define if the error is in the Integration Engine or in Adapter Engine (for errors in File Communication channels). Also, you need to define condition for  the alert by selecting the sender and  receiver systems, interfaces that would be involved for the alert.
    For further details, you may look the SAP documentation:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/d0/d4b54020c6792ae10000000a155106/frameset.htm
    Regards,
    Jenny

  • How to use fault message for error handling.

    HI
    Anybody has an idea about how we use fault messages to handle errors in XI
    Thanks
    Debraj

    Hi,
    Refer this link. This pdf file has descriptions about fault message types and how to use it.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4cdfc390-0201-0010-2197-da4ada09f281
    Regards,
    Uma

  • Automizing error message with Fault Message Type

    (Request F6)  (Request F6)
    System -
    > XI -
    >        SAP (Doesn't have F6)
              <-- XI <--
          SAP (Doesn't have F6)
       (Respons: error)    (Respons. error)
    (Problem) When the request message doesn't content sufficient information that is required for respons then the XI team will get the message error and the responsibility to solve the problem. In this scenario it is the XI team that sends the error respons to the System.
    (Request (eg. F6) )  (Request (eg. F6))
    System -
    > XI -
    >        SAP (Doesn't have F6)
              <-- XI <--
          SAP (Doesn't have F6)
       (Respons: error)    (Respons. error)
    (Solution) We want to automatize the process so that the error message goes directly to the System via XI. In other words we only want an acknowledgment of the error in XI, we don't want to solve the error since we believe that it is the sender System that is responsible.
    We have seen that there is a Fault Message Type in the Message Interface and we are wondering if that is the way to do it? And it that case, how?

    Hi,
    Fault message is a error meesage. Its like an exception in simple terms. The fault message is used to
    store a log for application error. Fault messages is defined in IR.
    To give a overview on Fault messages it is mostly used in synchronous communication. When an error
    occurs at the inbound side instead of sending the response message back it sends a fault message back
    to the sender system to handle error.
    Fault Message are Msg type that provided whenever u create a namespace..they are usually used to get
    the exception or error mapped which has occured while execution of Application at the sender/receiver
    end....
    One scenario where i had used it from Soap to RFC where i defined the exception in rfc source code at
    r/3 end...I mapped that exception to Fault msg type that i created of my own type(didnt used the
    default)..
    Fault messages are used to propogate / send back the error message to the calling application. This is
    used when there is a failure and the sending system needs to know what the error was. This is more of
    catching Application Errors
    check this nice blog also
    /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5d/a45c3cff8ca92be10000000a114084/content.htm
    Asynchronus RFC  exception handling
    XI Alerts are not getting triggered from proxy servers
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ee5bc490-0201-0010-e9b5-
    a258cf083bca
    /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
    Fault Message
    Regards
    Seshagiri
    Edited by: N V Seshagiri on Feb 29, 2008 12:19 PM

  • How is the Fault Message Type used?

    Hi,
    I have a HTTP-SOAP scenario.I want to post a request to a HTTP Server using the SOAP receiver adapter and get the ackowledgement message from the receiver, if it was successful or not. Is this possible using the Fault Message type?
    If not how else can i capture the response in the EO mode?

    Hi Sivasakthi
    Yes you can capture soap response using SOAP fault message
    Check this link for embedded soap response
    http://www.w3.org/TR/2000/NOTE-SOAP-20000508/
    With this you can refer to this blog as well
    Handling Web Service SOAP Fault Responses in SAP NetWeaver XI
    Thanks
    Gaurav

  • Is it mandatory to use a Fault Message Type.

    Hi all
    I am currently doing a Soap-Proxy synchronous scenario,where by sending an employee id through webservice to SAP ECC ,employee details will be retreived from ECC as a response.
    In this scenario, is it necessary to specify the Fault Message Type in the outbound and inbound synchronous Message interfaces and do the corresponding message mapping for Fault message types.
    Asvance Thanks,
    Ram.

    Hi ram,
    It is not at all mendetary to use Fault message in ur case.Usually it depends upon requirement.If client want's to implement ...u have to use.
    generally fault messages are used wen u want to catch some exception viz. ECC server is down,Employee ID does not exist.,No record found for the given EmpID etc....ect.......
    See these to know more abt fault message type and its implementation........
    Fault message implementation.
    /people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
    How to Guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce
    With Integration Scenario
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/52398597-0601-0010-868a-fd95f8061d85
    How to Guide - Using Web Service
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f027dde5-e16e-2910-97a4-f231046429f2
    Presentation
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9f2ad490-0201-0010-a1bd-81d072f3c5ca
    Regards
    Biplab
    <i>***Reward with points if it helps you!!</i>

  • OUTBOUND- ERROR HANDLING USING WORKFLOW

    Hi Gurus,
                   Can any one tell me about workflow & how to do error handling using WORKFLOW in OUTBOUND IDOC.Below are the points , Please check it & send me reply.
    1.Value not found for Custom IDoc fields.
    2. Partner Profile not maintained correctly.
    3. Syntax error in IDoc.
    4. IDoc ready for dispatch (ALE Service).
    Regards,
    Chiranjeevi.

    Hi,
    FOr most of your requirements, there is already std. SAP IDOC error Single-step tasks.
    Have a look at WE46 transaction.
    Also, if you go to SWO1 and search with "IDOC*", you will get all the BO's even.
    It's pretty straightfwd. Also, in Partner Profiles, WE20, for each of the IDOC type, there is one "Post.Processing AGent", whom if you set up correctly, will be the person receiving this Errored IDOC mails.
    Hope this helps
    venu

  • Hi all!How to use the fault message types

    Hi all, i am new beginner on XI.
    I have read the introduction in SAP Library about
    fault message types
    but the steps of how to use fault message are clear
    could you help me?
    could you give me some guide or docs or links?

    Hi,
    These might help you:
    http://help.sap.com/saphelp_nw04/helpdata/en/f3/c26c3cbfac384fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
    Regards,
    Chandra

Maybe you are looking for

  • Error while compiling java file

    Hi, im newby in java, i was trying to compile java files, and after that i will use it in JSP as javabean. I have 2 files already, the first file is a connection code, and its compiled successfully, it looks like this i named this as ConnectionBean.j

  • Base unit of measure Box is missing in SAP 4.7

    Dear Group members Base Unit of Measure "Box " is not in my SAP System 4.7 Dear Group Member I am not finding "Box " Base Unit of Measure in my system My system is SAP 4.7 You suggestions will be appreciated

  • Payment Method while manually entering Receipt

    Hi, I am not getting any payment method in the LOV for Payment Method while manually entering the receipt information. Receipt class and Payment method is defined in the system. Do I need to do any other setting so that the defined Payment method wil

  • DBMS_DATAPUMP.OPEN

    Hi, I am a newbie in PL/SQL & DATAPUMP ! I tried to generate (OPEN) a IMPORT-JOB with: CREATE OR REPLACE PROCEDURE XX IS BEGIN   BEGIN     DECLARE       HANDLE1 NUMBER;     BEGIN       HANDLE1 := DBMS_DATAPUMP.OPEN(OPERATION   => 'IMPORT',           

  • Problem installing illustrator cs5 trial

    I have downloaded the trial cs5 but when i try to install it i get the following error message. I use vista. "a problem occurred while ex tracting some files, please check available space on computer and the write priveledges on the desination folder