cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI - Mapping - Simple wya to ignor 1st char

Former Member
0 Kudos

Hi Experts,

I was trying to find a simple way to solve a mapping issue we have here.

On a mapping of a field , we want to ignore the 1st character.

Exemple

we send:  Zabcdefgh.

Wwe want to have after mapping: abcdefgh.

Does anyone has a simple UDF that could handle this ?

Thx all for any help.

S.N

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use Substring Node function. This is SAP standard function in message mapping.

Use same as depicted in the screenshot.

Thanks

Gaurav

Former Member
0 Kudos

Hi Gaurav,

thx for your help.

just to be sure, the character count = 0 will work here ?

I mean the "abcdefgh" needed will not be lost du toe this zero ?

Thx again.

S.N

Former Member
0 Kudos

Yes this will work .

Former Member
0 Kudos

Thank a lot Gaurav. Indeed it works

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

return var1.substring(1);

var1 is your input

Former Member
0 Kudos

Hi Hareesh,

Thx for ur help.

Testing this. I'll let u know the result

S.N