cancel
Showing results for 
Search instead for 
Did you mean: 

Doubts on receiver-determination-condition: substring

Former Member
0 Kudos

Hi everybody,

did anybody of use the xpath experssion

substring

in receiver-determination-condition?

I got the following

substring(/p1:MT_MAIL_EXTENSION/subject,46,2)

which seems not to work.

Thanks Regards mario

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

THX

Former Member
0 Kudos

Hi,

You can use:

/p1:MT_MAIL_EXTENSION/subject[substring(.,46,2) = 'someValue']

Above will only return a node if the substring of the subject matches someValue. So by testing for existence it will work.

Regards,

Daniel

MichalKrawczyk
Active Contributor
0 Kudos

hi Mario,

it's exactly as Daniel says - you need to specify the = value and use EX in the condition

you cannot specify the value of the substring in the condition

substring and all the rest of xpath work I used all of the popular

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Daniel,

although your suggestions didn't work in XMLSPY, it works in SAP XI!

RESPECT!

Thanks Regards Mario

prateek
Active Contributor
0 Kudos

Try this

/p1:MT_MAIL_EXTENSION/[substring(subject,46,2)]

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

this is no xpath expression

Regards Mario

prateek
Active Contributor
0 Kudos

/p1:MT_MAIL_EXTENSION/

[

substring(subject,46,2)

]

This time i got it. Use all in one line. I was unable to show square brackets earlier

Regards,

Prateek