cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions in Receiver Determination

Former Member
0 Kudos

Hi all,

We are working on the following scenario:

NW04 – XI – R3 5.0 (SOAP – XI – IDOC )

We’ve created two mandants in R3 5.0 (100, 300), we want to send our idocs to these mandants depending on the values of specific fields.

We see that in receiver determination we can configure multiple receivers and conditions to select the receiver of the idoc, our problem is how to generate that condition, for example if we have an idoc “idoc1” with one segment “segment1” with one field “field1” and depending on the value (if = 1 to mandant 100 else to mandant 300) how do we write the condition??

Idoc1-segment1-field1 = ‘1’ ??

Idoc1.segment1.field1 = ‘1’ ??

Thanks and regards.

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

Hi Xavier,

Can you look into this weblog .... it shows exactly how to acheive routing of mesaes to different receivers.

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

Note that you get your source message only in the XPATh editor so if your condition is based on your target message you may need to use a BPM (the weblog deals with such a scenario)

Regards,

ShabZ

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Just to add to what Sam has said, the conditional receiver detrmination can be done only on the source message. the reason being that the sequence of steps executed is

receiver determination--> interface determination --> interface mapping.

This implies that as receiver determination occurs before the mapping, conditional receiver determination can be done only on the source. Also, the source fields can be easily accessed using XPATH in the condition field.

Hope this helps,

regards,

bhavesh

sam_raju
Contributor
0 Kudos

Hi Xavier,

You can achieve this by creating 2 Business systems in

SLD and importing those into ID.

One for Client(MANDT) 100 and one for Client(MANDT) 300.

In the "configured Receivers" of RD in ID, you have to

specify these two receivers. One is the BS for Client

100 and the other one is BS for Client 300.

Now to specify a condition, You can only specify a

condition based on the field value from the source(input)

message. So your source message should have an indicator

field to route the idoc to a specific client. The

indicator field could have values like '100' or '300'.

You can specify this condition in your RD. In addition,

You need to have one ID, one IR, and one Receiver CC for

each BS.

Hope this helps.

Rgds,

Sam Raju