cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in accessing Parent Message ID in Enhanced Receiver determination

Former Member
0 Kudos

Hello All,

Following is the scenario.I have a source file and two target receivers.I need to access the Parent Message ID.I am using following code in an UDF.

*************************

String headerField;

java.util.Map map;

// get runtime constant map

map = container.getTransformationParameters();

// get value of header field by using variable key

headerField = (String) map.get("MessageId");

return headerField;

**********************************

But it is returning the message id for the second receivers.

Any suggestions would be of gr8 help

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You are using two different mappings? and did you used this UDF in Second Mapping Programe?

Thanks

Farooq.

Former Member
0 Kudos

Yes , I am using two mappings.one to determine the receiver and other source to target structure mapping and in this mapping i am using the UDF

Former Member
0 Kudos

Check the description of MessageId.

MESSAGE_ID

The message ID. It can change during communication. Response messages get a new message ID.

If new messages result from a message (the message is copied at multiple receivers), the new messages get new message IDs.

Reffer this link : http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm