cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Receiver Determination

Former Member
0 Kudos

Hi Gurus

Have a Idoc to JMS scnerio.

Am using following condition in condition Editor in Receiver Determination:

(IDOC/E1RDIH/E1RDI_BODY/E1RDID/SYMNAME = NAME1

AND IDOC/E1RDIH/E1RDI_BODY/E1RDID/SYMVALUE = 2)

Now,E1RDID is a repeating segment and SYSNAME and SYSVALUE are elements in this segment

Eg:

<IDOC>

.

.

<E1RDID>

<SYMNAME>NAME1</SYMNAME>

<SYMVALUE>1</SYMVALUE>

</E1RDID>

<E1RDID>

<SYMNAME>NAME2</SYMNAME>

<SYMVALUE>2</SYMVALUE>

</E1RDID>

.

.

</IDOC>

Problem:

The condition is working fine ,even for above example.This shouldnt be the case,I want to restrict the conditions(SYMNAME and SYMVALUE) to the same E1RDID segment.

Can this be achieved using Standard Receiver Determination or i have to use Extended Receiver Determination??

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

>>Can this be achieved using Standard Receiver Determination or i have to use Extended Receiver Determination??

yes u can achieve this using standard receiver determination

No need to go for Extended Receiver thats different.

>>The condition is working fine ,even for above example.This shouldnt be the case,I want to restrict the conditions(SYMNAME and SYMVALUE) to the same E1RDID segment.

Whatever conditon u gave is correct, it should work

Once again u check the condition

Yuga

Former Member
0 Kudos

Hi Yuga,

Verified it again.

Getting the same error

Former Member
0 Kudos

I think this can be achived by using X-path in your Receiver Determination.

Probabily you have done some mistke while putting your condition.

Kindly see the below links.

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

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

/people/prakash.darji/blog/2006/09/22/using-xpath-statements-within-sap-netweaver-2004s-bex-web-application-designer--part-1

Regards,

Sarvesh

Former Member
0 Kudos

Hi Sarvesh,

The condition that i have mentioned earlier is using Xpath.

If i give some junk value in SYSVALUE,then it says no receiver found...which should be the case.

The issue here is how to use SYSNAME and SYSVALUE elements of same E1RDID segment

Former Member
0 Kudos

hi amit,

in ur condition where u give x-path see that the expression is not multiline (multiline checkbox is not ticked) for both SYSNAME and SYSVALUE. then try ur scenario.

[reward if helpful]

regards,

latika.

Former Member
0 Kudos

Hi Latika,

Have already tried that

No success