Skip to Content
avatar image
Former Member

Cancel message with errors - How to automate this?

XI / PI SDN Community

I think that because of basis team settings every time a message fails to pass through the pipeline (for example a mapping error) XI tries to process this message over and over again for days!

Assuming that basis is not going to change any configuration on their end: Is therer a way to create a job (TCODE sm36) to do this cancel for me? - I mean I have access to go and manually cancel the message with errors tru the moni.

Regards,

José Francisco

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 06, 2009 at 10:02 AM

    Dear Jose,

    Hi this is Tarang ...

    For cancelling messages on Java engine ( ones that you see on RWB )

    1. There is no standard program which would allow you to cancel the messages here

    2. you can only set a maxim retry interval...i.e how many times a meesage in error should be retried foe sending...this setting can be done in transaction sxmb_adm....there is a parameter called IS_RETRY for this..

    For cancelling the messages on ABAP engine ( ones that you see in MONI)

    1. You can cancel them using the report rsxmb_cancel_messages ...but dont use this report independently...

    coz there are some chances ..due to which you are getting a message in error in moni ..but the message is restartable......then if you directly cancel it , it is not correct

    2. you cna club the above report with rsxmb_restart_messages...i.e you can create a job sequence where 1 step would be scheduling thee program rsxmb_restart_messages and then the ones that are not restarted properly ...yu can cancle using the second step in the sequence ....i.e rsxmb_cancel_messages

    But be it ABAP / JAVA engine every XI landscape has many of the EOIO interfaces where in the concept is that if the first message in the queue gets stuck ...the message behind that should also get stuck....if you cancel message automatically (say using the above report), there are chances that particular message was configured for EOIO and the message behind that is actuaaly not meant to move ahead..but once you cancel the first message3 the other will go.....which is wrong and against the laws of EOIO...

    hence SAP suggests " no automatic cancellation of message neither at ABAP nor at JAVA level should be done"

    SAP says that manual cancellation of messages is included in the daily maintenance task of XI

    you can obviously play with the number of retries using entry IS_retry

    Hope this helps

    Edited by: Tarang Shah on Mar 6, 2009 11:07 AM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Jose,

      Even there is an option of "EO only" in RSXMB_CANCEL_MESSAGES ....there are chances that the message was restartable and this program cancelled it..which obviously should not happen

      I checked the program RSXMB_CANCEL_NOT_REST_MESSAGES which only cancels nonrestartable messages but then it does not have the "EO only " chkbox..

      SO i pressume there are two options only

      1. use "suppress multiple chkbox"

      2. use both the jobs "rsxmb_restart_messages" and "rsxmb_cancel_messages" in sequence...wherein the 1stprogram will restart all the messages where it is possble and after that for the messages where it was not possible would be cancelled by "cancel_messages.

      again the option two aboce will only work with IE errors for all the erros occuring on AE/RWB you have to set the IS_RETRY paramter to control the number of retries

      if you just want to save your Basis guy of multiple emails

      set the suppress multiple chkbox

  • avatar image
    Former Member
    Mar 06, 2009 at 09:47 AM

    Hi,

    you can specify in you configuration how many retries the system should do if en error occurs. So the system should not do the retries for days!

    I am not aware of any automatism for canceling error messages in XI.

    Regards,

    Kai

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 06, 2009 at 10:01 AM

    Hi Jos,

    Try out with the RSXMB_CANCEL_MESSAGES . Here you can schedule it according to your requirements.

    regards

    Ashwin Kumar Dhakne

    Edited by: ashwin dhakne on Mar 6, 2009 3:40 PM

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 06, 2009 at 10:20 AM

    Hi,

    Run the reports for various messages

    RSXMB_CANCEL_MESSAGES : Cancel Messages with Errors

    RSXMB_CANCEL_NO_COMMIT_MSG : Cancel Message Processing for Messages Without Commit

    RSXMB_CANCEL_NOT_REST_MESSAGES : Cancel XI Messages With Errors That Cannot Be Restarted

    Thanks!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 06, 2009 at 10:13 AM

    Hi,

    In SXMB_MONI window errors we can restart through manually (through restart option) or execute standard SAP program RSXMB_RESTART_MESSAGES or if you want to cancel we can do through RSXMB_CANCEL_MESSAGES . Through this program we can restart or cancel message in ABAP engine but adapter engine level i think we don't have any option to delete, we need to do manually. Find below link for more help

    /people/gourav.khare2/blog/2007/12/21/mass-cancellation-of-error-messages--xi

    Add comment
    10|10000 characters needed characters exceeded