Skip to Content

PI message ID in mapping field

Hi experts,

We have a requirement of generating a Uique number in ECC....since in PI, we have message id for every incoimg message which is UNIQUE , we need to pass the same messsage ID as a filed value in PI and map to one of the ECC field ...is it possible?

regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Feb 07, 2012 at 05:31 PM

    yes it is possible

    http://wiki.sdn.sap.com/wiki/display/Snippets/UDFtoReadMessageIDofaPIMessage

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 07, 2012 at 05:30 PM

    Hi,

    use this code in the mapping:

    java.util.Map map = container.getTransformationParameters();

    String YourMessageID = (String)map.get(StreamTransformationConstants.MESSAGE_ID);

    return YourMessageID;

    Note:

    it does not work if you have a mapping inside a ccBPM

    Regards,

    Michal Krawczyk

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.