cancel
Showing results for 
Search instead for 
Did you mean: 

XPath substring in Receiver Determination

Former Member
0 Kudos

Hi Guys,

I have a business case in an Idoc to File PI Interface wherein, I want to export a file if and only if the 14th caharcter of an Idoc field is not equal to "|" and I am trying the following conditions in XPath Receiver Determination, but none of them is working:

/ZMDPU_ORDERS05/IDOC/E1EDP01/E1EDP19/IDTNR[not(substring(.,14,1) = '|')] EX

/ZMDPU_ORDERS05/IDOC/E1EDP01/E1EDP19/IDTNR[substring(.,14,1) != '|'] EX

The opposite, is working just fine though, i.e. 14th character of the Idoc field = "|":

/ZMDPU_ORDERS05/IDOC/E1EDP01/E1EDP19/IDTNR[substring(.,14,1) = '|'] EX

Therefore, the issue seems to be in the syntax of NOT function. Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Guys,

The problem has been solved. See below thread:

http://scn.sap.com/thread/3368760

Answers (3)

Answers (3)

Former Member
0 Kudos

/ZMDPU_ORDERS05/IDOC/E1EDP01/E1EDP19[substring(IDTNR,14,1) != '|'] EX

ambrish_mishra
Active Contributor
0 Kudos

Hi,

Found a link which should help:

http://scn.sap.com/thread/145304

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Try similar to this link

http://scn.sap.com/message/13940194