Skip to content

Instantly share code, notes, and snippets.

@SriniBlog
Created December 22, 2015 16:36
Show Gist options
  • Save SriniBlog/2a5880590f7e8e0ded80 to your computer and use it in GitHub Desktop.
Save SriniBlog/2a5880590f7e8e0ded80 to your computer and use it in GitHub Desktop.
This method is used in SAP PI Mapping UDF to read the message ID
public String getMessageID(Container container) throws StreamTransformationException{
String messageID = "";
java.util.Map map = container.getTransformationParameters();
messageID = (String) map.get( StreamTransformationConstants.MESSAGE_ID);
return messageID;
}
@shivam-torrent
Copy link

I think this code returns wrong message id, please give your suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment