Skip to Content
0
Jan 26, 2021 at 07:56 PM

SAP CPI Content Filter not working

98 Views

Hi

I have a requirement to filter out unwanted records and keep only required.

In below example I need to keep Element segment when subregion is 7225 and remove other Element segement.

In Iflow I am using parallel multicast and filter in both the branches.

Branch-1 (working) - Nodelist

/Root/Element[(subregion ='7225') or (subregion ='7515') or (subregion ='8245') or (subregion ='8360') or (subregion ='8385') or (subregion ='8435') or (subregion ='8585')]

Branch-2(Not-Working) - Nodelist - Can you advise what's wrong with my x-path ??

/Root/Element[(subregion !='7225') or (subregion !='7515') or (subregion !='8245') or (subregion !='8360') or (subregion !='8385') or (subregion !='8435') or (subregion !='8585')]

<Root>

<Element>

<batch_id>Jan_22_2021_18</batch_id>

<proposal_id>130994</proposal_id>

<proposal_name>Brazil /proposal_name>

<subregion>7225</subregion>

<currency>BRL</currency>

</Element>

<Element>

<batch_id>Jan_22_2021_18</batch_id>

<proposal_id>130994</proposal_id>

<proposal_name>Brazil /proposal_name>

<subregion>2345</subregion>

<currency>BRL</currency>

</Element>

</Root>

Thanks in advance.

Ravindra