cancel
Showing results for 
Search instead for 
Did you mean: 

Archiving and Deletion in SAP XI/PI

Former Member
0 Kudos

Hello Experts,

I have an requirement wherein i need to keep only last 2 months of data in database and need to delete all other months data without Archving...Is this possible??

Secondly,i had configured Archving by scheduling archving job ..It ran succesful by archving data on Filesystem but we didnt immediately deleted data frm database.After couple of days due to constriants on space in filesystem,we deleted archive files from filesystem without actually deleteing data from database due to which there were incomplete archiving session left in XI?

So is it possible now to execute these incomplete archving session or delete these data from database??

Thanks..

Accepted Solutions (0)

Answers (3)

Answers (3)

KennethEriksen
Participant
0 Kudos

Hi,

1. Tx SXMB_ADM, define interfaces for archiving/deletion - define retention time. Here you can sett 60 days (2 months) before messages should be deleted. Then you need to schedule your deletion job. Make sure you remove all interfaces from the archive-list to avoid these messages being marked for archiving instead of deletion if you want to delete all messages.

2. The report RSXMB_DELETE_ARCHIVED_MESSAGES will delete the messages that were already archived.

In addition to set up archiving and deletion as suggested above there are a few reports you can run (since archiving and deletion only considers messages in a 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

Eoin_Kierans
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can also check the note #872388 'Troubleshooting Archiving and Deletion in PI'. You should note that any messages that have already been flagged to be archived will not be deleted by the standard deletion job.

Once an interface is no longer defined for archiving, messages from this interface can be deleted without being archived.

Edited by: Eoin Kierans on May 13, 2011 11:48 AM

Former Member
0 Kudos

Hello Mr,

You can use RSXMB_DELETE_MESSAGES report.

Take a look here for additional information:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236...

http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=147266890

Take a look also to sxmb_adm transaction -> Integration Engine Configuration