Archive/delete table SXMSPMAST with MSGSTATE = 1 or 23

Hi experts,
In table SXMSPMAST how to change the Message Status(MSGSTATE) 1 & 23 to 3?
Because Archive/delete job is not cleaning messages from table SXMSPMAST with Message Status(MSGSTATE) = 1 & 23.
I already tried using RSWF_XI_UNUSED_MSGS.
Regards

Hi,
Here are a few tips on how to delete messages, and also enable messages for deletion which are not in final state.
To release messages in unarchivable statuses: http://host:port/MessagingSystem/archiving/reorgdb.jsp
Schedule following reports weekly (depending on your error handling and reporting procedures for your system this might not be possible in your production system):
RSXMB_CANCEL_MESSAGES
RSXMB_CANCEL_NO_COMMIT_MSG
RSXMB_CANCEL_NOT_REST_MESSAGES
RSXMB_CHECK_ITFACTION
RSWF_XI_INSTANCES_DELETE
SXMS_REFRESH_ADAPTER_STATUS
In addition you have the following reports dealing with enabling messages for archiving deletion
u2022     RSWI_REGENERATE_WI2OBJ (uncheck u201CDisplay modeu201D and set for relevant dates)
u2022     SXMS_REFRESH_ADAPTER_STATUS -     Success: all msg with adapter status 001 changed to 006 (archivable)
u2022     RSWF_XI_UNUSED_MSGS (recommended not to run in production to avoid loosing data)
RSXMB_SHOW_REORG_STATUS shows number of messages scheduled for archiving/deletion
RSXMB_SHOW_STATUS shows number of messages per message status, and adapter status for messages with message status = 003 (Processed successfully)
RSXMB_CHECK_MSG_QUEUE fixes inconsistencies by changing the message statuses 001, 009, 012 and 016 to 014/021.
Hope this helps!
Br,
Kenneth

