cancel
Showing results for 
Search instead for 
Did you mean: 

Message ID UDF

04-04-2018 11:41 AM
1138 views 4 comments
0 Likes
SAP Managed Tags
Subscribe

How to generate unique message id of length 10 character in sap pi, My scenario is from IDOC to SOAP
0 Likes

Accepted Solutions (0)

Answers (2)

Answers (2)

xavisanse
Product and Topic Expert
Product and Topic Expert
0 Likes

The best option is generate a range number of 10 digits in the system that generates the idoc through tx: SNRO and generates the ID in SAP ECC Backend and send it vía idoc.

It's the best option to ensure that you aren't generating duplicate ids.

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