Skip to Content
avatar image
Former Member

XI map Message ID from Proxy

Hello,

I need to map the Message ID from a Proxy to my outbound documents. I have one Proxy from R/3 that branches in XI to send out two documents. I want to map the Proxy's message id in both documents.

I have tried the UDF method mentioned in these forums using StreamTransformationConstant(MESSAGE_ID) but this returns the message id of each outgoing document, I need the message id from the original message.

Any ideas?

Thanks,

Matt

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 06, 2009 at 04:19 PM

    So you are saying I should use:

    map.get(StreamTransformationConstants.MESSAGE_ID)

    To get the current Message ID then use that Message ID in a DB Lookup to get the Parent ID?

    In a way similar to what is described in the following blog:

    [/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler|Lookupu2019s in XI made simpler - Siva Maranani]

    Thanks,

    Matt

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 06, 2009 at 03:59 PM

    Hi

    Try REF_TO_MESSAGE_ID

    Regards

    Vishnu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 06, 2009 at 04:01 PM

    Thanks for the quick response.

    I tried that and it came up all zeros. Is there another way to use that REF_ID?

    Thanks,

    Matt

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      From table SXMSPMAST, you can get the value of PARENTMSG for your MSGGUID

      the above are the exact field names in the table.

      PARENTMSG is the parent msg id for your msg id MSGGUID

      Regards

      Vishnu

  • avatar image
    Former Member
    Mar 06, 2009 at 09:43 PM

    Thanks, Vishnu!

    I was able to pull in the original Message ID with the RFC Lookup on that table.

    Cheers,

    Matt

    Add comment
    10|10000 characters needed characters exceeded