cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

How to generate unique message id of length 10 character in sap pi, My scenario is from IDOC to SOAP
0 Likes
View Entire Topic
PavanKumar
Active Contributor
0 Likes

Hi,

You need write a UDF for this.Please follow below link for the same.

https://wiki.scn.sap.com/wiki/display/Snippets/UDF+to+Read+Message+ID+of+a+PI+Message

Regards

Pavan

Former Member
0 Likes

There is a constraint on the length of message id it should be 10 .How to do it in a udf

PavanKumar
Active Contributor
0 Likes

Hi,

As MessageId generated by PI itself it is not recommended to trim,still if you to want do so you can use substring function in message mapping after this udf to trim down the length to 10 char.

Regards

Pavan