Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get MessageID in udf

Hi Expert,

   As I am following standard method to get messageId in udf , still getting empty value . Am I following right way to get PI messageID ?

Former Member

Hello Deva,

The code for retrieving message ID is correct. How do you test the mapping and observe no message ID has been returned by your UDF? Message ID value is assigned at runtime, so you have two options how you can check that your UDF works well:

1. Execute the scenario by sending a message (message ID will be generated and assigned at runtime) and then checking mapping output;

2. In test message mapping in ESR, provide a dummy message ID in header parameters section (by default, it is empty). This can be done on the tab "Test" of the message mapping, by navigating to the tab "Parameters" in the bottom, then filling respective header parameter for message ID:



3 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question