cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Reciver and Reciver Determination Condition is not working

Former Member
0 Kudos

Hi,

My Message is look like this .

<?xml version="1.0" encoding="UTF-8"?>

<dataroot generated="">

<ChartOfAccounts>

<glAcctNo>300000</glAcctNo>

<COA>CAUS</COA>

<acct_grp>SAKO</acct_grp>

<shortText>short text</shortText>

<longText> long text</longText>

<isPLAcct/>

<isBalAcct>TRUE</isBalAcct>

<coaForCompany>

<co_code>3000</co_code>

<authGroup>ZURK</authGroup>

<acctCurrency>USD</acctCurrency>

</coaForCompany>

<strFSLineItem>INDIA123</strFSLineItem>

</ChartOfAccounts>

<ChartOfAccounts>

<glAcctNo>300000</glAcctNo>

<COA>CAUS</COA>

<acct_grp>SAKO</acct_grp>

<shortText>short text</shortText>

<longText> long text</longText>

<isPLAcct/>

<isBalAcct>TRUE</isBalAcct>

<coaForCompany>

<co_code>aaa</co_code>

<authGroup>ZURK</authGroup>

<acctCurrency>USD</acctCurrency>

</coaForCompany>

<strFSLineItem>INDIA123</strFSLineItem>

</ChartOfAccounts>

</dataroot>

See what I want is depening on co_code values need to send it to diffrent reciver.

The condition i put it in reciver determination if it 3000 one reciver if not diffrent reciver but it is not working.

Nedd u r suggestions

Madhu

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Are you comparing integer with string...can you maks sure both values having same type...

Check out this thread...

Also check with your input payload in message mapping in IR if it is generating correct co_comp code for receiver determination.

Hope this will help.

Nilesh

Nilesh

Former Member
0 Kudos

Madhusudhan,

There are 2 steps u need to do...

1) receiver determination - add a condition - with the multiple line option checked to send the message to different receivers based on the C_O_Code

2) You need to filter out records based on the Co_code in your mapping program..

as in create the node OfAccounts if the the co-code is 3000...and in another mapping crate the ChartOfAccounts in CO-code "abc" and use the appropriate mapping in interfae determination...

Former Member
0 Kudos

Hi Madhusudhan,

apply XPaths while configuring your reciever determination in ID.

xpath1 = //xyz/co-code = 3000 for one receiver1 and

xpath1 = //xyz/co-code != 3000 for receiver2 .

pls check SDN how to apply xpaths.

Babu sri

nisarkhan_n
Active Contributor
0 Kudos

if you are using the 2 recivers then:

You can also put the same condition in the interface determination, just create the 2 recivers and put the condition on the interface determination......

else

why don't you detemrine the receiver in the mapping and use the enhanced receiver this will solve your problem.

Former Member
0 Kudos

>>You can also put the same condition in the interface determination...

if he has two different receivere then we have to apply Xpaths in receiver determination ,

if he has two different target interfaces or mappings to be executed then we have to apply Xpaths in interface determination.

if he has both ,I think we need to apply Xpaths in both places.

Receiver determination is first and then interface determination(in Pipe line).

lets wait other people suggestion.

thank you.

Babu sri