cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

subString function in Message mapping

Former Member
0 Likes
7,853

Hi Guys,

               I am using subString function in message mapping to take last 8 characters of 10 character field. But it returns all 10 digits.

Here is the screen shot

View Entire Topic
Former Member
0 Likes

hi ... i dont know why you was mapped  to target rootnode (Messagetype:MT_D)

you have to create :

BELNR -> substrring -> BELNR insted of calling NS0:MT_D

and substring functionality is coorect for ur requirement and it's read only last 8 chars

Former Member
0 Likes

I am going to call an UDF after the substring for dynamic file creation.

prateek
Active Contributor
0 Likes

In the subString function, have you added 2,8 as input which would mean starting from 2nd position for next 8 characters? Can you also show the queue entry you see?

Regards,
Prateek Raj Srivastava

Former Member
0 Likes

I think its not working because I assign it to the header node. Which will not hold any data. I am testing this before add UDF function in between though.

Thanx for your replies.

markangelo_dihiansan
Active Contributor
0 Likes

Hello,

substring(2, 0) will also work.

Regards,

Mark