XI: How to update the Message Status (shown by transaction SXMB_MONI  )

Hi
   My question might be stupid, but I need you help.
I would like to know how can I update the message status what we see while using trasaction SXMB_MONI  . The Scenrio is, I have a Custom Interface program build on the Abap Proxy interface method called EXECUTE_ASYNCHRONOUS.
If I am not wrong, transaction SXMB_MONI is on the XI system and also on the SAP Application system. ( But I am not sure in what way the same transaction differ in two systems )
My issue is,  when I receive the xml data into a structure in abap proxy, I am doing some validation on the received message data. If I found some error in the data , then I need to update the Message status of the SXMB_MONI to  ERROR flag. How to implement this ?   I have not done one before. And I am not sure, if any exception like error message is raised, will it stop the proxy from processing further and update the Message Status and this can be viewed using SXMP_MONI in the SAP application system to be ERROR flag?
Or is there a BAPI or function module to handle this ?
Appreciate your help
David

Hi
I am not sure If I had understood you reply. But Would need your help to have a bit more insight to your answer. I am not completely into XI , but I am from ABAP side.
At the R/3 side , Abap Proxy object geneted has the INTERFACE and its associated  METHOD, in which I am building my own abap code to do any validation on incomming data. But If I want to Raise a Exception, I understand that this Expection has to be first defined .
But do I have to define a new Z Expection class  or can I just add a exception in the Proxy -Interface-method.
I have not understood this process.
All I need to do is, if I find any incomming data error , during my validation at the R/3 side, I need to stop the METHOD processing ( by any means ) and Update the Message Status flag show in SXMB_MONI to Error . 
What is the trigger  that i can implement in myown code that will update the Message status to Error , from R/3 perspective of using SXMB_MONI.
Thanks
David

