cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH in the receiver determination

Former Member
0 Kudos

Hi guys,

My scenario is IDOC to FILE

I am using the XPATH condition in my receiver determination to define the receivers and the condition is

the file has to be created if the IDOC doesnot have have the specific node in the outbound.

MATMAS04/IDOC/E1MARAM/MATNR[not(exists)] - Left operand

EX in the condition

i left the right operand empty.

but this is not working.

as the result no receiver is selected.

let me knwo if you guys have any idea...

Thankx in Advance,

Shree

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shree,

If you want to check for an empty MATNR element:

MATMAS04/IDOC/E1MARAM[string-length(MATNR) = '0']

If you want to check for a non existent MATNR element:

MATMAS04/IDOC/E1MARAM[count(MATNR) = '0']

EX in the condition

Thanks,

Jesse

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if you want to use XPatch you need to do it on the node level - MATMAS04/IDOC/E1MARAM

and the condition on the item level

can you try like this:

MATMAS04/IDOC/E1MARAM [string-length(MATMAS04/IDOC/E1MARAM/MATNR) > 0 ]

- Left operand EX in the condition

also have a look at this weblog:

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Regards,

michal

Former Member
0 Kudos

Shree

Can you check this url where you can find what are the operators we can use in XPath:

http://www.w3schools.com/xpath/xpath_operators.asp

Regards,

---Satish