BPM - Send Step to HTTP - How to capture the error?

Hi gurus,
I have a BPM with a Send Step that connects to an http server. I need the following:
- If the HTTP returns code 200, end the BPM
- If the HTTP returns another code, wait 5 minutos and try the send step again.
I've made a LOOP with a flag. Inside the LOOP I have a BLOCK with an exception branch.
In the send step I put in the field "system error" to go to the exception branch and in the exception branch i'm setting my flag to do the loop one more time.
My problem is that the Send Step is not triggering the exception branch! The http returns 405 or 504 and it continues like everything is okey.
Can you help with this?
Thanks in advance !
MD.

Hi Ramakrishna,
   Once you create the session, Process the session using
the report RSBDCSUB using submit statement.
It would list out the erroneous records.
Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
Regards,
Ravi

Similar Messages

  • How to capture the error messages from incorrect session?

    Hi SDNs.,
    i am using BDC Session method to update transaction FB01. So my job runs daily. here i want to capture the error messages and i want to send it to mail.  Can i capture the unprocessed records???
    i think FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</b> used for sending mail? but how to capture mes or records?
    or Is there any other way to Do it???
    Thankning you.,
    Ram

    Hi Ramakrishna,
       Once you create the session, Process the session using
    the report RSBDCSUB using submit statement.
    It would list out the erroneous records.
    Hence, while submitting, just say submit RSBDCSUB in background and export output list to memory.,
    Then you can retrieve the list from memory using the FM LIST_FROM_MEMORY into the internal table and finally send the email by the fm you have already mentioned.
    Regards,
    Ravi

  • How to capture the errors, while processing the transformations

    Hi,
    i need to capture all errors, this includes invalid SQL text, short dumps related to SQL exaction etc.., while processing transformation.
    I need to write code to fill error handling structures like(monitor table).
    It sholud dynamically update the all errors to Monitor table, while processing the Transforamtions.
    Please advice how to do this.
    Thanks & Regards
    MRK

    Hi Rajani,
    the code goes some this like this
         RESULT = SOURCE_FIELDS-TXTMD5.
         TRANSLATE RESULT TO UPPER CASE .
         CONDENSE RESULT NO-GAPS .
         READ TABLE I_SECTOR INTO I_SECTOR WITH KEY
                                   PRODUCT = SOURCE_FIELDS-/BIC/Z_IPROD
                                   ISTATATTR = RESULT .
         IF SY-SUBRC NE 0 .
          MONITOR_REC-MSGID = 'ZMESSAGE'.
          MONITOR_REC-MSGTY = 'E'.
          MONITOR_REC-MSGNO = '001'.
          MONITOR_REC-MSGV1 = 'ERROR, SECTOR'.
          MONITOR_REC-MSGV2 = SOURCE_FIELDS-TXTMD5 .
          MONITOR_REC-MSGV3 = SOURCE_FIELDS-/BIC/Z_IPROD.
          APPEND MONITOR_REC TO MONITOR.
         RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
         ENDIF.
    for this you need to create message class called ZMESSAGE in SE91 tcode
    Hope this helps
    PV

  • Retries in BPM Send Step

    Hello,
    I wouild like to send a message using the send step in BPM to an http receiver. Requirement is, if the http server is not reachable there should be 3 retries and afterwards an error should be thrown.
    How would I do this? Do I need three error handler branches, where each of those has the same send step? And then apply a 4th error handler which then terminates the process? I think there should be a simpler solution.
    What do you think?

    For http receiver, you will finally receive error message in sxmb_moni (not RWB). If you have standard retry configuration in sxmb_moni, then same would be applied in this case also.
    Regards,
    Prateek

  • Error Handling in BPM - Send Step

    Hello,
    I would like to implement the following two error handlers using BPM:
    1. There is a send step which sends a message to an HTTP receiver. If the HTTP server is down I would like to add 3 retries and just in case after the third retry fails there should be an error Email sent. So I am wondering whether a communication error (which happens in the HTTP receiver communication channel) is delivered back to the process engine so that it can be handled using BPM.
    2. I also need to apply a validation using XML schema. So if validation fails the error should also be returned to the process engine so that it can be handled in the integration process.
    Are those two requirement possible as described (returning communication and validation errors)? Or do I have to follow another approach?
    Thank you very much!

    Hi Florian,
    >>2. When I activate transport acknowledgement and there is an error in XML validation outbound channel request I get an system error acknowledgement back however the error branch is NOT taken either!
    Correct send step using transport acknowledgment will check whether the message was transmitted or not
    Check this link http://help.sap.com/saphelp_nw04s/helpdata/EN/43/65ce41ae343e2be10000000a1553f6/content.htm
    >>3. And NOW it gets interesting: When I simulate step 2 again an cancel the error message afterwards then the error branch is taken! Not very useful in my opinion if error messages have to be canceled first. The error branch seems to be pretty useless for me in case of asynchronous send steps.
    Again when you cancelled the message it was not received successfully by the receiver system and hence it raised exception (as mentioned in the Exception of send step.)
    I will suggest you to try using Application Acknowledgment in send step. Also If you provide the steps of BPM then it will be more helpful.
    Also have a look at this :
    Asynchronous send step can raise exception only when
    1. Thrown when a permanent system error occurs:
    a. In the case of an asynchronous send step, the exception will only be triggered if an error occurs during the transfer to the pipeline. Errors that occur during mapping in the pipeline, do not trigger an exception.
    b . In the case of a synchronous send step, the exception is also triggered by permanent system errors that occur in the pipeline or while transporting the message to or from the pipeline.
    Regards
    Suraj
    Edited by: S.R.Suraj on Sep 8, 2009 6:41 AM

  • How to capture the screen and send it to attachment for that mail

    hi sir ,
         how to capture the screen shot and attach with that e-mail , whether it is possible or not ..
    Regards,
    kumar

    hi sir,
        i am asking about while creating the support message from help menu in sap..
    while creating the support message we have to give component , priority and text also .. after that click the send icon in that support desk message .. while clicking the send button the entire screen ( what  we have entered in that creen na ) i have to capture the screen ( it may be save in local file also )  after that it will attach into attachment and then send it to ...
    Regards,
    kumar

  • How to capture the screen for sending the mail

    dear sir,
                      How to capture the screen for sending the mail .. Is there any funtion module or anyother way ? .. How to do this .. Please tell me..
    Regards,
    Kumar

    dear sir,
    s thats my problem ?
    Regards,
    kumar

  • BPM SEND Steps

    HI,
    Can anyone tell Maximum number of BPM SEND steps we can have?
    Regards;
    Akshay.

    Hi Ram,
        Ok do one thing create a container variable. Dont use this container variable in any steps. now pt a condition at the point whr u want to check whehter the container variable in which u r receiveing the msg is not equal to this newly created container variable. If the condition is satisfed, u hv receive the msg i.e. ur container variable is not empty.
    Regards,
    Akshay
    Message was edited by:
            Akshay Salunke

  • How to capture System Error in XI?

    Hello All,
    1. Can any one tell me , How to capture the system error , Adapter Error and send the alert to make sure the guarenteed delivery from Source to Target via XI ?
    2.I have done the configuration for to capture the mapping error in transaction ALRTCATDEF .But still i am not able to see any messages in my Alert Inbox???
    I have checked with the two weblogs Alert step by step and Alert Trouble shooting guide.but still i am not getting any messages in Alert inbox .Any one can tell me how to fix this?
    Thanks!

    Hi,
      You wrote:
    <i>How to capture the system error , Adapter Error </i>
    Errors are captures in many ways and at different stages,
    like alert, sld errors or even sxmb_moni or even with visual administrator trace, I am not sure of your requirement but if you want a centrlished point to access all these error you may refer a good example as,
    /people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place
    <i>have checked with the two weblogs Alert step by step and Alert Trouble shooting guide.but still i am not getting any messages in Alert inbox .Any one can tell me how to fix this?</i>
    The two weblogs are my favourite and best resources but still if you are missing, please elaborate if you are getting any errors or other fesible traces as to why your alerts are not coming in inbox.
    Regards,
    Anirban.

  • How to capture the values given in SSC1 transcation?

    Hello All,
    Can anyone suggest me, how to capture the values given in SSC1 transaction?

    Hello Clemens Li,
    Requirement: Integration of SAP Appointment Calendar with Gmail Calendar
    If I create an appointment in SSC1 transaction, it will appear in SAP Appointment calendar. The same thing should get updated in Gmail calendar of SAP user and also in the guest Gmail calendar if exists in appointment.
    So, I have to capture the input values given in SSC1 transaction while creating an appointment in SAP and try to export those values to web services using some function module.  Sending those values to web services completes my task.
    Means, if I create an appointment in SAP, at the same time, the values which I gave must get exported to some object. So that I can send them to web services.
    But my actual problem is with capturing the input values given to SSC1 transaction.
    How can I get those values out to some internal table?
    Another one is, I did not found any BADI to enhance SSC1 transaction so that I can include my code there.
    If you know any enhancements in SSC1, please let me know.
    If you want any more clarification, please let me know.
    Thanks for the response
    DNR Varma

  • How to Capture the Objects in Object Library in Openscript tool?

    Hi All,
    I am new to OATS and i was trying to explore the Object Library in Opencript tool.
    Can anyone please advise me how to capture the Oracle forms Object in Object Library or Object Repository using OpenScript Tool?
    It would be grateful,If you can provide me the step to follow for the above.
    Thanks
    Ajith

    Hi Ajith,
    Create one Object Library. In OpenScript click File -> New -> Select Object Library under Script Assets.
    Then mention name of your library and save it.
    Add this library to script assets of your script. Select Script -> Script Properties... -> Script Assets -> Object Library -> Add(button) -> select your Object Library.
    Then save  your script and start recording. After recording you can see xpath of all objects you interacted with during your script recording.
    If you want to apply this to your script, select Script -> Apply Object Library.. -> then select your Object Library. If you want to revert it, then select Script --> Revert All Navigation To Recorded
    Hope this will help you...
    Regards,
    Deepu M

  • How to capture the table update

    How to capture the table update.Suppose I delete a enrtry from the table or mofying any entry in a table is there way to capture that update in SAP?

    hi ,
    follow these steps:
    1. After you selecte the search help for New Responislbe person, domodify gets triggered.
    2. In the wddomodify, get the value of New Responsible person by reading the attribute binded to it.
    3. Now if Value entered is not initial, write a selecte query to fetch the name based on pernr no.
    4. Finally bind the name fetched with the attribute binded to New Responsible person name.
    Wdomodify :
    ************* *Read the New REsponsible person Pernr* ***********
      DATA lo_nd_cn_sflight TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_sflight TYPE REF TO if_wd_context_element.
      DATA ls_cn_sflight TYPE wd_this->element_cn_sflight.
      DATA lv_carrid LIKE ls_cn_sflight-carrid.
    * navigate from <CONTEXT> to <CN_SFLIGHT> via lead selection
      lo_nd_cn_sflight = wd_context->get_child_node( name = wd_this->wdctx_cn_sflight ).
    * get element via lead selection
      lo_el_cn_sflight = lo_nd_cn_sflight->get_element(  ).
    * get single attribute
      lo_el_cn_sflight->get_attribute(
        EXPORTING
          name =  `PERNR`
        IMPORTING
          value = lv_carrid ).
    ****** *Check whethre a value has been entered in PERNR* *************
    if lv_carrid is not initial.
    *************Select Name based on pernr entered* ***********
    select ename from pa001 into lv_ename where pernr = lv_carrid.
    *******Set the Name atttribute with the ename value fetched* *****
      lo_el_cn_sflight->set_attribute(
          name =  `NAME`
          value = lv_cename ).
    endif.

  • HOW TO CAPTURE THE COMPANY CODE IN MIR7

    Hi ALL,
    MIRO data transfer i am facing some problem
    initially i am capturing the Company code in MIRO
    after that i am filling up all those values.
    for my requirement
    1.i want to hold the company code screen initially at all time
    other wise
    2. i am getting error message as No batch input screen for 'SAPLMR1M" '1000' while i am execution of the second time of MIRO posting  how to eliminate the error message.
    Please advise.
    Thanks & Regards
    K.Gunasekar.

    Hi All
    I am doing BDC in FV60( Recording) is it possible to pass the value into hidden fields through (BDC)
    SCREEN FIELD NAME: Document Type.
    Document type is hidden through FV00 and also without changing configuration in IMG.
    Thanks & Regards
    K.Gunasekar.

  • How to capture the Logout time in xMII

    Hi Friends,
    How to capture the logout time in xMII when the user clicks on Logout link
    Thanks

    Srikanth,
    It would be better to use a database table(s) to store your audit trail information than an xml file, which could grow beyond a manageable size and then require housekeeping efforts and file rolling, etc.  It would also be much easier to query user related information out of the logs, pareto charts for failed vs. successful login attempts, etc. if the data was stored in a database.
    Have you considered modifying the Relogin.jsp page link in the portal's sub-menu bar?  How about making your own version of this web page and changing the link pointer?  Keep in mind that whatever result you come up with here will need a significant update for NetWeaver UME compatibility in version 12.0.
    Regards,
    Jeremy

  • How to capture the current info in the top-of-page event in Reuse block dis

    How to capture the current info in the top-of-page event in Reuse block dis

    Hi Geetha,
         If you don't have any information to pass the Heading Block, then why you are using this event ?
         please comment/ remove that TOP_OF_PAGE code. and use subtotal code in field catalog block.
          you can use below code for subtotal. 
          FORM field_catalog .
                    gs_fcat-do_sum = &2.
              fcat : 'WRBTR' '15' 'X' ' ' ' ' 'WRBTR' 'Amount',
           ENDFORM.
           Regards,
           Kunjan

Maybe you are looking for

  • Saving a Query View

    Hi, In my reports when I am doing a SAVE AS and saving the query view on Favorites, it is saving. But when i hit open and try to open the Saved view it is taking me back to the variable selection screen. Only after entering the variables is it showin

  • In-Browser editing - uploading a PDF as download link?

    Can a client who has access to a Muse site with in-browser editing enabled logo on and add a link to download a PDF for e.g.? Also, I presume the client doesn't have the ability to add new pages to the site? Thanks!

  • Cfform or cfmail troubles

    I am lost, I am new to ColdFusion and am trying to create a "Contact Us" page. I have a form made up with all the fields that I need on the page. I want it to email the form to "[email protected]" upon hitting submit. However I am stuck and cannot g

  • Oc4j is started but url is not working

    Hi ALL, I have installed oracle business intelligence successfully in centos 5. i started the BI process and after that i started the ./oc4j -start and i think it started successfully i got something like this as at the end after executing ./oc4j -st

  • Issue with a website

    My desktop version and chrome resolve this site but Firefox for android won't http://www.reserveamerica.com/unifSearch.do Any help would be appreciated