cancel
Showing results for 
Search instead for 
Did you mean: 

Access Message ID in graphical mapping

Former Member
0 Kudos

Hi,

I could not find a solution: How do I access the Message ID in the graphical mapping?

During Runtime, I need to get the Message ID in graphical mapping and map it to a field in the target rfc.

Can I do this either direct in mapping or is there a parameter in UDF?

thx

holger

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Holger,

The requirement specified cannot be directly done through Graphical mapping. You need to write a UDF for it using Dynamic configuration.

Regards

Hareen

holger_stumm2
Active Contributor
0 Kudos

Hi,

thanks for the quick reply. Is there a sample for the UDF access or a list of variables I can access?

thx hs

rajasekhar_reddy14
Active Contributor
0 Kudos

search in sdn before posting...

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

Regards,

Raj

udo_martens
Active Contributor
0 Kudos

Hi Holger,

String constant;

java.util.Map map;

map = container.getTransformationParameters();

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

return constant;

from Michal blog [Simple java code in graphical mapping - XI|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1321] [original link is broken] [original link is broken] [original link is broken];

Regards,

Udo

Answers (0)