cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass GUID in message mapping

Former Member
0 Kudos

Hi ALL

I would like to populate one of the target fields with SAP PI GUID or Message ID.

Can you please let me know, how to get the GUID in my message mapping and map it to the target field.

Thank you,

Ritu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ritu ,

its simple you can pick the messageID from the streamtransformation constant and map it to ur target field .

use this UDF it does not taes any input and its output can be mapped to target field where you want to populate the messageid.

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

String MSGID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);

return MSGID

Regards,

Saurabh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ritu,

Please refer the weblink given below for passing the message ID to the target field:

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

Thanks,