Skip to Content
avatar image
Former Member

Retrieve PI Messages from Archive

Good day everyone,

After days of research, I still haven't found if there is a way to retrieve a message that is already archived. I am looking for a Class or a program that would retrieve a message from the Archive so I can resend the message in background. Does anybody know any program, class or function module that does this? Or is this just NOT possible? Right now, all I have created is a program that resend messages that are currently in the persistence layer (table SXMSPMAST). My goal this time is to get the message from Archive and not persistence layer. Hope someone can help me. Thanks so much.

Chris C.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 17, 2010 at 07:04 AM

    Hi guys and gals,

    I have managed to solve this problem. So far, I haven't found a Program/Class that could help me resend an archived message so what I did is get the necessary details of a message (including payload if necessary) using function module SXMB_SELECT_MESSAGES_ARCH. Then, I created a new integration message instance and recreate the archived message to a new message ID. If anyone of you need more details about the solution, don't hesitate to ask or send me a message so I can reply with the detailed procedure on how to solve this problem. Thanks.

    Chris C.

    Edited by: Capt_Chris on Mar 17, 2010 8:04 AM

    Edited by: Capt_Chris on Mar 17, 2010 8:04 AM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      4. Since we have completed the message instance, now we need to create an integration engine instance using cl_xms_main=>create_engine( ) exporting 'X' in the execute flag and passing the message instance in the CHANGING field.

      5. Don't forget to use "commit work" after processing.

      I hope I made it as clear as possible. If you have further questions and/or classifications, please don't hesitate to ask.

      Kind Regards,

      Chris