cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH Problem in Receiver Determination

Former Member
0 Kudos

Hi! I am receiving an outbound XML message into XI from an external system and, depending on content, am mapping it to an inbound message via the appropriate mapping. Additionally, depending on the mapping / inbound message used, the message should be sent to different receiver systems. For example:

<b>Message 1</b>

<id>One</id>

- Mapped to message interface <b>One</b> with interface mapping <b>One</b>.

<b>Message 2</b>

<id>Two</id>

- Mapped to message interface <b>Two</b> with interface mapping <b>Two</b>.

I have set up both interface and receiver determination; both contain the same XPATH to determine the message interface and receiver system.

However, when I try and run the scenario, XI correctly determines the interface but does not correctly determine the receiver system.

Does anyone have any experience of a similar problem?

As always, thanks in advance and points awarded.

Cheers, Duncan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

OK. I spotted the issue and it was was an incorrect namespace on the receiver determination XPATH. One thing that is causing an issue though is that I need to test if an element <b>DOES NOT</b> exist. I test exists with the EX option. Any idea how to test for does not exist. Thx, Duncan

Former Member
0 Kudos

Hi,

I am also doing the same scenario. I am using User define function to get data from the external database based on the key field coming from the sender.

Now my requirement is How to determine particular receiver based on URL Filed which is coming from the Database?

Each receiver has same structure and i've to determine particular receiver base on URL Field.

Can you please share your idea?

Thank You,

Ritesh

STALANKI
Active Contributor
0 Kudos

You have to have recev det

send interface-interface one and interface mapping one to recv 1.

send interface-interface two and interface mapping two to recv 2.

and 2 recv agreements..do u have that in place or can u test ur configuration in ID so that u can know whether configuration is correct by going to Tools->test configuration IN ID.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

did you try testing it with test directory ?

http://help.sap.com/saphelp_nw04/helpdata/en/6b/874a4273bb3830e10000000a155106/content.htm

if you set the same for receiver and interface

(in the condition editor) you need to have the same result

BTw

the receiver is determined first (and not the interface)

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi,

Hope you have done this in ID:

Receiver determination

1. Service1

Interface1

Condition----->service2

condtion------->service3

Interface determination

1. Sender--->service1,Interface1

Receiver--->service2

Inbound Interface>Interface2Interface Mapping1

2. Sender--->service1,Interface1

Receiver--->service3

Inbound Interface>Interface3Interface Mapping2

Receiver agreement

1. Sender--->service1

Receiver service--->service2, Interface2

communication channel--->adapter1

2. Sender--->service1

Receiver service--->service3, Interface3

communication channel--->adapter2

No reason why it should not work. Are u getting any errors?

Regards

Vijaya