Similar Messages

  • How to Update PI Message status from 012 to 014

    Hi Gurus,
    We faced an issue where the messages were stuck in PI Inbound queue (SMQ2). We accedentally reorganized the queues, which resulted the messages deleted from queue and moved to status schedul for outbound processing (012). And the probelm is we are not able to restart these messages. We learnt that the only option is to cancel these mesages and resend the messages from sender system.
    My question is :
    Is there any method to push these messages back to the inbound queues and have PI pick them for further processing?
    OR
    Is ther a way that the message status can be updated from 012 to 014 (any status where Restart is possible), so that we can re-process the data?
    Thaks for your help in advance.
    Regards,
    Jack.

    Hi Jack,
    Pls check the below mentioned blog:
    /people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages
    Try restarting the message using the report given in the above blog.
    -Supriya.

  • How to change the user status from CJ01 transaction

    Hello All,
    I am doing a BDC in CJ01 transaction where there is a field called "User Status" .
    This field is not editable. However the requirement is to populate this field with some value based on some other entries.
    Is there any Function module / BAPI to update user status from CJ01.
    Thanks in advance.
    Regards
    Indrajit

    Hi Anbu
        Thanks for your kindness.
         I had got the proper badi definition ( RECN_CONTRACT ) before. I have try to implement the badi in my implementation YCL_IM_RECN_CONTRACT and below is my example codes. It can update the user status when the SAVE button is pressed. My example codes are below:
    METHOD if_ex_recn_contract~check_all.
      DATA:
          cl_recn_contract   TYPE REF TO cl_recn_contract.
      DATA: r_status_mngr TYPE REF TO if_reca_status_mngr.
      DATA: lv_status_profile TYPE j_stsma.
      DATA: lt_status TYPE re_t_status,
                ls_status TYPE LINE OF re_t_status.
      DATA: r_message TYPE REF TO if_reca_message_list.
      cl_recn_contract ?= io_object.
      CHECK if_before_store = 'X'.
      CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->get_current_status
        IMPORTING
          ed_status_scheme = lv_status_profile
          et_status        = lt_status.
      lv_status_profile = 'ZBCIA01'.
      CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->set_status_profile
        EXPORTING
          id_status_profile = lv_status_profile.
      READ TABLE lt_status INTO ls_status INDEX 2.
      ls_status-stat = 'E0001'.
      ls_status-inact = ''.
      MODIFY lt_status FROM ls_status INDEX 2.
       CALL METHOD cf_reca_message_list=>create
         RECEIVING
           ro_instance = r_message.
      CALL METHOD cl_recn_contract->if_reca_has_status~mo_status_mngr->set_status
        EXPORTING
          it_status           = lt_status
          if_only_user_status = 'X'
          io_msglist          = r_message.
      REFRESH lt_status.
    ENDMETHOD.

  • How to verify the message id for call transaction ?

    Hi all,
    After calling transaction, I collect the message into a message table msgtab. There is an entry in msgtab with message type (MSGTYP) and message id (MSGID).
    How to know that the message type and message id is correct / relevant to my transaction?

    Hi macy,
    1. How to know that the message type and message id is correct / relevant to my transaction?
      I don't think thats requried,
      bcos,
      these message are ISSUED from the
      TRANSACTION itself.
      The message id, which is used in the transaction,
      (it can be more than one message id used in the transaction)
      , the same is collected in  the table.
    regards,
    amit m.

  • Exchange: forward/reply on iPad does not update desktop message status

    When one replies to or forwards a message through Apple Mail, the original message gets a little symbol (a curvy or straight arrow) to show that it has been replied to or forwarded.
    However, when replying through iPad or iPhone on an Exchange account, the message status is not updated on the desktop. Replies sent via iPad on a standard IMAP account correctly update the message status however.
    Any ideas why it does not work for Exchange?
    Thanks,
    Simon

    Oh well, I answered the question myself. The reason (although since not one other person seems to have noticed this issue except me, nobody will really care ) is that ActiveSync on the iPhone doesn't update the message status on the server.
    http://web.archive.org/web/20080822164152/http://blogs.msdn.com/jasonlan/archive /2008/07/18/iphone-2-0-windows-mobile-for-push-email.aspx

  • How to update the status of Outbound IDOC in case of error

    I want to know about how to update the status of Outbound IDOC in case of error.
    I am using message control functionality here.

    HI,
    If u r using the standard message and basic type
    u can do it in the FM attached to the basic and message type.There u need to write ur own message instead of standard SAP message..chek if there r any userexits available in the FM..where u can overwrite ur own message ..
    If u r using the Zmessage and Zbasic type
    then u need to declare an internal table of EDIDS structure and then append ur message to the internal table..
    idoc_status-docnum   = idoc_contrl-docnum.
      idoc_status-msgty    = <message type>
      idoc_status-msgid    = message-id.
      idoc_status-msgno    = message-number.
      idoc_status-msgv1    = message-message_v1.
      idoc_status-repid    = sy-repid.
      idoc_status-status   = <give the error status>.
      APPEND idoc_status.
    Reward if u find useful
    Regards,
    Nagaraj

  • How to delete the messages from sxmb_moni with status cancelled

    Hi ,
    how to delete the messages from sxmb_moni with status cancelled
    Is there any report for this
    Regards
    Suman

    I think just for deleting the jobs you can do this only
    Scheduling Delete Jobs
    To schedule delete jobs, proceed as follows:
           1.      In the Integration Engine -
    > Administration menu, choose Schedule Delete Jobs.
           2.      Select the job(s) to be scheduled.
           3.      Specify the start time and date.
           4.      Specify the period you want to use and choose Schedule.
    For an overview of all jobs, choose Jobs.

  • How to set the message in the status bar...

    hai,
    how to set the message in the status bar...
    let us say "inserted data successfully, or opening page followed  by the link clicked on the screen....."
    kindly help me out

    sunil,
    do not use advise by Ashutosh with WebDynpro.
    Instead of placing message into browser status bar (and browser is not the only WD UI agent), use IWDMessageManager API to post messages of such kind:
    wdComponentAPI.getMessageManager().reportSucces("Record inserted"); 
    VS

  • How to execute the messages in status 'scheduled' automatically?

    Hi.
    I find some messages every day which have status 'scheduled' for a long time - more then several hours. These messages use http adapter. When http server is not working, the messages scheduled, but not executed after http server become working. How to execute the messages automatically?

    http://help.sap.com/saphelp_nw70/helpdata/en/96/8412417301ee6fe10000000a1550b0/content.htm
    Is yours a EOIO scenario?

  • Troubleshoot-Adapter engine:Error Setting the message status to DLNG failed

    Dear Experts,
    We use SAP RFC- PI-JDBC(MSSQL).  here the Data(message) successfully transfered to mssql table but the status is been set to DLNG failed,  And it finally shown as SYSTEM ERROR.
    QoS required: ExactlyOnce ,  here The Message has got inserted in that particular table and in PI adapter the  status turned to  DLNG faild and the service again tries to send the same message which is not possible becoz the data is set for primary value.
    2010-09-15 09:59:48 Success Message successfully received by messaging system. Profile: XI URL: http://XXXXX:50000/MessagingSystem/receive/AFW/XI Credential (User): YYYY
    2010-09-15 09:59:48 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2010-09-15 09:59:48 Success Message successfully put into the queue.
    2010-09-15 09:59:48 Success The message was successfully retrieved from the receive queue.
    2010-09-15 09:59:48 Error Setting the message status to TBDL failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: Error updating status..
    2010-09-15 09:59:48 Success Delivering to channel: CCR_JDBC_ZZZZZ
    2010-09-15 09:59:48 Success MP: Entering module processor
    2010-09-15 09:59:48 Success MP: Processing local module localejbs/CallSapAdapter
    2010-09-15 09:59:48 Success Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2010-09-15 09:59:48 Success JDBC adapter receiver channel CCR_JDBC_ZZZZZ : processing started; party  , service BS_BCP_IMPLOG_ZZZZZ 
    2010-09-15 09:59:49 Success Database request processed successfully
    2010-09-15 09:59:49 Success MP: Leaving module processor
    2010-09-15 09:59:49 Success The message was successfully delivered to the application using connection JDBC_http://sap.com/xi/XI/System.
    2010-09-15 09:59:49 Error Setting the message status to DLNG failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: Error updating status..
    2010-09-15 10:37:01 Success The message was successfully retrieved from the receive queue.
    2010-09-15 10:37:01 Success The message status set to DLNG.
    2010-09-15 10:37:01 Success Delivering to channel: CCR_JDBC_ZZZZZ
    2010-09-15 10:37:01 Success MP: Entering module processor
    2010-09-15 10:37:01 Success MP: Processing local module localejbs/CallSapAdapter
    2010-09-15 10:37:01 Success Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2010-09-15 10:37:01 Success JDBC adapter receiver channel CCR_JDBC_ZZZZZ : processing started; party  , service BS_BCP_IMPLOG_ZZZZZ
    2010-09-15 10:37:01 Error Unable to execute statement for table or stored procedure. 'imp_log' (Structure 'STATEMENT') due to com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK_XXX_log'. Cannot insert duplicate key in object 'dbo.XXX_log'.
    2010-09-15 10:37:01 Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'imp_log' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK_XXX_log'. Cannot insert duplicate key in object 'dbo.XXX_log'.
    Thanks in advance for your valuable answer.

    Hi Vinaygam,
    2010-09-15 10:37:01 Error Unable to execute statement for table or stored procedure. 'imp_log' (Structure 'STATEMENT') due to com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK_XXX_log'. Cannot insert duplicate key in object 'dbo.XXX_log'.
    2010-09-15 10:37:01 Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'imp_log' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK_XXX_log'. Cannot insert duplicate key in object 'dbo.XXX_log'.
    See above error, It cannot the Duplicate Key in your log table. Duplicate means repeated as a same data.So kindly check once your data.
    IF,I assume your scenario is Synchronous, If you are using any sender JDBC adapter  just check with your Quality of Service and set it to "Exactly once".
    so kindly do it.
    Thank you,
    Sateesh
    Edited by: sateesh kumar .N on Sep 17, 2010 8:17 AM

  • Received notice of an update for one of my apps and when I tried to update the message reads "Account Not in this store"  i must switch to a Canadian store before purchasing

    Received notice of an update for one of my apps and when I tried to update the message reads "Account Not in this store"  i must switch to a Canadian store before purchasing.  I deleted app and tried to download again but still got the message.  Anyone know how to fix?  FYI have had phone for 2 years and this is the first time this has happened.

    The Apple id that you created do you remember if you created with your region sellected as Canada or US. If so you can change Region directly on your device by clicking on App Store icon, Scroll to bottom and tap your app is, click view acct and change region

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • How to see the period status in MM module

    Dear gurus,
    how to see the period status in MM module & how  to change it. pls send me tcodes of MM-Fi integration
    regards,
    Radha Krishna

    Hi
    tcode MMRV for status
    tcode MMPI to change period
    Tcode for integration i s OBYC
    assign points if useful
    pushkaraj
    Message was edited by:
            pushkaraj kulkarni

  • How to update the posted documents with Business Area wise

    Dear experts
    Please suggest me how to update the posted documents with Business Area wise
    Ajeesh.s
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Nov 2, 2011 2:26 PM

    Hi,
    Select all your folders in Disco Administrator,ALT+ENTER to go to properties, then change the database from the default database to the remote database.
    Hope that helps,
    Rod West

  • Steps For Updating the IDOC Status using ALEAUD

    Hi all,
    My Scenario  is : R/3(IDOC)--> Legacy System(File).After the IDOC is received successfully on the Receiver System.I should Update the Status of IDOC on the Sender System.
    Can anyone help me out :
    What all the Steps & Configurations involved for Sending an Acknowledgement & Updating the IDOC status  from the Legacy System.
    Thanks in Advance,
    Dattatreya.

    Hi,
      You may need to set up another flow (a reverse one), where the Legacy sends a msg to XI with the Idoc number of the initial idoc you sent (onward flow).
      now, you can map the idoc number in E1ADHDR/E1STATE/DOCNUM and other statuses as required (in various tags) and also other information as per your environment. Pls see the below links
    Re: Acknowledgements ever switch to Status 39
    Re: Asyncronous acknowledge from file adapter
    Re: R3<->XI<->Auto-ID:How to check result of Idocs sending out from R3 in aii ?
    Regards
    Vishnu

Maybe you are looking for

  • Siri on iPhone 4?

    Is it possible so me to somehow get Siri on my iPhone 4 iOS 5.0.1?

  • Bill to address in AR

    I need to find Bill to address with customer names as View: When i try i am getting duplicates ::: Can some one show me the missing link???? CREATE OR REPLACE VIEW XX_PARTY_NAMES_V (CUSTOMER_NUMBER, PARTY_NAME, ADDRESS_LINE_1, ADDRESS_LINE_2) AS SELE

  • Zen micro problem it just says creative all the t

    i am the owner of a zen mirco and ever since it went dead and i charged it it just says the creative logo on it

  • Cannot save using Photoshop

    I am running 10.3.9 as well as 9.2.2 with Photoshop as a classic app. When trying to save using Photoshop I get the error "Cannot save due to a disk error". Removing Photoshop then re-installing it seems to work for a while but then it starts to happ

  • Need input on Approval Process via hand held devices

    Hi All, Need inputs on the given scenario. We have implemented Quotation Management (VA21) for our client. The quotation goes through various levels of approval (or decline) via the Workflow below it is finally given to the customer. Users usually lo