cancel
Showing results for 
Search instead for 
Did you mean: 

How to get parent message ID in UDF

Former Member
0 Kudos

Hello All

I'm trying to get parent message's ID of current message in java UDF.

I've tried

constant = (String) map.get(StreamTransformationConstants.REF_TO_MESSAGE_ID);

but it returns zeros instead of ID.

Scenario is one message being split on interface determination to many interfaces with corresponding mappings.

Any suggestions?

TIA

Regards

Maciej

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

REF_TO_MESSAGE_ID is used to get the response/request message in a synch scnenario.

You cant use this in acse of a message split. If you need the parent message for a split message you can do a RFC Lookup to PI server and get it. In the RFC select the parent message id (PARENTMSG) from SXMSPMAST table by passing the current message id (child message id) as MSGGUID.

Regards

Jai

Former Member
0 Kudos

Thanks for the information.

Is there any specific RFC function exposed from PI which I can use to get this data, or do I have to develop one myself?

Regards

Maciej

Former Member
0 Kudos

You need to develop a custom RFC program to do this. There is no standard RFC available for this.

Regards

Jai

Answers (0)