Similar Messages

  • How to delete table entries with SE16 in debugging mode?

    We are trying to delete some table entries which cause our InfoPackage short dumps in BW system.  The problem is that we can only see the Display menu item with SE16 and the Delete menu item is dimmed that we are unable to conduct the deletion.  SAP Support suggest to use debug with SE16 to do the deletion, but we can't figure out how!
    Anyone's idea is greatly appreciated!

    Then you are not at the right place.   Lets start at the begining.
    Go to SE16.
    Enter table name.
    Hit F7.
    Enter selection criteria.
    hit F8.
    Double click the specific record that you want to delete.
    In the transaction code field at the top, enter  "/H" and hit enter.  Debug is switch on.
    Now hit enter again. 
    You should now be in debug and you should see this code..
    form set_status_val tables ntab structure x031l           
                        using code name next for_lines.       
      field-symbols: <field>.                                                                               
    refresh exclude_tab.                                    
      if code = 'SHOW'.                                       
        set titlebar 'TAB' with name 'anzeigen'(100).         
      elseif code = 'EDIT'.                                   
        set titlebar 'TAB' with name 'ändern'(101).           
      elseif code = 'INSR'.                                   
        set titlebar 'TAB' with name 'einfügen'(102).         
      elseif code = 'ANVO'.                                   
        set titlebar 'TAB' with name 'einfügen'(102).         
      elseif code = 'DELE'.                                   
        set titlebar 'TAB' with name 'löschen'(103).          
    Notice that there is a field called CODE in the IF statement.
    Now enter the word "CODE" in the field names list,  change the value to DELE and click the pencil.  Hit F8.  Now you can delete the entry.
    Regards,
    Rich Heilman

  • Can I delete table data with a change request?

    Hello colleagues,
    There is a table (T2502) that in production system has more data (not necessary)than in the dev system, and we have created a request with the same data from the dev system, that does not have this data, but i does not remove the data that is not necessary. I have tested and the inser procedure is working fine. Do you know if the system allows to copy the table from a dev to a prd system by a request?
    Which should be the most appropriate way to do this?
    I have checked in SE54, generated objects, and in the "dialog data transport details" it is set to "no, or user,recording routine".
    Any idea?
    Thanks in advance.

    Moving the table by a transport request is better option.
    Do u want the procedure of doing this...
    Ur query is not clear at all. will u tell exactly wat u want to do..

  • Sxmb_moni, table sxmspmast, Messages with ICON_LED_RED, report RSXMB_SELECT

    Good Evening,
    we want to build an alert-report, which is fed by the table sxmspmast. in fact we want to do an alert, when messages are being logged which have the little red ball (ICON_LED_RED) in TA sxmb_moni. I tried to focus on the field msgstate without success - in fact messages with same msgstate value 003 have different icons! I also tried to find "red" messages with their IDs in table sxmsperror, but it wasn't there, although the table was not empty.
    any ideas appreciated.
    thx. a lot,
    matthias

    Hi Matthias,
    The table SXMXPMAST is the master table for the messages(in each pipeline ..one entry i think..), you might want to look at another table - SXMXPVERS.
    This has the version of the messages in different pipelines & at different stages. There the statuses are different and not '003'.
    For example a message coming in would have at 3/4 entries in SXMPSVERS, because it hase to go through "Recorded", "Recorded for Outbound Processing", "Processed Successfully" status and each status will have an entry here and the statuses would be different.
    So this can be your source table instead of the SXMXPMAST..
    hope this helps.....
    btw...my naticve place is called KERALA in INDIA which means the "LAND of COCONUT TREES" ...
    Thanks,
    Renjith.

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • Issue with Archiving & Deletion of messages in PI ,SXMB_MONI messages

    Hello experts
    I am  working on Archiving & Deletion of messages in PI ,SXMB_MONI, i have fallowed all the steps which are avialable in /people/deepak.shah/blog/2010/04/22/archiving-deletion-of-messages-in-pi--part-2, but the messages still there in SXMB_MONI.
    please help me to resolve this issue.
    regards
    chandra

    Hi Krish
    i have fallowed steps like....
    in SXMB_ADM
    >>>step 1: Define the interface for archivng and retnetion period
    >>>step2):Schedule Archive Jobs,
    after this i have checked the in SM37 the jobs got sheduled and released after that it showing finished.
    >>>step3):ARV_BC_XMB_WRP<date> (archiving, step 1)
    ARV_BC_XMB_DEL<date> (archiving, step 2)
    here i am getting message like "0 XML messages got archived".
    "0 XML message for deleated".
    I have doubt in SXMBPMAST  table here when i check the status of interface , ITFACTION field is containing the value INIT and if I understood correctly it job deletes only those messages where ITFACTION is set to DEL.
    We are actually trying to delete the messages avoiding archiving but what I am seeing is we cannot delete error messages and for them we must have to go through archiving. Please correct me if I am wrong.
    Thanks
    Chandra

  • Oracle  deleting rows from tables starting with the name PQ

    hai friends
    we are given access rights to delete only tables starting with PQ. HAVING PQ_NUM as primary key for all the PQ tables.
    totally we have 6 tables. PQ_01,PQ_02, PQ_03,PQ_04,PQ_05,PQ_06.
    ALL This tables will have one primary key. for example pq_01 willl have pq01_num as primarykey and pq_02 table will have pq02_num as primary
    key.
    pq01_num value will exist in all the primary key of pq tables.
    i want query to delete rows from the pq tables based on the input value i give.
    for example if i give primarykey value 122 then that value in pq tables should be deleted.
    One more problem is there. pq_06 table does not have pq02_num column. here the column differs. it is pq06_num_req.
    so give your idea of deleting the rows from pq tables
    waiting
    S

    I dont have access to databse,this is untested
    declare
      v_cmd  varchar2(2000);
      columnname varchar2(30);
    input_value number:=??;
    tabowner varchar2(30):=???
    begin
    --step 1 identify table
      FOR sub IN (SELECT table_name table_to_delete
      FROM all_tables
    WHERE table_name LIKE 'PQ%'
    and owner=tabowner
    ) LOOP
      ----step 2 identify column
    v_cmd :='select t.column_name from all_constraints S,All_Ind_Columns T where
    S.OWNER=T.TABLE_OWNER
    AND S.TABLE_NAME=T.TABLE_NAME
    AND S.INDEX_NAME=T.INDEX_NAME
    and s.owner=tabowner
    AND S.TABLE_NAME='||table_to_delete||'
    and s.constraint_type='''P'';
         execute immediate v_cmd into columnname; 
         --step 3 delete records
        v_cmd := 'delete from '||tabowner||'.' ||
                 sub.table_to_delete || '
       where '||columnname||'='||input_value; 
         execute immediate v_cmd;
        commit;
         END LOOP; 
    end;Edited by: user5495111 on Aug 11, 2009 6:35 AM

  • The DELETE statement conflicted with the REFERENCE constraint "FK_Equipment_Assets". The conflict occurred in database "WorkOrderSystem", table "dbo.Equipment", column 'AssetCode'........can someone give me a solution for this Error.

    The DELETE statement conflicted with the REFERENCE constraint "FK_Equipment_Assets". The conflict occurred in database "WorkOrderSystem", table "dbo.Equipment", column 'AssetCode'

    ya that's true row is referenced by another table.....but i want the row to referred by another table ,I don't know how to fix it
    Actually this is not a C# issue. It is a T-SQl issue.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=transactsql
    The above link should be posted.
    Per my understanding, first you should
    delete the record from the Foreign Table and then after you have to delete the record from the Primary Key table
    Hope it helps you.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How To Restore Deleted Table With It's Data To Specified Time Using 10g

    Hello Everybody
    I would like to gain from your experience in the Felid of DBA so now i am not trying to restore the full database, but i have a stupid user dropped accedintaly a single table from the database. i want to restore this table after being deleted but also i have big problem i dont have any backup for this table so if you please send to me any solution to restore this deleted table
    Notes : I have (Flash backup On , Archive Log Is On)
    it is not that the database is corrupted or anything
    Ramez S. Swires

    Hey N. Gasparotto
    Thank you for replying me. in the first thread you told me
    ( Without any flashback availability, you haven't any other choice than PITR (Point In Time Recovery)).
    i already checked i found that flashback is working and archive log are working and both are working normally and working before dropping the table and also i cant restore the table which is dropped.
    So what can i do?
    Do you have any other idea?
    Ramez S. Sawires

  • Archiving FI transaction figures of total table (FAGLFLEXT) with FI_TF_GLF

    Hi Experts,
    I was encounting a problem when trying to archiving FI transaction figures with archive object "FI_TF_GLF", in order to archive data in total record "FAGLFLEXT" for ECC 6.0. However, there comes a problem "current or previous financial year not able to archive".
    Is it a limitation for SAP that the current or previous financial year data in FAGLFLEXT is not to be archived and should be remained in system? Is there any other ways to archive these data so as to delete them in the system?
    Thank you inadvance for all your kind support and help.
    Yours,
    Kelvin

    Dewar VG,
    Thank you very much for your response. It's the SAP's limitation for archiving the FAGLFLEXT.
    However, as my client is trying to complete archive SAP transaction data so as to remove the SAP system and the data do not need to remain in system.
    The purpose of my client is to delete all the transaction data in system, either in BSEG or in FAGLFLEXT. Thus, is there any other way to delete the data in FAGLFLEXT for the previous and current fiscal year?
    Thank you.
    yours
    Kelvin

  • SQL error msg - The DELETE statement conflicted with the SAME TABLE REFERENCE constraint

    Executed as user: ****. The DELETE statement
    conflicted with the SAME TABLE REFERENCE constraint "FK_PARENT_TASK_REF".
    The conflict occurred in database "****", table "****", column
    'PARENT_TASK_ID'. [SQLSTATE 23000] (Error 547) The statement has been
    terminated. [SQLSTATE 01000] (Error 3621). The step failed.
    Does this error msg indicate the whole script failed to execute or was it just a single step/task that failed ?
    What does error msg mean ?
    Anyway to prevent this error msg and ensure script runs successfully

    Hi mdavidh,
    This error occurs because the record  'PARENT_TASK_ID' was referenced by 'FK_PARENT_TASK_REF'.
    Please refer below codes:
    CREATE TABLE MyTable (
    ID INT, primary key(ID), -- primary key
    ID_Parent INT foreign key(ID_Parent) references MyTable(ID), -- foreign key reference the same table
    insert into MyTable(ID,ID_Parent)
    values(0,0);
    insert into MyTable(ID,ID_Parent)
    values(1,0);
    insert into MyTable(ID,ID_Parent)
    values(2,0);
    insert into MyTable(ID,ID_Parent)
    values(3,1);
    insert into MyTable(ID,ID_Parent)
    values(4,3);
    insert into MyTable(ID,ID_Parent)
    values(5,4);
    CREATE TRIGGER MyTrigger
    on MyTable
    instead of delete
    as
    set nocount on
    update MyTable set ID_Parent = null where ID_Parent in (select ID from deleted)
    delete from MyTable where ID in (select ID from deleted)
    Now we could delete records.
    delete from MyTable where ID_Parent=0
    Thanks,
    Candy Zhou

  • Table SXMSPMAST - Remaining entries

    Hi experts,
    I have launched report RSXMB_DELETE_MESSAGES in order to delete entries in SXMSPMAST with an 'ITFACTION' = 'DEL'.
    It worked fine, but I still have many entries left with 'DEL' status that won't get deleted.
    Most of the entries left have MSGTYPE = A, QOSMODE = EO and MSGSTATE = 3.
    Do you have an idea why there are still entries left with ITFACTION = DEL after having launched RSXMB_DELETE_MESSAGES.
    Any help would be greatly appreciated.
    Thanks a lot,
    Jamal

    Thanks a lot to both of you
    Actually Michal, I think it comes from this from the note :
    Check if there are message with missing qRFC entries. This happens if a user deletes queue entries using transaction SMQ2 instead of (correctly) canceling messages via transaction SXMB_MONI. Messages without queue entries can neither be restarted, nor deleted or archived. SAP has delivered a report to help you cleaning up this type of message status. Please use the report that is described in detail in Note 688147. Keep in mind that deletion of qRFC entries is not recommended at all in an SAP environment. It creates inconsistencies between the tables TRFCQIN and TRFCQSTATE / TRFCQDATA and the XI tables SXMSPMAST which causes the problems for archiving / deletion. Use Note 779664 to check for inconsistencies in the tRFC tables.
    So I prefer not to touch since not recommmended
    Thanks again,
    Jamal

  • Archiving/Deleting - Changing msg status

    Hello Everybody
    I've configuring archiving on my XIP system. Old messages are flagged as "TO BE DELETED" because they weren't in "Define interfaces for archiving ...." !!!
    I'd like to know if I can change this flag to "TO BE ARCHIVED" directly in  SXMSPMAST. Are there any other tables I need to do something?
    Thanks
    Julio

    Hi Julio,
    no, this has to be tagged in SXMB_ADM per interface in "Interfaces for archiving and persist duration" before you send any messages for the required interfaces. All message sent before can only be deleted.
    With standard functions from SAP there is no possibility!
    Possibly the direct change in the table is ok, but I have no experience with it.
    From my point of knowledge it should be only this table!
    regards
    Dirk

  • Archiving of shopping cart with attachments

    Hi All,
    Can anyone explain archiving of shopping carts with context of attachments.
    We are storing the attachments added to the SC in SRM server itself. This is happening as per stanndard SAP.
    We are observing that a when we archive SC, the associated attachments do not get archived. They continue to remain in the SRM tables. Thus occupying space. Is there any way by which we can archive the attachments associated with SCs.
    Regards,
    Girish

    Hello,
    approving a shopping card without any workflow
    is impossible in the Standard SRM case.
    As there is no workflowlog anymore , it was deleted somehow. Please
    ceck if you got processes where the workflow will be archived or deleted
    after a while.
    The question in my point of view is, why was there a workflow
    without any approval steps ?
    As i can see you are using only the workflow ws14500015 which
    is a badi workflow. So the behaviour is controlled from your
    badi,as all approvers come from the BADI.
    If there is a automatic approving then the BADI brings not back
    any approver and the setrelease method of the workflow is triggered
    then immetiately to set the status to "released" = "approved".
    To Do:
    Check your BADI for Shopping Cards like the example one mentioned above.
    Make sure that the workflow logs persist in the system for analysing
    the processes and to get the correct approval preview.
    regards,
    Gaurav

  • SXMSCLUP (Archive/Delete) - Undo space in LOB

    I've openned a ticket with SAP, but I figured I would get additional input
    My SXMSCLUP LOB segment continues to grow. We are successfully running the archive/deletion process successfully. We've noted that even though data is deleted is  still saved in the LOB segment; I believe this is the source of the unexpected growth.
    SXMB_ADM there is a parameter Deletion PERSIST_DURATION HISTORY; the lowest this can be set is 7 days. (We generate tons of messages mostly due to FSCM Credit Worthiness calls).
    How are others managing this table in a highly transactional system? This table is constantly in flux, I'm not sure why SAP would put data in a lob segment given the amount of changes.
    *I have logging turned on, unfortunately its "all or nothing" if I could avoid logging the FSCM calls it would be a great help, but I have not seen the functionality to "choose" which messages to log.
    Thanks

    Hello,
    Maybe thread in the PI forum would help further:
    http://forums.sdn.sap.com/thread.jspa?messageID=10834963
    Also, check the following blog:
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/18817
    Regards,
    Eduardo Rezende

Maybe you are looking for

  • Media failure in Noarchivelog mode

    Dear all, I am running Oracle database 10g in noarchivelog mode. It has a media failure, a datafile has corrupted. How can i recovery it suppose i dont have the latest backup? Thanks and regards, Steve

  • Purchased movie on iTunes disappeared from library and iTunes Store.

    I bought the movie Ice Princess about 5 years ago. I just now started to watch it again recently, but oddly it disappeared. I went to check my iTunes purchased movies and it's gone from there too. I went to check the store and it says that it is unav

  • How to get rid of missing link dialog?

    Hello All, Here is the description of the problem I am facing.. From the indesign document I am exporting some incopy files.I close the indesign document and then I relocate the incopy files to some other location. Now I again reopen the indesign fil

  • Finding user name from sessionID

    Hi, I have two systems working together. I am passing session ID between these two systems. I have an session ID. And I want to find which personalization server user owns this session. How can I find username from the session ID? Thanks Ali Rýza

  • Help needed LR 5.3 error message  Thank you  ( aide demandée LR 5.3 message d'erreur merci )

    Bonjour à tous Hi everybody Sur Lr 5.3 sous windows 7 j'ai ce message d'erreur voir en pièce jointe que dois je faire s'il vous plaît... des informations de mon catalogue ont disparu  paramétre de recherche par exemple) Merci à tous Lr5.3 with window