cancel
Showing results for 
Search instead for 
Did you mean: 

Message ID in Message Mapping

Former Member
0 Kudos

Hello everyone,

I have a BPM that executes an ABAP Proxy, my problem is that I need to send in the ABAP Proxy strcuture the Unique Message Id that the BPM has in XI, I don't know if I can obtain this field in Message Mapping and map it to the ABAP Proxy structure, can anyone help me? thanks in advance for your answers.

Regards,

Julio Cesar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Julio,

You can get the message id through java UDF. Here is the code

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(StreamTransformationConstants.MESSAGE_ID);

return headerField;

Thanks

-Kulwant

If helpful, assign score please

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Julio

Code given above will work. Message ID can be retrieved using a mapping outside the transformation

Check this

Thanks

Gaurav